On 20-04-2015 04:55, Gordon Findlay wrote:
> Using LFS 7.7, I have run into a problem building
> vorbis-tools-1.4.0 using the instructions in the svn version of the BLFS
> book.
> 
> I get this error building in the ogg123 directory:
> 

First command line:

> /bin/sh ../libtool --tag=CC --mode=link gcc  -O2 -Wall -ffast-math 
> -fsigned-char -g -O2   -o ogg123  audio.o buffer.o callbacks.o 
> cfgfile_options.o cmdline_options.o file_transport.o format.o 
> http_transport.o ogg123.o oggvorbis_format.o playlist.o status.o 
> remote.o transport.o vorbis_comments.o vgfilter.o ../share/libutf8.a
> ../share/libgetopt.a -lvorbisfile -lvorbis  -logg  -lao -lnsl
> -lcurl -lpthread

Second command line:

> libtool: link: gcc -O2 -Wall -ffast-math -fsigned-char -g -O2 -o
> ogg123 audio.o buffer.o callbacks.o cfgfile_options.o
> cmdline_options.o file_transport.o format.o http_transport.o ogg123.o
> oggvorbis_format.o playlist.o status.o remote.o transport.o
> vorbis_comments.o vgfilter.o ../share/libutf8.a ../share/libgetopt.a
> /usr/lib/libvorbisfile.so /usr/lib/libvorbis.so /usr/lib/libogg.so
> /usr/lib/libao.so -lnsl /usr/lib/libcurl.so -lpthread

I believe the command line ended there. And following is the error message:

> /usr/bin/ld: vgfilter.o: undefined reference to symbol
> '__pow_finite@@GLIBC_2.15'
> /lib64/libm.so.6: error adding symbols:
> DSO missing from command line

The command here is different:

/bin/sh ../libtool --tag=CC --mode=link gcc  -O2 -Wall -ffast-math
-fsigned-char -g -O2   -o ogg123  audio.o buffer.o callbacks.o
cfgfile_options.o cmdline_options.o file_transport.o format.o
http_transport.o ogg123.o oggvorbis_format.o playlist.o status.o
remote.o transport.o vorbis_comments.o flac_format.o easyflac.o
speex_format.o vgfilter.o ../share/libutf8.a ../share/libgetopt.a
-lvorbisfile -lvorbis  -logg  -lao -lnsl   -lcurl -lpthread  -lFLAC -lm
-logg  -lspeex -lm
libtool: link: gcc -O2 -Wall -ffast-math -fsigned-char -g -O2 -o ogg123
audio.o buffer.o callbacks.o cfgfile_options.o cmdline_options.o
file_transport.o format.o http_transport.o ogg123.o oggvorbis_format.o
playlist.o status.o remote.o transport.o vorbis_comments.o flac_format.o
easyflac.o speex_format.o vgfilter.o  ../share/libutf8.a
../share/libgetopt.a /usr/lib/libvorbisfile.so /usr/lib/libvorbis.so
/usr/lib/libao.so -lnsl /usr/lib/libcurl.so -lpthread
/usr/lib/libFLAC.so /usr/lib/libogg.so /usr/lib/libspeex.so -lm -pthread

In the first command, you don't have:

  -lFLAC -lm -logg  -lspeex -lm

In the second:

 -lm -pthread

There relevant part, of course, is -lm.

> 
> Apparently the linker isn't using libm, or at least not finding what it
> wants in libm.so.6 
> 
> libm exists in /lib64:
> 0 [ /lib64 ]$ ls -l libm.*
> lrwxrwxrwx 1 root root 12 Mar  2 17:08 libm.so.6 -> libm-2.21.so
> 0 [ /lib64 ]$ ls -l libm-2.21.so
> -rwxr-xr-x 1 root root 1135304 Mar  3 17:51 libm-2.21.so
> 
> But what does 'DSO missing from command line' mean?

What I understand is the same as you: DSO is referring to libm.so.

> Since I can get around the problem using 'make LDFLAGS=-lm', this
> suggests to me that the library itself is fine. But obviously something
> is wrong in the toolchain - despite this being the first such error, 
> not arising until the 333rd package/library/whatever built since
> completing the base LFS 7.7
> 
> Where should  I be looking?

Sorry, we need somebody else helping, you shouldn't need LDFLAGS=-lm.

I think libvorbis and libao are installed.


-- 
[]s,
Fernando
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to