Im now hitting another problem, the compile is bombing with the following
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I/usr/local/include -I/usr/local/include -I/opt/local/tmp/ntop-current/gdchart0.94c -I/usr/local/rrdtool/include -DSOLARIS -g -O2 -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fPIC -DSOLARIS -g -O2 -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fPIC -c util.c -MT util.lo -MD -MP -MF .deps/util.TPlo -fPIC -DPIC -o .libs/util.lo
cc1: warning: changing search order for system directory "/usr/local/include"
cc1: warning: as it has already been specified as a non-system directory
util.c:632: warning: no previous prototype for `handleFlowsSpecs'
util.c:2672: warning: no previous prototype for `initPassiveSessions'
util.c:2683: warning: no previous prototype for `termPassiveSessions'
util.c:3622:26: "[" may not appear in macro parameter list
util.c: In function `_getopt_internal':
util.c:3648: `NONOPTION_P' undeclared (first use in this function)
util.c:3648: (Each undeclared identifier is reported only once
util.c:3648: for each function it appears in.)
gmake[2]: *** [util.lo] Error 1
gmake[2]: Leaving directory `/export/igpprt0/local/tmp/ntop-current/ntop'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/export/igpprt0/local/tmp/ntop-current/ntop'
gmake: *** [all] Error 2
Which I do not understand, as I can see the definitions in util.c and configure did not have a problem.
Platform is gcc 3.2.1 on Solaris 7.
-Cooper
Burton M. Strauss III wrote:
Sounds like the build of gd failed -- anything in the output??
-----Burton
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf
Of Cooper F. Nelson
Sent: Thursday, January 23, 2003 9:43 PM
To: [EMAIL PROTECTED]
Subject: [Ntop-dev] Problems building ntop on Solaris 2.7
Hi Friends,
When trying to build the latest cvs release under solaris 7 (gcc 3.2.1) I get the below error during the make phase. I thought undefined symbols were usually due to missing libs, but I've built and installed libgd several times to no avail. Libgd.a is installed in /usr/local/lib.
Any help at all would be appreciated.
Thanks,
-Cooper
gcc -DSOLARIS -g -O2 -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fPIC -DSOLARIS -g -O2 -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fPIC -o .libs/ntop main.o admin.o ./.libs/libntopreport.so -L/usr/local/lib -L/home/yin/coop/src/ntop-current/gdchart0.94c ./.libs/libntop.so -lposix4 -lpthread -lresolv -lsocket -lpng -lgd -lm -lz -ldl -lnsl -lc -lpcap /usr/local/lib/libgdbm.so -lwrap -lgdchart -R/usr/local/lib
Undefined first referenced
symbol in file
gdImageLine /home/yin/coop/src/ntop-current/gdchart0.94c/libgdchart.a(gdc_pie.o)
gdImageColorAllocate /home/yin/coop/src/ntop-current/gdchart0.94c/libgdchart.a(gdc_pie.o)
gdImageSetPixel /home/yin/coop/src/ntop-current/gdchart0.94c/libgdchart.a(gdchart.o)
gdImageColorDeallocate /home/yin/coop/src/ntop-current/gdchart0.94c/libgdchart.a(gdchart.o)
gdImageFilledPolygon /home/yin/coop/src/ntop-current/gdchart0.94c/libgdchart.a(gdc_pie.o)
gdImageStringUp /home/yin/coop/src/ntop-current/gdchart0.94c/libgdchart.a(gdchart.o)
gdFontGiant /home/yin/coop/src/ntop-current/gdchart0.94c/libgdchart.a(gdc.o)
gdImagePng /home/yin/coop/src/ntop-current/gdchart0.94c/libgdchart.a(gdc_pie.o)
gdImageString /home/yin/coop/src/ntop-current/gdchart0.94c/libgdchart.a(gdc_pie.o)
gdImageArc /home/yin/coop/src/ntop-current/gdchart0.94c/libgdchart.a(gdc_pie.o)
gdImageColorExact /home/yin/coop/src/ntop-current/gdchart0.94c/libgdchart.a(gdc_pie.o)
gdFontTiny /home/yin/coop/src/ntop-current/gdchart0.94c/libgdchart.a(gdc.o)
gdFontMediumBold /home/yin/coop/src/ntop-current/gdchart0.94c/libgdchart.a(gdc.o)
gdImageCreateFromPng /home/yin/coop/src/ntop-current/gdchart0.94c/libgdchart.a(gdchart.o)
gdFontSmall /home/yin/coop/src/ntop-current/gdchart0.94c/libgdchart.a(gdc.o)
gdImageCopyResized /home/yin/coop/src/ntop-current/gdchart0.94c/libgdchart.a(gdchart.o)
gdImageDestroy /home/yin/coop/src/ntop-current/gdchart0.94c/libgdchart.a(gdc_pie.o)
gdImageColorTransparent /home/yin/coop/src/ntop-current/gdchart0.94c/libgdchart.a(gdchart.o)
gdImagePolygon /home/yin/coop/src/ntop-current/gdchart0.94c/libgdchart.a(gdchart.o)
gdImageCreate /home/yin/coop/src/ntop-current/gdchart0.94c/libgdchart.a(gdc_pie.o)
gdImageCopy /home/yin/coop/src/ntop-current/gdchart0.94c/libgdchart.a(gdchart.o)
gdImageFillToBorder /home/yin/coop/src/ntop-current/gdchart0.94c/libgdchart.a(gdc_pie.o)
gdFontLarge /home/yin/coop/src/ntop-current/gdchart0.94c/libgdchart.a(gdc.o)
gdImageColorClosest /home/yin/coop/src/ntop-current/gdchart0.94c/libgdchart.a(gdc_pie.o)
ld: fatal: Symbol referencing errors. No output written to .libs/ntop
collect2: ld returned 1 exit status
_______________________________________________
Ntop-dev mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev
_______________________________________________
Ntop-dev mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev
_______________________________________________ Ntop-dev mailing list [EMAIL PROTECTED] http://listgateway.unipi.it/mailman/listinfo/ntop-dev
