Armin K. wrote: > On 05/18/2012 05:24 AM, Bruce Dubbs wrote: >> For some reason, I have a problem with the libvorbis tests. 'make check' is >> not >> finding libm.so. >> >> I fixed it with: >> >> LDFLAGS=-lm ./configure --prefix=/usr&& >> make&& >> make check >> >> Can anyone confirm this? >> >> -- Bruce > > I've tried it and I did not get any error. I see that configure checks > for libm: > > checking for cos in -lm... yes
I do have that line. > libm is present, so -lm is added to VORBIS_LIBS In configure, I do have: VORBIS_LIBS="-lm" and it is present in test/Makefile also. However, if I cd test make check I get $ make check /bin/sh ../libtool --tag=CC --mode=link gcc -O20 -Wall -Wextra -ffast-math -D_REENTRANT -fsigned-char -Wdeclaration-after-statement -DUSE_MEMORY_H -o test util.o write_read.o test.o ../lib/libvorbisenc.la ../lib/libvorbis.la -logg libtool: link: gcc -O20 -Wall -Wextra -ffast-math -D_REENTRANT -fsigned-char -Wdeclaration-after-statement -DUSE_MEMORY_H -o .libs/test util.o write_read.o test.o ../lib/.libs/libvorbisenc.so ../lib/.libs/libvorbis.so /usr/lib/libogg.so /usr/bin/ld: util.o: undefined reference to symbol 'sin@@GLIBC_2.2.5' /usr/bin/ld: note: 'sin@@GLIBC_2.2.5' is defined in DSO /lib64/libm.so.6 so try adding it to the linker command line /lib64/libm.so.6: could not read symbols: Invalid operation collect2: error: ld returned 1 exit status The offending line in the test/Makefile is: $(LINK) $(test_OBJECTS) $(test_LDADD) $(LIBS) Adding $(VORBIS_LIBS) make is work for me. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page