It happens - we don't often build w/ debug... it generates so much output...  At
least I don't, I usually just put #define DEBUG #undef DEBUG around the code I'm
worried about.

I think it also sets different compiler parameters (more strict), and that's
what's causing the errors.  When Luca removed the parameters from those
functions, he defined them as xxx() not xxx(void) (old style vs. new style)...

That leaves this:

initialize.c:572: `numDbEntries' undeclared (first use in this function)
initialize.c:572: (Each undeclared identifier is reported only once
initialize.c:572: for each function it appears in.)

FWIW, it's been wrong since at least the 2.0 released version...

Chasing it down, there were a bunch of other errors.  I've made the various
changes - about 6-8 files - so that it compiles w/ --enable-debug.  No clue if
it really runs.  Anyway, I'm going to commit the changes to the source.


-----Burton

PS: Please send to the list, not me personally - and developer problems really
should go to ntop-dev.  I'm copying the list on this msg.





-----Original Message-----
From: Stanley Hopcroft [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 07, 2002 2:51 AM
To: Burton M. Strauss III
Subject: Re: [Ntop] Problem with 2.0.99 (3rd of May snapshot). Can't
compile with --enbable-debug.


Dear Sir,

gmake raises an error after trying to build ntop with --enable-debug.

Same result after gmake clean; remove config.status and .cache and
repeating configure and gmake.

I am not sure this is relevant or even useful.

Yours sincerely.

--

Here is the gmake output

tssyd> gmake
gmake  all-recursive
gmake[1]: Entering directory
`/usr/home/anwsmh/build/ntop-current-3-May-2002/ntop-current/ntop'
Making all in .
gmake[2]: Entering directory
`/usr/home/anwsmh/build/ntop-current-3-May-2002/ntop-current/ntop'
/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H
-I. -I/usr/local/include -I/usr/include/openssl    -g -g -O2 -pipe
-ggdb3 -Wall -Wshadow -Wpointer-arith -Wcast-align -Winline
-Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c
initialize.c
rm -f .libs/initialize.lo
gcc -DHAVE_CONFIG_H -I. -I/usr/local/include -I/usr/include/openssl -g
-g -O2 -pipe -ggdb3 -Wall -Wshadow -Wpointer-arith -Wcast-align -Winline
-Wmissing-prototypes -Wmissing-declarations -Wnested-externs
-Wp,-MD,.deps/initialize.pp -c initialize.c  -fPIC -DPIC -o
.libs/initialize.lo
In file included from ntop.h:2110,
                 from initialize.c:25:
globals-core.h:143: warning: declaration of `signal' shadows global
declaration
initialize.c:272: warning: no previous prototype for `initCounters'
initialize.c: In function `initGdbm':
initialize.c:572: `numDbEntries' undeclared (first use in this function)
initialize.c:572: (Each undeclared identifier is reported only once
initialize.c:572: for each function it appears in.)
initialize.c: At top level:
initialize.c:586: warning: no previous prototype for `initThreads'
initialize.c: In function `initThreads':
initialize.c:622: warning: long int format, pthread_t arg (arg 5)
initialize.c:635: warning: long int format, pthread_t arg (arg 5)
initialize.c:645: warning: long int format, pthread_t arg (arg 5)
initialize.c:659: warning: long int format, pointer arg (arg 5)
initialize.c:669: warning: long int format, pthread_t arg (arg 5)
initialize.c: In function `initApps':
initialize.c:696: warning: long int format, pthread_t arg (arg 5)
initialize.c: In function `initDevices':
initialize.c:851: warning: declaration of `i' shadows previous local
initialize.c: At top level:
initialize.c:956: warning: no previous prototype for `initLibpcap'
initialize.c:1177: warning: no previous prototype for
`parseTrafficFilter'
initialize.c: In function `startSniffer':
initialize.c:1253: warning: long int format, pthread_t arg (arg 5)
gmake[2]: *** [initialize.lo] Error 1
gmake[2]: Leaving directory
`/usr/home/anwsmh/build/ntop-current-3-May-2002/ntop-current/ntop'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory
`/usr/home/anwsmh/build/ntop-current-3-May-2002/ntop-current/ntop'
gmake: *** [all-recursive-am] Error 2
tssyd>

This is your ntop 2.0.99 configuration:

Host System Type  : i386-unknown-freebsd4.5
Compiler (cflags) : gcc -g -g -O2 -pipe -ggdb3 -Wall -Wshadow
-Wpointer-arith -Wcast-align -Winline -Wmissing-prototypes
-Wmissing-declarations -Wnested-externs -DHAVE_CONFIG_H
Include path      :  -I/usr/local/include -I/usr/include/openssl
System Libs       :  -lc_r
Core Libs         :  -lpcap -L/usr/local/lib -lgdbm
Additional Libs   :  -lcrypt -lm -lz -lssl -lcrypto
LBL pcap in       : standard installation
GNU gdbm in       : /usr/local
MultiThread mode  : yes
Install path      : /usr/local/ntop-03-05-2002

Now type 'make' or 'gmake' (GNU make) on *BSD and Solaris
systems to build ntop 2.0.99.




_______________________________________________
Ntop-dev mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev

Reply via email to