[icecast] Compiling issues on IRIX (run!)

John Farnsworth si at darkness.nu
Wed May 7 23:10:02 UTC 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:

gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"icecast\"
-DVERSION=\"2.0-alpha-2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
-D_XOPEN_SOURCE=500 -DHAVE_IPV6=1 -DHAVE_GETIPNODEBYNAME=1
-DSTDC_HEADERS=1 -DCHUID=1 -DCHROOT=1 -DHAVE_SYS_UIO_H=1 -Dsocklen_t=int
-DHAVE_NANOSLEEP=1 -DHAVE_POLL=1 -DHAVE_SETHOSTENT=1 -DHAVE_ENDHOSTENT=1
-DHAVE_GETNAMEINFO=1 -DHAVE_GETADDRINFO=1 -DHAVE_INET_PTON=1
-DHAVE_INET_ATON=1 -DHAVE_CURL=1 -DHAVE_PTHREAD_RWLOCK_T=1
-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
appreciated.
--- >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