[Icecast] Statically linked ices0
Manfred Stienstra
manfred.stienstra at dwerg.net
Sun Jan 9 12:43:50 UTC 2005
Hi,
I'm trying to statically link ices0, but the configure scripts isn't
really agreeing with me. When I do this:
./configure --prefix=/radio/server --enable-shared=no
--enable-static=yes --without-perl --without-vorbis --without-faad
--without-flac
I still get a dynamically linked binary (linked to a lot of stuff I
specified I didn't want, but that's besides the point):
ldd src/ices
linux-gate.so.1 => (0xffffe000)
libshout.so.3 => /usr/lib/libshout.so.3 (0x4955d000)
libvorbis.so.0 => /usr/lib/libvorbis.so.0 (0x42d04000)
libogg.so.0 => /usr/lib/libogg.so.0 (0x42c88000)
libxml2.so.2 => /usr/lib/libxml2.so.2 (0xb7e6d000)
libz.so.1 => /lib/libz.so.1 (0xb7e5c000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb7e0a000)
libdl.so.2 => /lib/libdl.so.2 (0xb7e06000)
libutil.so.1 => /lib/libutil.so.1 (0xb7e01000)
libmp3lame.so.0 => /usr/lib/libmp3lame.so.0 (0x43e8b000)
libm.so.6 => /lib/libm.so.6 (0xb7dde000)
libc.so.6 => /lib/libc.so.6 (0xb7cb3000)
/lib/ld-linux.so.2 (0xb7fea000)
And when I force -static:
LDFLAGS="-static" ./configure --without-libshout --without-shout
--without-shoutcast --prefix=/radio/server --enable-shared=no
--enable-static --disable-shared --disable-dynamic --without-perl
--without-vorbis --without-faad --without-flac
checking shout/shout.h usability... yes
checking shout/shout.h presence... yes
checking for shout/shout.h... yes
checking for shout_new... no
configure: error: Could not find a usable libshout
from config.log:
configure:20976: checking for shout_new
configure:21033: gcc -o conftest -Wall -pthread -I/usr/include -static
conftest.c -lshout -lvorbis
>&5
[...snip... al lof of undefined references to various ogg
functions ...]
: undefined reference to `oggpack_bytes'
/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../libvorbis.a(bitrate.o)(.text+0x147e): In function `vor
bis_bitrate_addblock':
: undefined reference to `rint'
/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../libvorbis.a(bitrate.o)(.text+0x159d): In function `vor
bis_bitrate_addblock':
: undefined reference to `rint'
/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../libvorbis.a(bitrate.o)(.text+0x171e): In function `vor
bis_bitrate_addblock':
: undefined reference to `rint'
/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../libvorbis.a(mdct.o)(.text
+0x75): In function `mdct_ini
t':
: undefined reference to `rint'
collect2: ld returned 1 exit status
configure:21039: $? = 1
configure: failed program was:
etc. etc...
Does anyone know how to do this properly?
Manfred
More information about the Icecast
mailing list