[Icecast] Trouble compiling trunk snapshot

Karl Heyes karl at xiph.org
Wed Feb 27 21:53:06 UTC 2008


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/attachment.bin>


More information about the Icecast mailing list