[icecast] Compiling issues on IRIX (run!)

John Farnsworth si at darkness.nu
Wed May 7 16:10:02 PDT 2003

Well, I can't get icecast to compile on IRIX, not a huge surprise to me,
but i'm working on it:

First problems, the configure script doesn't work well with IRIX in
general, so a bit of manual changes to it were required to force some
library locations and compiler flags for the ogg and vorbis tests.
(Mainly, $PREFIX/lib is not a safe assumption, as there are $PREFIX/lib,
$PREFIX/lib32, and $PREFIX/lib64)

However, i'm stuck in src/net/sock.c, by default it fails as:

-DHAVE_PTHREAD=1 -I. -I. -I./.. -mabi=n32 -Wall -fsigned-char -c sock.c
-MT libicenet_la-sock.lo -MD -MP -MF .deps/libicenet_la-sock.TPlo  -DPIC
-o .libs/libicenet_la-sock.lo
In file included from sock.c:39:
/usr/include/netinet/tcp.h:38: parse error before "u_short"
/usr/include/netinet/tcp.h:52: parse error before "th_off"
/usr/include/netinet/tcp.h:62: parse error before "th_win"
/usr/include/netinet/tcp.h:63: parse error before "th_sum"
/usr/include/netinet/tcp.h:64: parse error before "th_urp"
sock.c: In function `sock_get_server_socket':
sock.c:595: syntax error before '.' token
sock.c:604: `sa_union' undeclared (first use in this function)
sock.c:604: (Each undeclared identifier is reported only once
sock.c:604: for each function it appears in.)
sock.c:645: `opt' undeclared (first use in this function)
sock.c:649: `error' undeclared (first use in this function)
gmake[2]: *** [libicenet_la-sock.lo] Error 1
gmake[2]: Leaving directory `/u02/home/si/icecast-2.0-alpha-2/src/net'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/u02/home/si/icecast-2.0-alpha-2/src'
gmake: *** [all-recursive] Error 1

Fixing the parse errors was accomplished by changing the #include
<sys/types.h> to #include <sys/bsd_types.h>

The sa structure problems, however, have me stumped.  They're defined in
sys/socket.h, as best I can tell, but for some reason it seems to dislike
what's going on with that.  The main problem is on the line numbers it
gives, there is no '.', and no sa_union, etc.   Any help would be
--- >8 ----
List archives:  http://www.xiph.org/archives/
icecast project homepage: http://www.icecast.org/
To unsubscribe from this list, send a message to 'icecast-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.

More information about the Icecast mailing list