Today's cvs almost worked for me. I had to change the Makefile.mingw to contain:
CSRC = ntop.c pbuf.c util.c http.c vendor.c report.c qsort.c \ globals-core.c globals-report.c address.c admin.c \ dataFormat.c emitter.c event.c graph.c hash.c \ initialize.c leaks.c logger.c main.c ntop_win32.c \ reportUtils.c traffic.c plugin.c webInterface.c term.c \ netflow.c sql.c rules.c plugins/icmpPlugin.c \ plugins/lastSeenPlugin.c plugins/nfsPlugin.c \ plugins/rmonPlugin.c plugins/sflowPlugin.c regex.c \ protocols.c sessions.c ( removed wapPlugin, added sflowPlugin and sessions.c ) I also change the versions create section to: version.c: -rm $@ echo char version[] = "$(VERSION)"; > $@ echo char osName[] = "$(OSNAME)"; >> $@ echo char author[] = "Luca Deri <[EMAIL PROTECTED]>"; >> $@ (ie. Remove the extra "s ) The other option is download 'unxutils' from somewhere and us the 'echo' from that. You will need the 'rm' anyway. Don't use that version of 'make', it has all sorts of CreateProcess() errors under Win2K. Regards Andrew Milne. ----- Original Message ----- From: "Dilan Arumainathan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, February 16, 2002 1:28 AM Subject: [Ntop] Error compiling NTOP on Win2K > I am trying to compile NTOP under windows 2000 and am getting the following > error. I have followed the instructions step by step and when I start > compiling NTOP itself I get this error. > I also noticed that the current release (stable) doesn't containe "bpf.h" > that is supposed to have the necessary definitions for MINGW. > Would appreciate any input. > > egex.c > rm version.c > rm: cannot remove `version.c': No such file or directory > make: [version.c] Error 1 (ignored) > echo "char version[] = \"1.1\";" > version.c > echo "char osName[] = \"win2k\";" >> version.c > echo "char author[] = \"Luca Deri <[EMAIL PROTECTED]>\";" >> version.c > gcc -O -DHAVE_FCNTL_H=1 -DHAVE_PCAP_H=1 -DHAVE_STDARG_H=1 -I. -Ic:/mingw/inc > lude > -Ic:/wpdpack/include -Ic:/wpdpack/include/NET -I../gdchart0.94c -o > version.o -c > version.c > gcc -O -Lc:/wpdpack/lib -Lc:/mingw/lib -L../gdchart0.94c -L../gdchart0.94c/z > lib- > .1.3 -L../gdchart0.94c/gd-1.8.3 -L../gdchart0.94c/gd-1.8.3/libpng-1.0.8 -o > nto > p ntop.o pbuf.o util.o http.o vendor.o report.o qsort.o globals-core.o > globals-r > eport.o address.o admin.o dataFormat.o emitter.o event.o graph.o hash.o > initiali > ze.o leaks.o logger.o main.o ntop_win32.o reportUtils.o traffic.o plugin.o > webIn > terface.o term.o netflow.o sql.o rules.o plugins/icmpPlugin.o > plugins/lastSeenPl > ugin.o plugins/nfsPlugin.o plugins/rmonPlugin.o plugins/wapPlugin.o regex.o > vers > ion.o -lgdbm -lwpcap -lgdchart -lgd -lpng -lz -lwsock32 > pbuf.o(.text+0x2040):pbuf.c: undefined reference to `handleBootp' > pbuf.o(.text+0x72cf):pbuf.c: undefined reference to `processDNSPacket' > pbuf.o(.text+0x7673):pbuf.c: undefined reference to `handleNetbios' > make: *** [ntop] Error 1g > _______________________________________________ Ntop mailing list [EMAIL PROTECTED] http://listmanager.unipi.it/mailman/listinfo/ntop
