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

Mailing List Archive: NTop: Dev

Fw: Compiling ntop 2.0 under solaris 2.51

 

 

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


imran at netwave

Sep 22, 2001, 7:08 PM

Post #1 of 3 (319 views)
Permalink
Fw: Compiling ntop 2.0 under solaris 2.51

----- Original Message -----
From: imran
To: solaris [at] ntop
Cc: ntop [at] unipi
Sent: Saturday, September 22, 2001 10:06 PM
Subject: Compiling ntop 2.0 under solaris 2.51



----- Original Message -----
From: Imran [at] netwave
To: solaris [at] ntop
Sent: Saturday, September 22, 2001 11:18 PM
Subject: Compiling ntop 2.0


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
......


adavid at adavid

Sep 24, 2001, 2:26 PM

Post #2 of 3 (314 views)
Permalink
Re: Fw: Compiling ntop 2.0 under solaris 2.51 [In reply to]

> From: "imran" <imran [at] netwave>
>
>
> ----- Original Message -----=20
> From: imran=20
> To: solaris [at] ntop=20
> Cc: ntop [at] unipi=20
> Sent: Saturday, September 22, 2001 10:06 PM
> Subject: Compiling ntop 2.0 under solaris 2.51=20
>
>
>
> ----- Original Message -----=20
> From: Imran [at] netwave=20
> To: solaris [at] ntop=20
> Sent: Saturday, September 22, 2001 11:18 PM
> Subject: Compiling ntop 2.0=20
>
>
> Hi all:
> =20
> I am trying to compile ntop 2.0 under solaris 2.5.1. ANy help would be =
> greatly appreciated.
> =20

Imran

I have made some suggestions to you when you maled me at solaris [at] ntop

Have you followed them? You didn't respond.

As I said, there are major advances and assumptions between ntop 1.1
on Solaris 2.5.1 and ntop 2.0 on the latest Solaris. I don't have access
to Solaris 2.5.1 anymore.

Perhaps it would be easier for you if you downloaded an ntop 1.1
binary. Unfortunately I just checked www.sunfree.com and it doesn't
exist anymore for Solaris 2.5

In the absence of anyone else with a similar hardware/software platform,
you would have to do the things I suggested in my previous email
such as providing the gcc version number. If later versions of
gcc compile this code, you need to look at upgrading your compiler.
If that still doesn't overcome your problem you need to get your hands
dirty and look at changing the ntop code yourself.

--
Anthony David

Gambling(n): A discretionary tax on those asleep during high school maths
http://adavid.com.au/
0xA72CE1ED fingerprint = EA1E C69E FE59 BBE1 AA4B F354 BD09 9765 A72C E1ED


l.deri at tecsiel

Sep 25, 2001, 8:06 AM

Post #3 of 3 (315 views)
Permalink
Re: Fw: Compiling ntop 2.0 under solaris 2.51 [In reply to]

Hi all,
please resync with CVS and let me know whether the fix works.

Thanks, Luca

--
Luca Deri NETikos S.p.A.
Via Matteucci 34/B 56124 Pisa, Italy.
Ph. +39/050/968.639 Fax. +39/050/968.626
Personal: luca [at] lucaderi Business: luca.deri [at] netikos
WWW: http://www.lucaderi.org/ ICQ: 68183632
Hacker: someone who loves to program and enjoys being
clever about it - Richard Stallman

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.