Hi, We're having some problems with streamed metadata and I thought I'd see if upgrading Icecast would fix it. This box is running rather old software including Icecast 2.2.0 and I wasn't planning on upgrading it, but I think this is a good reason to try. I also have it built in a non-standard place so this may be a build issue. due to older versions of automake etc, I got the snapshot form xiph.org/~brendan I am getting the following error: Making all in net make[3]: Entering directory `/home/acbradio/src/icecast-trunk/src/net' source='sock.c' object='libicenet_la-sock.lo' libtool=yes \ DEPDIR=.deps depmode=gcc /bin/sh ../../depcomp \ /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I./.. -pthread -g -O2 -c -o libicenet_la-sock.lo `test -f 'sock.c' || echo './'`sock.c gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I./.. -pthread -g -O2 -c sock.c -Wp,-MD,.deps/libicenet_la-sock.TPlo -fPIC -DPIC -o .libs/libicenet_la-sock.o sock.c: In function `sock_get_server_socket': sock.c:702: `IPV6_V6ONLY' undeclared (first use in this function) sock.c:702: (Each undeclared identifier is reported only once sock.c:702: for each function it appears in.) make[3]: *** [libicenet_la-sock.lo] Error 1 make[3]: Leaving directory `/home/acbradio/src/icecast-trunk/src/net' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/acbradio/src/icecast-trunk/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/acbradio/src/icecast-trunk' make: *** [all] Error 2 Part of the problem is the fact that we're running a real old kernel and may be missing a required header. Any suggestions as to what to do about this? Can I simply comment out something to make it compile in this old environment? Geoff.
Geoff Shang wrote:> gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I./.. -pthread -g -O2 -c sock.c > -Wp,-MD,.deps/libicenet_la-sock.TPlo -fPIC -DPIC -o > .libs/libicenet_la-sock.o > sock.c: In function `sock_get_server_socket': > sock.c:702: `IPV6_V6ONLY' undeclared (first use in this function) > sock.c:702: (Each undeclared identifier is reported only once > sock.c:702: for each function it appears in.) > make[3]: *** [libicenet_la-sock.lo] Error 1 > make[3]: Leaving directory `/home/acbradio/src/icecast-trunk/src/net' > make[2]: *** [all-recursive] Error 1 > make[2]: Leaving directory `/home/acbradio/src/icecast-trunk/src' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/acbradio/src/icecast-trunk' > make: *** [all] Error 2 > > Part of the problem is the fact that we're running a real old kernel and > may be missing a required header.The symbol has been around for some time, but it looks like your headers (and possibly the kernel) do not support the setting so the simple fix for this is to avoid setting it.> Any suggestions as to what to do about this? Can I simply comment out > something to make it compile in this old environment?apply the attached diff in the net directory, you should be fine but let me know either way. karl. -------------- next part -------------- A non-text attachment was scrubbed... Name: compile-fix.diff Type: text/x-patch Size: 431 bytes Desc: not available Url : http://lists.xiph.org/pipermail/icecast/attachments/20080227/f0731207/compile-fix.bin
Karl Heyes wrote:> apply the attached diff in the net directory, you should be fine but let me > know either way.It applied cleanly and the compiler didn't complain. The linker complained because I messed up my configure command and it found an old libvorbis. Presumably configure didn't catch it or something. Anyway it compiled cleanly after that. Thanks, Geoff.