Hi! I'm investigating complex build problem of my graphics/gnash port. The problem is that graphics/gnash doesn't build on FreeBSD 6.3 if ftp/curl (which it depends on) is built with LIBSSH2 support :)
The cause is as follows: 1) # cat /usr/local/lib/libssh2.la | grep depende dependency_libs=' -L/usr/lib -lcrypto -lz' as you can see, there's -L/usr/lib in there. 2) This causes -L/usr/lib to be added to libcurl.la as well 3) graphics/gnash has USE_GCC=4.2+. That's why gcc42 is used on 6.3 instead of default 3.4. But! libtool adds -L/usr/lib from libcurl.la to linkflags, so gcc42 tries to use libstdc++.so from /usr/lib instead of /usr/local/lib/gcc-4.2.4!! This leads to many libstdc++ - related linkage errors: -- /bin/sh ../libtool --tag=CXX --mode=link g++42 -O2 -fno-strict-aliasing -pipe -march=nocona -pthread -D_THREAD_SAFE -pthread -W -Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -fvisibility-inlines-hidden -export-dynamic -lltdl -L/usr/local/lib -lxml2 -lz -L/usr/local/lib -liconv -lm -L/usr/local/lib -lcurl -L/usr/local/lib -lboost_thread -lboost_date_time -lpthread /usr/local/lib/libintl.so /usr/local/lib/libiconv.so -Wl,-rpath -Wl,/usr/local/lib -L/usr/local/lib -Wl,--as-needed -o gprocessor gprocessor-processor.o ../server/libgnashserver.la ../libamf/libgnashamf.la ../libnet/libgnashnet.la ../libbase/libgnashbase.la ../libmedia/libgnashmedia.la -lavcodec -lz -la52 -lfaad -lx264 -ltheora -lvorbisenc -lavutil -lvorbis -lm -logg -lvorbisenc -lvorbis -lm -logg -lavformat -lavcodec -lz -la52 -lfaad -lx264 -ltheora -lvorbisenc -lavutil -lvorbis -lm -logg -lavutil -ltheora -logg -lavcodec -lz -la52 -lfaad -lx264 -ltheora -lvorbisenc -lavutil -lvorbis -lm -logg -L/usr/local/lib -lglib-2.0 -liconv -lX11 -lXi -lm g++42 -O2 -fno-strict-aliasing -pipe -march=nocona -pthread -D_THREAD_SAFE -pthread -W -Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -fvisibility-inlines-hidden /usr/local/lib/libintl.so /usr/local/lib/libiconv.so -Wl,-rpath -Wl,/usr/local/lib -Wl,--as-needed -o .libs/gprocessor gprocessor-processor.o -Wl,--export-dynamic -L/usr/local/lib -L/usr/lib ../server/.libs/libgnashserver.so /usr/work/usr/ports/graphics/gnash/work/gnash-0.8.3/libnet/.libs/libgnashnet.so /usr/work/usr/ports/graphics/gnash/work/gnash-0.8.3/libmedia/.libs/libgnashmedia.so /usr/local/lib/libfontconfig.so /usr/local/lib/libfreetype.so /usr/local/lib/libexpat.so ../libamf/.libs/libgnashamf.so ../libnet/.libs/libgnashnet.so /usr/work/usr/ports/graphics/gnash/work/gnash-0.8.3/libamf/.libs/libgnashamf.so /usr/work/usr/ports/graphics/gnash/work/gnash-0.8.3/libbase/.libs/libgnashbase.so /usr/local/lib/libxml2.so ../libbase/.libs/libgnashbase.so ../libmedia/.libs/libgnashmedia.so /usr/local/lib/libjpeg.so /usr/local/lib/libcurl.so /usr/local/lib/libssh2.so -lssl -lcrypto /usr/local/lib/libltdl.so -lboost_thread -lboost_date_time -lpthread /usr/local/lib/libSDL.so /usr/local/lib/libXrandr.so /usr/local/lib/libXrender.so /usr/local/lib/libaa.so -lncurses -lusbhid -lavformat -lavcodec -lz /usr/local/lib/liba52.so -ldjbfft /usr/local/lib/libfaad.so -pthread -lx264 /usr/local/lib/libtheora.so /usr/local/lib/libvorbisenc.so -lavutil /usr/local/lib/libvorbis.so /usr/local/lib/libogg.so /usr/local/lib/libglib-2.0.so /usr/local/lib/libintl.so /usr/local/lib/libpcre.so /usr/local/lib/libiconv.so /usr/local/lib/libXi.so /usr/local/lib/libXext.so /usr/local/lib/libX11.so /usr/local/lib/libXdmcp.so -lrpcsvc /usr/local/lib/libXau.so -lm -Wl,--rpath -Wl,/usr/local/lib/gnash -Wl,--rpath -Wl,/usr/local/lib gprocessor-processor.o(.gnu.linkonce.t._ZN5boost2io6detail3putIcSt11char_traitsIcESaIcERKSsEEvT2_RKNS1_11format_itemIT_T0_T1_EERNS_12basic_formatISA_SB_SC_E11string_typeERNSH_20internal_streambuf_tEPSt6locale+0x1d8): In function `void boost::io::detail::put<char, std::char_traits<char>, std::allocator<char>, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&>(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, boost::io::detail::format_item<char, std::char_traits<char>, std::allocator<char> > const&, boost::basic_format<char, std::char_traits<char>, std::allocator<char> >::string_type&, boost::basic_format<char, std::char_traits<char>, std::allocator<char> >::internal_streambuf_t&, std::locale*)': * more similar errors * -- I'm not even sure which is the culprit: - libssh2 (for using -L/usr/lib in .la) First of all, does it actually need it (for example, to explicitly not link to libcrypto from ports' openssl)? If it does, it's most likely gcc42 problem. If it does not, it should be fixed as well as other ports with the same problem (here I see /usr/lib used at least in neon and wireshark) - libtool (for adding -L/usr/lib for libssh2) - gcc42 for not searching libs in /usr/local/lib/gcc-4.2.4 before all other libdirs. Any ideas? PS. Many thanks to Andriy Gapon <[EMAIL PROTECTED]> for nailing it. -- Dmitry Marakasov . 55B5 0596 FF1E 8D84 5F56 9510 D35A 80DD F9D2 F77D [EMAIL PROTECTED] ..: jabber: [EMAIL PROTECTED] http://www.amdmi3.ru _______________________________________________ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[EMAIL PROTECTED]"