Date: Wed, 10 Jul 2002 08:35:20 +0200 From: Anders Nordby <anders@FreeBSD.org> To: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> Cc: freebsd-ports@FreeBSD.org Subject: Re: Help porting gstreamer (http://gstreamer.sourceforge.net/) Message-ID: <20020710063520.GA39718@totem.fix.no> In-Reply-To: <20020710060602.90212.qmail@exxodus.fedaykin.here> References: <20020710060602.90212.qmail@exxodus.fedaykin.here>
next in thread | previous in thread | raw e-mail | index | archive | help
Hello Mario, On Wed, Jul 10, 2002 at 03:05:40AM -0300, Mario Sergio Fujikawa Ferreira wrote: > [snip] > /bin/sh ../../libtool --mode=link cc -O -pipe -pipe -fno-strength-reduce -march=pentiumpro -L/usr/local/lib -o autoplugtest autoplugtest-autoplugtest.o -L/usr/local/lib -lxml2 -lz -lm -pthread -Wl,--export-dynamic -L/usr/local/lib -lgobject-2.0 -lgthread-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv -lpopt ../../gst/libgstreamer.la > cc -O -pipe -pipe -fno-strength-reduce -march=pentiumpro -o .libs/autoplugtest autoplugtest-autoplugtest.o -pthread -Wl,--export-dynamic -L/usr/local/lib ../../gst/.libs/libgstreamer.so -lxml2 -lz -lm -lgobject-2.0 -lgthread-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv /usr/local/lib/libpopt.so -Wl,--rpath -Wl,/usr/local/lib > /usr/lib/libc.so.4: WARNING! setkey(3) not present in the system! > /usr/lib/libc.so.4: warning: this program uses gets(), which is unsafe. > /usr/lib/libc.so.4: warning: mktemp() possibly used unsafely; consider using mkstemp() > /usr/lib/libc.so.4: WARNING! des_setkey(3) not present in the system! > /usr/lib/libc.so.4: WARNING! encrypt(3) not present in the system! > /usr/lib/libc.so.4: warning: tmpnam() possibly used unsafely; consider using mkstemp() > /usr/lib/libc.so.4: warning: this program uses f_prealloc(), which is not recommended. > /usr/lib/libc.so.4: WARNING! des_cipher(3) not present in the system! > /usr/lib/libc.so.4: warning: tempnam() possibly used unsafely; consider using mkstemp() > ../../gst/.libs/libgstreamer.so: undefined reference to `pthread_attr_setstack' > *** Error code 1 > > I tracked it down to work/gstreamer-0.4.0/gst/autoplug > directory. However, I cannot understand why it is complaining that > it cannot find pthread_attr_setstack if cc is being invoked with > '-pthread' (this is a -STABLE system). > Someone mentioned that "it cannot link -lc and -lc_r at the > same time" but I cannot imagine how that would be happening if > '-pthread' is defined. > Anyone? Ideas? These kinds of problems are inevitable when linking with libraries that "needs" libc. There are some of them. You can check like this: # find . -name "lib*.so*" -type f | while read line; do if [ ! -z \ "`objdump -p $line | egrep \"NEEDED.*libc.*so\"`" ]; then printf \ "\n$line needs:\n\n"; (objdump -p $line | grep NEEDED); fi; done ./libgc.so.1 needs: NEEDED libc.so.4 ./libmm.so.11 needs: NEEDED libc.so.3 ./zsh/libzsh-4.0.4.so needs: NEEDED libncurses.so.5 NEEDED libm.so.2 NEEDED libc.so.4 ./libtk83.so.1 needs: NEEDED libX11.so.6 NEEDED libm.so.2 NEEDED libc.so.4 Good luck with finishing the port, and let me know if you find a way to work around libc+libc_r headache. :-) Cheers, -- Anders. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020710063520.GA39718>