Hi, I try to compile ntop 2.0 on Win2000 paltform using mingw. The guide is very helpful and I can install all require package without problem. However, I got error in the last step - compiling ntop. Please help to find the issue.
Thanks, Jen-Lung ------------------------------------------------------------------ E:\ntop>make -f Makefile.mingw process_begin: CreateProcess((null), rm -f ntop.o, ...) failed. make (e=2): The system cannot find the file specified. make: *** [ntop.o] Error 2 *** you can fix it by comment out rm -f ntop.o .... -------------------------------------------------------------------- E:\ntop>make -f Makefile.mingw gcc -O -DHAVE_FCNTL_H=1 -DHAVE_PCAP_H=1 -DHAVE_STDARG_H=1 -I. -Ie:/gdbm1.8/i nclude -Ie:/WPdpack/include -Ie:/WPdpack/include/NET -I../gdchart0.94c -o ntop.o -c ntop.c gcc -O -DHAVE_FCNTL_H=1 -DHAVE_PCAP_H=1 -DHAVE_STDARG_H=1 -I. -Ie:/gdbm1.8/i nclude -Ie:/WPdpack/include -Ie:/WPdpack/include/NET -I../gdchart0.94c -o pbuf.o -c pbuf.c pbuf.c: In function `queuePacket': pbuf.c:3553: warning: assignment makes integer from pointer without a cast gcc -O -DHAVE_FCNTL_H=1 -DHAVE_PCAP_H=1 -DHAVE_STDARG_H=1 -I. -Ie:/gdbm1.8/i nclude -Ie:/WPdpack/include -Ie:/WPdpack/include/NET -I../gdchart0.94c -o util.o -c util.c gcc -O -DHAVE_FCNTL_H=1 -DHAVE_PCAP_H=1 -DHAVE_STDARG_H=1 -I. -Ie:/gdbm1.8/i nclude -Ie:/WPdpack/include -Ie:/WPdpack/include/NET -I../gdchart0.94c -o http.o -c http.c gcc -O -DHAVE_FCNTL_H=1 -DHAVE_PCAP_H=1 -DHAVE_STDARG_H=1 -I. -Ie:/gdbm1.8/i nclude -Ie:/WPdpack/include -Ie:/WPdpack/include/NET -I../gdchart0.94c -o vendor.o -c vendor.c gcc -O -DHAVE_FCNTL_H=1 -DHAVE_PCAP_H=1 -DHAVE_STDARG_H=1 -I. -Ie:/gdbm1.8/i nclude -Ie:/WPdpack/include -Ie:/WPdpack/include/NET -I../gdchart0.94c -o report.o -c report.c gcc -O -DHAVE_FCNTL_H=1 -DHAVE_PCAP_H=1 -DHAVE_STDARG_H=1 -I. -Ie:/gdbm1.8/i nclude -Ie:/WPdpack/include -Ie:/WPdpack/include/NET -I../gdchart0.94c -o qsort.o -c qsort.c gcc -O -DHAVE_FCNTL_H=1 -DHAVE_PCAP_H=1 -DHAVE_STDARG_H=1 -I. -Ie:/gdbm1.8/i nclude -Ie:/WPdpack/include -Ie:/WPdpack/include/NET -I../gdchart0.94c -o globals-core.o -c globals-core.c gcc -O -DHAVE_FCNTL_H=1 -DHAVE_PCAP_H=1 -DHAVE_STDARG_H=1 -I. -Ie:/gdbm1.8/i nclude -Ie:/WPdpack/include -Ie:/WPdpack/include/NET -I../gdchart0.94c -o globals-report.o -c globals-report.c gcc -O -DHAVE_FCNTL_H=1 -DHAVE_PCAP_H=1 -DHAVE_STDARG_H=1 -I. -Ie:/gdbm1.8/i nclude -Ie:/WPdpack/include -Ie:/WPdpack/include/NET -I../gdchart0.94c -o address.o-c address.c gcc -O -DHAVE_FCNTL_H=1 -DHAVE_PCAP_H=1 -DHAVE_STDARG_H=1 -I. -Ie:/gdbm1.8/i nclude -Ie:/WPdpack/include -Ie:/WPdpack/include/NET -I../gdchart0.94c -o admin.o -c admin.c gcc -O -DHAVE_FCNTL_H=1 -DHAVE_PCAP_H=1 -DHAVE_STDARG_H=1 -I. -Ie:/gdbm1.8/i nclude -Ie:/WPdpack/include -Ie:/WPdpack/include/NET -I../gdchart0.94c -o dataFormat.o -c dataFormat.c gcc -O -DHAVE_FCNTL_H=1 -DHAVE_PCAP_H=1 -DHAVE_STDARG_H=1 -I. -Ie:/gdbm1.8/i nclude -Ie:/WPdpack/include -Ie:/WPdpack/include/NET -I../gdchart0.94c -o emitter.o-c emitter.c gcc -O -DHAVE_FCNTL_H=1 -DHAVE_PCAP_H=1 -DHAVE_STDARG_H=1 -I. -Ie:/gdbm1.8/i nclude -Ie:/WPdpack/include -Ie:/WPdpack/include/NET -I../gdchart0.94c -o event.o -c event.c gcc -O -DHAVE_FCNTL_H=1 -DHAVE_PCAP_H=1 -DHAVE_STDARG_H=1 -I. -Ie:/gdbm1.8/i nclude -Ie:/WPdpack/include -Ie:/WPdpack/include/NET -I../gdchart0.94c -o graph.o -c graph.c gcc -O -DHAVE_FCNTL_H=1 -DHAVE_PCAP_H=1 -DHAVE_STDARG_H=1 -I. -Ie:/gdbm1.8/i nclude -Ie:/WPdpack/include -Ie:/WPdpack/include/NET -I../gdchart0.94c -o hash.o -c hash.c gcc -O -DHAVE_FCNTL_H=1 -DHAVE_PCAP_H=1 -DHAVE_STDARG_H=1 -I. -Ie:/gdbm1.8/i nclude -Ie:/WPdpack/include -Ie:/WPdpack/include/NET -I../gdchart0.94c -o initialize.o -c initialize.c initialize.c: In function `initLibpcap': initialize.c:926: warning: passing arg 2 of `pcap_lookupnet' from incompatible pointer type initialize.c:926: warning: passing arg 3 of `pcap_lookupnet' from incompatible pointer type gcc -O -DHAVE_FCNTL_H=1 -DHAVE_PCAP_H=1 -DHAVE_STDARG_H=1 -I. -Ie:/gdbm1.8/i nclude -Ie:/WPdpack/include -Ie:/WPdpack/include/NET -I../gdchart0.94c -o leaks.o -c leaks.c gcc -O -DHAVE_FCNTL_H=1 -DHAVE_PCAP_H=1 -DHAVE_STDARG_H=1 -I. -Ie:/gdbm1.8/i nclude -Ie:/WPdpack/include -Ie:/WPdpack/include/NET -I../gdchart0.94c -o logger.o -c logger.c gcc -O -DHAVE_FCNTL_H=1 -DHAVE_PCAP_H=1 -DHAVE_STDARG_H=1 -I. -Ie:/gdbm1.8/i nclude -Ie:/WPdpack/include -Ie:/WPdpack/include/NET -I../gdchart0.94c -o main.o -c main.c gcc -O -DHAVE_FCNTL_H=1 -DHAVE_PCAP_H=1 -DHAVE_STDARG_H=1 -I. -Ie:/gdbm1.8/i nclude -Ie:/WPdpack/include -Ie:/WPdpack/include/NET -I../gdchart0.94c -o ntop_win32.o -c ntop_win32.c gcc -O -DHAVE_FCNTL_H=1 -DHAVE_PCAP_H=1 -DHAVE_STDARG_H=1 -I. -Ie:/gdbm1.8/i nclude -Ie:/WPdpack/include -Ie:/WPdpack/include/NET -I../gdchart0.94c -o reportUtils.o -c reportUtils.c gcc -O -DHAVE_FCNTL_H=1 -DHAVE_PCAP_H=1 -DHAVE_STDARG_H=1 -I. -Ie:/gdbm1.8/i nclude -Ie:/WPdpack/include -Ie:/WPdpack/include/NET -I../gdchart0.94c -o traffic.o -c traffic.c gcc -O -DHAVE_FCNTL_H=1 -DHAVE_PCAP_H=1 -DHAVE_STDARG_H=1 -I. -Ie:/gdbm1.8/i nclude -Ie:/WPdpack/include -Ie:/WPdpack/include/NET -I../gdchart0.94c -o plugin.o -c plugin.c gcc -O -DHAVE_FCNTL_H=1 -DHAVE_PCAP_H=1 -DHAVE_STDARG_H=1 -I. -Ie:/gdbm1.8/i nclude -Ie:/WPdpack/include -Ie:/WPdpack/include/NET -I../gdchart0.94c -o webInterface.o -c webInterface.c gcc -O -DHAVE_FCNTL_H=1 -DHAVE_PCAP_H=1 -DHAVE_STDARG_H=1 -I. -Ie:/gdbm1.8/i nclude -Ie:/WPdpack/include -Ie:/WPdpack/include/NET -I../gdchart0.94c -o term.o -c term.c gcc -O -DHAVE_FCNTL_H=1 -DHAVE_PCAP_H=1 -DHAVE_STDARG_H=1 -I. -Ie:/gdbm1.8/i nclude -Ie:/WPdpack/include -Ie:/WPdpack/include/NET -I../gdchart0.94c -o netflow.o -c netflow.c gcc -O -DHAVE_FCNTL_H=1 -DHAVE_PCAP_H=1 -DHAVE_STDARG_H=1 -I. -Ie:/gdbm1.8/i nclude -Ie:/WPdpack/include -Ie:/WPdpack/include/NET -I../gdchart0.94c -o sql.o -c sql.c gcc -O -DHAVE_FCNTL_H=1 -DHAVE_PCAP_H=1 -DHAVE_STDARG_H=1 -I. -Ie:/gdbm1.8/i nclude -Ie:/WPdpack/include -Ie:/WPdpack/include/NET -I../gdchart0.94c -o rules.o -c rules.c gcc -O -DHAVE_FCNTL_H=1 -DHAVE_PCAP_H=1 -DHAVE_STDARG_H=1 -I. -Ie:/gdbm1.8/i nclude -Ie:/WPdpack/include -Ie:/WPdpack/include/NET -I../gdchart0.94c -o regex.o -c regex.c gcc -O -DHAVE_FCNTL_H=1 -DHAVE_PCAP_H=1 -DHAVE_STDARG_H=1 -I. -Ie:/gdbm1.8/i nclude -Ie:/WPdpack/include -Ie:/WPdpack/include/NET -I../gdchart0.94c -o version.o -c version.c version.c:1: parse error before string constant make: *** [version.o] Error 1 ------------------------------------------------------------------- Summary of error message: E:\ntop>make -f Makefile.mingw > output.log pbuf.c: In function `queuePacket': pbuf.c:3553: warning: assignment makes integer from pointer without a cast initialize.c: In function `initLibpcap': initialize.c:926: warning: passing arg 2 of `pcap_lookupnet' from incompatible pointer type initialize.c:926: warning: passing arg 3 of `pcap_lookupnet' from incompatible pointer type version.c:1: parse error before string constant make: *** [version.o] Error 1 _______________________________________________ Ntop mailing list [EMAIL PROTECTED] http://listmanager.unipi.it/mailman/listinfo/ntop
