Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Solaris 9 i386, ntop 3.2

Status
Not open for further replies.

Mauric

Technical User
Feb 18, 2003
72
0
0
CH
Hello,

If i want compile Ntop-3.2 on me Solaris 9 i386 machine i become every time
this error and i dont see me mistake,

# gcc -v
Reading specs from /usr/local/lib/gcc/i386-pc-solaris2.9/3.4.2/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as
--with-ld=/usr/ccs/bin/ld --disable-nls --disable-libgcj
--enable-languages=c,c+ : (reconfigured) ../configure
--with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --disable-nls
--disable-libgcj --enable-languages=c,c++>Thread model: posix gcc version
3.4.2

GNU ld version 2.16.1
GNU assembler version 2.16.1 (i386-pc-solaris2.9) using BFD version 2.16.1

GNU Make 3.80

---

This is your ntop 3.2 configuration:

Host System Type : i386-pc-solaris2.9
Preprocessor (cppflags) : -DSOLARIS -I/usr/local/include -I/opt/sfw/include -I/usr/local/include
Compiler (cflags) : gcc -g -O2 -I/usr/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs
-fPIC -DPIC

Defines : -DHAVE_CONFIG_H
Loader (ldflags) : -L/opt/sfw/lib -L/usr/local/lib -R/opt/sfw/lib -R/usr/local/lib -L/usr/local/lib
Include path :
System Libs : -lxml2 -lposix4 -lpthread -lresolv -lxnet -lc -liconv -lnsl -lsocket -lpcap -lgdbm -lgd -lpng -lz
Locale : /usr/lib/locale

----

gmake
[snip]
.libs/ntop ntop-main.o ntop-admin.o -L/opt/sfw/lib -L/usr/local/lib
./.libs/libntopreport.so -L/usr/local/ssl/lib
-L/usr/local/BerkeleyDB.4.2/lib -L/usr/openwin/lib -L/usr/lib
./.libs/libntop.so myrrd/.libs/libmyrrd.so /usr/local/lib/libxml2.so
-lposix4 -lpthread -lresolv -lxnet -lc /usr/local/lib/libiconv.so -lnsl
-lsocket -lpcap /usr/local/lib/libgdbm.so /usr/local/lib/libgd.so -lXpm
-lX11 /usr/local/lib/libjpeg.so /usr/local/lib/libfontconfig.so
/usr/local/lib/libexpat.so /usr/local/lib/libfreetype.so -lpng12 -lm -lpng
-lz -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/opt/sfw/lib
./.libs/libntopreport.so: undefined reference to `listen at SUNW_1.1'
./.libs/libntop.so: undefined reference to `ntohs at SUNW_1.1'
./.libs/libntopreport.so: undefined reference to `accept at SUNW_1.1'
./.libs/libntopreport.so: undefined reference to `recv at SUNW_1.1'
./.libs/libntop.so: undefined reference to `gethostname at SUNW_1.1'
./.libs/libntop.so: undefined reference to `endservent at SUNW_1.1'
./.libs/libntopreport.so: undefined reference to `setsockopt at SUNW_1.1'
./.libs/libntopreport.so: undefined reference to `bind at SUNW_1.1'
./.libs/libntop.so: undefined reference to `htonl at SUNW_1.1'
./.libs/libntopreport.so: undefined reference to `send at SUNW_1.1'
./.libs/libntopreport.so: undefined reference to `ntohl at SUNW_1.1'
./.libs/libntop.so: undefined reference to `gethostbyaddr at SUNW_1.1'
./.libs/libntop.so: undefined reference to `connect at SUNW_1.1'
./.libs/libntopreport.so: undefined reference to `socket at SUNW_1.1'
./.libs/libntop.so: undefined reference to `gethostbyname at SUNW_1.1'
./.libs/libntop.so: undefined reference to `htons at SUNW_1.1'
collect2: ld returned 1 exit status
gmake[2]: *** [ntop] Error 1
gmake[2]: Leaving directory `/usr/source/ntop-3.2'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/source/ntop-3.2'
gmake: *** [all] Error 2


please let me know so i can see and understanding me mistake
for any help iam happy

best regards
Maurizio Caloro
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top