[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-inetutils] FW: inetutils-1.5 build feedback
From: |
Alfred M. Szmidt |
Subject: |
Re: [bug-inetutils] FW: inetutils-1.5 build feedback |
Date: |
Wed, 25 Oct 2006 18:40:54 +0200 (CEST) |
Thank you for the build logs!
========================================================================
Machinetype: SGI Origin/200-4 (180 MHz) (4 R10000 CPUs); IRIX 6.5
Configure environment: CC=c89 CXX=CC CFLAGS=-I/usr/local/include
CXXFLAGS=-I/usr/local/include LDFLAGS=-Wl,-rpath,/usr/local/libn32
c89 -DHAVE_CONFIG_H -I. -I. -I.. -I../headers -I../lib -I../lib
-I/usr/local/include -c setsig.c
cc-1020 c89: ERROR File = setsig.c, Line = 33
The identifier "sig_t" is undefined.
sig_t
^
Does this platform define sighandler_t instead of sig_t?
========================================================================
Machinetype: Sun W40z (4 CPUs, 2400 MHz AMD64 Opteron, 8GB RAM);
FreeBSD 5.0-RELEASE #0
Configure environment: CC=gcc CFLAGS=-I/usr/local/include CXX=g++
LDFLAGS=-Wl,-rpath,/usr/local/lib
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../lib -I../libinetutils
-D_THREAD_SAFE -I/usr/local/include -MT io.o -MD -MP -MF ".deps/io.Tpo" -c
-o io.o io.c; \
then mv -f ".deps/io.Tpo" ".deps/io.Po"; else rm -f ".deps/io.Tpo";
exit 1; fi
io.c:132: error: conflicting types for 'sys_nerr'
/usr/local/lib/gcc/i386-unknown-freebsd5.0/3.4.3/include/stdio.h:358: error:
previous declaration of 'sys_nerr' was here
I fixed this in CVS.
========================================================================
Machinetype: Apple Power Mac G4 (2 1420 MHz PowerPC G4 (3.3)
CPUs, 2GB RAM); Darwin 7.9.0 (Mac OS X Server 10.3.9 (7W98))
Configure environment: CC=gcc CXX=g++ LIBS=-lcc_dynamic
gcc -g -O2 -o telnetd telnetd.o pty.o term.o utility.o state.o
termstat.o slc.o -L../libinetutils -linetutils -L../libtelnet -ltelnet
-L../lib -lgnu -lcurses -lresolv -lcc_dynamic
/usr/bin/ld: warning table of contents of library:
../libinetutils/libinetutils.a not sorted slower link editing will result
(use the ranlib(1) -s option)
/usr/bin/ld: Undefined symbols:
_endutent
_pututline
_getutline
Where are these symbols defined on this platform?
========================================================================
Machinetype: DEC Alpha 4100-5/466 (4 21164 EV5 CPUs, 466 MHz, 2GB
RAM); OSF/1 4.0F
Configure environment: CC=cc CFLAGS="-ieee -I/usr/local/include" CXX=cxx
CXXFLAGS="-ieee -I/usr/local/include" LDFLAGS="-Wl,-rpath,/usr/local/lib
-Wl,-oldstyle_liblookup -L/usr/local/lib" LIBS="-lsnprintf" FC=f77 F77=f77
cc -std -DHAVE_CONFIG_H -I. -I. -I.. -I../headers -I../lib -I../lib
-DPATH_WTMPX=\"/usr/local/var/log/wtmpx\" -ieee -I/usr/local/include
-c utmp_init.c
cc: Error: utmp_init.c, line 72: In this statement, "ut_tv" is not a member
of "utx". (needmember)
gettimeofday(&(utx.ut_tv), 0);
-------------------^
The same error happened in a build with gcc.
I fixed this in CVS.
========================================================================
Machinetype: Sun Sun Fire V240 (2 UltraSPARC-IIIi CPUs, 1280 MHz,
8GB RAM); Solaris 9
Configure environment: CC=cc CFLAGS="-xO5 -dalign -xlibmil -xcg92
-xsafe=mem -I/usr/local/include" CXX=CC CXXFLAGS="-xO5 -dalign -xlibmil
-xcg92 -xsafe=mem -I/usr/local/include" LDFLAGS="-R/usr/local/lib
-L/usr/local/lib"
cc -DHAVE_CONFIG_H -I. -I. -I.. -I../headers -I../lib -I../lib
-DPATH_TTY_PFX=\"/dev/\" -DPATH_DEVNULL=\"/dev/null\" -D_REENTRANT -xO5
-dalign -xlibmil -xcg92 -xsafe=mem -I/usr/local/include -c localhost.c
"/usr/include/sys/socket.h", line 52: invalid type combination
"/usr/include/sys/socket.h", line 52: warning: useless declaration
"/usr/include/sys/socket.h", line 52: warning: typedef declares no type name
"/usr/include/sys/socket.h", line 61: invalid type combination
"/usr/include/sys/socket.h", line 61: warning: useless declaration
"/usr/include/sys/socket.h", line 61: warning: typedef declares no type name
This looks more like a bug on this platform, is there a specific order
in which <sys/socket.h> must be included? The documentation will
probobly state this.
========================================================================
Machinetype: Sun W40z (4 CPUs, 2400 MHz AMD64 Opteron, 8GB RAM);
OpenBSD 3.9 GENERIC#617 i386
Configure environment: CC=/usr/bin/cc CXX=/usr/bin/c++
CFLAGS=-I/usr/local/include LDFLAGS="-L/usr/local/lib
-Wl,-rpath,/usr/local/lib"
/usr/bin/cc -I/usr/local/include -L/usr/local/lib
-Wl,-rpath,/usr/local/lib -o telnetd telnetd.o pty.o term.o utility.o
state.o termstat.o slc.o -L../libinetutils -linetutils -L../libtelnet
-ltelnet -L../lib -lgnu -lcurses -lutil
telnetd.o(.text+0xfb2): In function `print_hostinfo':
: warning: sprintf() is often misused, please use snprintf()
../libinetutils/libinetutils.a(argcv.o)(.text+0x435): In function
`argcv_string':
: warning: strcat() is almost always misused, please use strlcat()
../libinetutils/libinetutils.a(utmp_init.o)(.text+0x9e): In function
`utmp_init':
: undefined reference to `pututline'
../libinetutils/libinetutils.a(utmp_init.o)(.text+0xc3): In function
`utmp_init':
: undefined reference to `endutent'
../libinetutils/libinetutils.a(utmp_logout.o)(.text+0x3f): In function
`utmp_logout':
: undefined reference to `getutline'
../libinetutils/libinetutils.a(utmp_logout.o)(.text+0x77): In function
`utmp_logout':
: undefined reference to `pututline'
../libinetutils/libinetutils.a(utmp_logout.o)(.text+0x9a): In function
`utmp_logout':
: undefined reference to `endutent'
collect2: ld returned 1 exit status
Strange. Is there some library on this platform that one must include
to get these functions? `man pututline', `info pututline' or similar
will probobly note this.
========================================================================
Machinetype: Intel Pentium 4 (1800 MHz); Solaris 10 x86
Configure environment: CC=/opt/SUNWspro/bin/c99
CFLAGS="-I/usr/local/include" CXX=/opt/SUNWspro/bin/CC
CXXFLAGS="-I/usr/local/include" LDFLAGS="-R/usr/local/lib -L/usr/local/lib"
/opt/SUNWspro/bin/c99 -DHAVE_CONFIG_H -I. -I. -I.. -I../headers
-I../lib -I../lib -DPATH_TTY_PFX=\"/dev/\" -DPATH_DEVNULL=\"/dev/null\"
-D_REENTRANT -I/usr/local/include -c localhost.c
"/usr/include/sys/socket_impl.h", line 44: invalid type combination
"/usr/include/sys/socket_impl.h", line 44: warning: useless declaration
"/usr/include/sys/socket_impl.h", line 44: warning: typedef declares no type
name
"/usr/include/netinet/in.h", line 54: invalid type combination
"/usr/include/netinet/in.h", line 54: warning: useless declaration
"/usr/include/netinet/in.h", line 54: warning: typedef declares no type name
Must one include things in a special order for <netinet/in.h>? The
documentation for the system will probobly note this.
Could you try the two fixes I commited for the affected platforms and
tell us if they work?
Thank you!