So fix it :-)

The change was to put code in util.c (from Gnu's libiberty) so that we have a 
getopt_long in all systems, whether or not the native library has it.  Look in util.c 
@ the end and you'll see the ifdef (IIRC it's around 3900).  There's matching logic in 
globals-core.h for the extern decl.

As a guess, the config.h that's being using in Win32 doesn't have the #undef properly 
set.

-----Burton


---------- Original Message ----------------------------------
From: "jac engel" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Date:  Sun, 15 Dec 2002 11:45:19 +0100

>Compiled via Mingw version 02-11-12 OK ,only one problem : shutdown via
>admin user
>ntop does not terminate !
>
>Compiled via Mingw version 02-12-15 I got the following errors:
>
>gcc -O -Lc:/mingw/wpdpack/lib -Lc:/mingw/gdbm/lib -L../gdchart0.94c -L../gdc
>hart
>0.94c/zlib-1.1.4 -L../gdchart0.94c/gd-1.8.3 -L../gdchart0.94c/gd-1.8.3/libpn
>g-1.
>2.4  -o ntop ntop.o ntop_win32.o main.o address.o admin.o dataFormat.o
>emitter.o
> globals-core.o globals-report.o graph.o hash.o http.o initialize.o leaks.o
>netf
>low.o pbuf.o plugin.o protocols.o qsort.o regex.o report.o reportUtils.o
>session
>s.o term.o traffic.o util.o vendor.o webInterface.o plugins\icmpPlugin.o
>plugins
>\lastSeenPlugin.o plugins\netflowPlugin.o plugins\nfsPlugin.o
>plugins\pdaPlugin.
>o plugins\sflowPlugin.o
>version.o  -lgdbm -lwpcap -lgdchart -lgd -lpng -lz -lwso
>ck32
>main.o(.text+0x1f3a):main.c: undefined reference to `getopt_long'
>plugin.o(.text+0x290):plugin.c: undefined reference to `rrdPluginEntryFctn'
>make: *** [ntop] Error 1
>
>
>rgds
>Jac
>
>_______________________________________________
>Ntop-dev mailing list
>[EMAIL PROTECTED]
>http://listgateway.unipi.it/mailman/listinfo/ntop-dev
>



____________________________________________________________
Free 20MB Web Site Hosting and Personalized E-mail Service!
Get It Now At Doteasy.com http://www.doteasy.com/et/
_______________________________________________
Ntop-dev mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev

Reply via email to