libvorbis example fails to build with solaris math libs
gcc --version
2.95.3
I had a poke around but could not find this logged already:
gmake[1]: Entering directory `/DATA/build/libvorbis-1.0beta4/examples'
gcc -DPACKAGE=\"libvorbis\" -DVERSION=\"1.0beta4\" -DHAVE_ALLOCA_H=1 -DHAVE_ALLO
CA=1 -I. -I. -I../include -O20 -ffast-math -D__NO_MATH_INLINES -fsigned-ch
ar -mv8 -DUSE_MEMORY_H -c decoder_example.c
/bin/sh ../libtool --mode=link gcc -O20 -ffast-math -D__NO_MATH_INLINES -fsigne
d-char -mv8 -DUSE_MEMORY_H -static -o decoder_example decoder_example.o ../lib/
libvorbis.la -lm -logg
mkdir .libs
gcc -O20 -ffast-math -D__NO_MATH_INLINES -fsigned-char -mv8 -DUSE_MEMORY_H -o de
coder_example decoder_example.o ../lib/.libs/libvorbis.a -lm -logg -lm -logg
../lib/.libs/libvorbis.a(envelope.o): In function `_ve_envelope_init':
envelope.o(.text+0x154): undefined reference to `expf'
../lib/.libs/libvorbis.a(envelope.o): In function `_ve_envelope_search':
envelope.o(.text+0x884): undefined reference to `logf'
envelope.o(.text+0x8d0): undefined reference to `logf'
../lib/.libs/libvorbis.a(psy.o): In function `setup_curve':
psy.o(.text+0xe4): undefined reference to `expf'
etc
However I can't find the function calls it is wingeing about;
there is no expf() in _ve_envelope_init for example.
Is this a compiler bug? I use solaris nm & ld.