Hi, I'm trying to compile Icecast from SVN (revision 14115). But make bombs out: make[3]: Entering directory `/usr/src/svn/icecast/src' if gcc -DHAVE_CONFIG_H -I. -I. -I.. -Wall -ffast-math -fsigned-char -I/usr/include/libxml2 -I/usr/local/include -pthread -g -O2 -MT connection.o -MD -MP -MF ".deps/connection.Tpo" -c -o connection.o connection.c; \ then mv -f ".deps/connection.Tpo" ".deps/connection.Po"; else rm -f ".deps/connection.Tpo"; exit 1; fi connection.c: In function ? recheck_ip_file? : connection.c:342: error: ? errno? undeclared (first use in this function) connection.c:342: error: (Each undeclared identifier is reported only once connection.c:342: error: for each function it appears in.) make[3]: *** [connection.o] Error 1 make[3]: Leaving directory `/usr/src/svn/icecast/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/src/svn/icecast/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/svn/icecast' make: *** [all] Error 2 I'm using GCC 4.1.2 under Ubuntu Feisty on AMD64. Geoff.
Geoff Shang wrote:> Hi, > > I'm trying to compile Icecast from SVN (revision 14115). But make bombs > out: > > make[3]: Entering directory `/usr/src/svn/icecast/src' > if gcc -DHAVE_CONFIG_H -I. -I. -I.. -Wall -ffast-math -fsigned-char > -I/usr/include/libxml2 -I/usr/local/include -pthread -g -O2 -MT > connection.o -MD -MP -MF ".deps/connection.Tpo" -c -o connection.o > connection.c; \ > then mv -f ".deps/connection.Tpo" ".deps/connection.Po"; else rm > -f ".deps/connection.Tpo"; exit 1; fi > connection.c: In function ? > recheck_ip_file? > : > connection.c:342: error: ? > errno? > undeclared (first use in this function) > connection.c:342: error: (Each undeclared identifier is reported only once > connection.c:342: error: for each function it appears in.)Make sure you don't have a corrupted source file, that error does not appear here. karl.
Karl Heyes wrote:> Geoff Shang wrote: >> connection.c:342: error: ? >> errno? >> undeclared (first use in this function) >> connection.c:342: error: (Each undeclared identifier is reported only once >> connection.c:342: error: for each function it appears in.) > > Make sure you don't have a corrupted source file, that error does not appear > here.I removed the tree which I'd just checked out, reran svn co http://svn.xiph.org/icecast/trunk/icecast icecast cd icecast ./autogen.sh make and got the same error. Either autogen is mangling it or the file in SVN is problematic. The line in question says: 342: WARN2 ("failed to check status of \"%s\": %s", cache->filename,strerror(errno)); Geoff.