At 02:19 AM 11/8/2004, you wrote:
On Monday 08 November 2004 05:07, Vinny Abello wrote:

> gcc: cannot specify -o with -c or -S and multiple compilations

Ok, I'm feeling guilty (a bit). Luca, what do you think, reverting
the last patch or finding another solution? Unfortunately I have
no FreeBSD to test.

Vinny, in the meantime try to change (in rrdPlugin.c)

#ifdef WIN32
safe_snprintf(__FILE__, __LINE__, cmd, sizeof(cmd), "%u:%I64u", rrdTime, value);
#else
safe_snprintf(__FILE__, __LINE__, cmd, sizeof(cmd), "%u:%llu", rrdTime, value);
#endif


to

safe_snprintf(__FILE__, __LINE__, cmd, sizeof(cmd), "%u:%llu", rrdTime, value);

Did that, and a make clean, and make then turns out:

creating ntop
Making all in plugins
Making all in .
cd .. && make am--refresh
if /usr/local/bin/bash ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/home/vabello/ntop/ntop/myrrd -DHAVE_FILEDESCRIPTORBUG -DFREEBSD -I/usr/local/include -I/home/vabello/ntop/ntop/myrrd -g -O2 -I/usr/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fPIC -MT icmpPlugin.lo -MD -MP -MF ".deps/icmpPlugin.Tpo" -c -o icmpPlugin.lo icmpPlugin.c; then mv -f ".deps/icmpPlugin.Tpo" ".deps/icmpPlugin.Plo"; else rm -f ".deps/icmpPlugin.Tpo"; exit 1; fi
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/home/vabello/ntop/ntop/myrrd -DHAVE_FILEDESCRIPTORBUG -DFREEBSD -I/usr/local/include -I/home/vabello/ntop/ntop/myrrd -g -O2 -I/usr/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fPIC -MT icmpPlugin.lo -MD -MP -MF .deps/icmpPlugin.Tpo -c icmpPlugin.c -fPIC -DPIC -o .libs/icmpPlugin.lo
gcc: cannot specify -o with -c or -S and multiple compilations
*** Error code 1


Stop in /usr/home/vabello/ntop/ntop/plugins.
*** Error code 1

Stop in /usr/home/vabello/ntop/ntop/plugins.
*** Error code 1

Stop in /usr/home/vabello/ntop/ntop.
*** Error code 1

Stop in /usr/home/vabello/ntop/ntop.



Doesn't seem to make a difference... Just to point out, I haven't successfully compiled NTOP in a long time (because I haven't had any reason to try) so there might be many other differences besides your latest one. Luca recently asked me to try the latest from CVS because it fixed a memory leak in the Netflow plugin... that's the whole reason I'm trying to get this to compile now.

Vinny Abello
Network Engineer
Server Management
[EMAIL PROTECTED]
(973)300-9211 x 125
(973)940-6125 (Direct)
PGP Key Fingerprint: 3BC5 9A48 FC78 03D3 82E0  E935 5325 FBCB 0100 977A

Tellurian Networks - The Ultimate Internet Connection
http://www.tellurian.com (888)TELLURIAN

There are 10 kinds of people in the world. Those who understand binary and those that don't.


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

Reply via email to