Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: NTop: Dev

Compiling ntop 2.0 under solaris 2.51

 

 

NTop dev RSS feed   Index | Next | Previous | View Threaded


imran at netwave

Sep 23, 2001, 8:46 PM

Post #1 of 1 (120 views)
Permalink
Compiling ntop 2.0 under solaris 2.51

Hi all:

I am trying to compile ntop 2.0 under solaris 2.5.1. ANy help would be greatly appreciated.

This is my ntop configuration:

Host System Type : sparc-sun-solaris2.5.1
Compiler (cflags) : gcc -g -O2 -pipe -DHAVE_CONFIG_H
Include path : -I/usr/local/include -I/opt/ntop-current/gdchart0.94c
System Libs : -lposix4 -lpthread -lresolv -lsocket -lnsl -lkstat -ldl
Core Libs : -L/usr/local/lib -lpcap -lgdbm
Additional Libs : -lm -L/opt/ntop-current/gdchart0.94c -lgdchart -L/opt/ntop-current/gdchart0.94c/gd-1.8.3 -lgd -L/opt/ntop-current/gdchart0.94c/gd-1.8.3/libpng-1.0.8 -lpng -L/opt/ntop-current/gdchart0.94c/zlib-1.1.3 -lz
LBL pcap in : /usr/local
GNU gdbm in :
MultiThread mode :
Install path : /usr/local

------------------------------------------------------------------
when I run make I get the following:
..... snippet

gcc -DHAVE_CONFIG_H -I. -I/usr/local/include -I/opt/ntop-current/gdchart0.94c -g -O2 -pipe -Wp,-MD,.deps/mysql.pp -c -fPIC -DPIC mysql.c -o .libs/mysql.lo
In file included from ntop.h:251,
from mysql.c:28:
/usr/include/netdb.h:195: warning: `struct sockaddr_in' declared inside parameter list
/usr/include/netdb.h:195: warning: its scope is only this definition or declaration, which is probably not what you want.
gcc -DHAVE_CONFIG_H -I. -I/usr/local/include -I/opt/ntop-current/gdchart0.94c -g -O2 -pipe -Wp,-MD,.deps/mysql.pp -c mysql.c -o mysql.o >/dev/null 2>&1
mv -f .libs/mysql.lo mysql.lo
/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I/usr/local/include -I/opt/ntop-current/gdchart0.94c -g -O2 -pipe -c netflow.c
rm -f .libs/netflow.lo
gcc -DHAVE_CONFIG_H -I. -I/usr/local/include -I/opt/ntop-current/gdchart0.94c -g -O2 -pipe -Wp,-MD,.deps/netflow.pp -c -fPIC -DPIC netflow.c -o .libs/netflow.lo
In file included from ntop.h:251,
from netflow.c:21:
/usr/include/netdb.h:195: warning: `struct sockaddr_in' declared inside parameter list
/usr/include/netdb.h:195: warning: its scope is only this definition or declaration, which is probably not what you want.
netflow.c:32: parse error before `uint16_t'
netflow.c:32: warning: no semicolon at end of struct or union
netflow.c:33: warning: data definition has no type or storage class
netflow.c:40: parse error before `}'
netflow.c:46: parse error before `uint16_t'
netflow.c:46: warning: no semicolon at end of struct or union
netflow.c:47: warning: data definition has no type or storage class
netflow.c:54: parse error before `srcport'
netflow.c:54: warning: data definition has no type or storage class
netflow.c:55: parse error before `dstport'
netflow.c:55: warning: data definition has no type or storage class
netflow.c:60: parse error before `dst_as'
netflow.c:60: warning: data definition has no type or storage class
netflow.c:61: parse error before `src_as'
netflow.c:61: warning: data definition has no type or storage class
netflow.c:64: parse error before `pad2'
netflow.c:64: warning: data definition has no type or storage class
netflow.c:68: field `flowHeader' has incomplete type
netflow.c:69: field `flowRecord' has incomplete type
netflow.c:73: field `flowHeader' has incomplete type
netflow.c:74: field `firstRecord' has incomplete type
netflow.c:75: field `secondRecord' has incomplete type
netflow.c: In function `initFlowHeader':
netflow.c:152: dereferencing pointer to incomplete type
netflow.c:153: dereferencing pointer to incomplete type
netflow.c:154: dereferencing pointer to incomplete type
netflow.c:155: dereferencing pointer to incomplete type
netflow.c:156: dereferencing pointer to incomplete type
netflow.c:157: dereferencing pointer to incomplete type
netflow.c:158: dereferencing pointer to incomplete type
netflow.c:159: dereferencing pointer to incomplete type
netflow.c: In function `sendTCPSessionFlow':
netflow.c:203: warning: passing arg 2 of `sendto' from incompatible pointer type
netflow.c: In function `sendICMPflow':
netflow.c:241: warning: passing arg 2 of `sendto' from incompatible pointer type
netflow.c: In function `sendUDPflow':
netflow.c:283: warning: passing arg 2 of `sendto' from incompatible pointer type
make[2]: *** [netflow.lo] Error 1
make[2]: Leaving directory `/opt/ntop-current/ntop'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/ntop-current/ntop'
make: *** [all-recursive-am] Error 2
......

NTop dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.