I've noticed the Makefile.mingw and BUILD-MinGW.txt haven't kept up
with the latest releases. I've attempted to make some corrections
but since I don't really understand what I'm doing I'm sure I've made
a mess of things :) Attached is a diff of what I've done, I've searched
through all the SVN logs to make sure I could delete what I have and
I think this is OK, but I'm still not able to make Ntop. I'm not sure
if the errors I'm getting are due to Mingw or a combination of the changes
that have taken place over the years and the changes I made to the
makefile. I'm hoping someone with more experience can update it
properly so it will make with the 4.x branches. Below are the errors
I'm recieving, which may be due to me not using the proper version
of python.h?? I used 3.x, but this may be incorrect. Most if not all
of the rrd stuff has been gutted by me because I believe much of it
is not needed anymore with this branch, same with the gdchart stuff.
Anyway if anyone can help shed some light I'd be happy to test
and try any suggestions!
I'm using the latest SVN 4527. The MinGW files haven't been updated
since 2004 (rev 2472)
Thanks!
-rich
===Errors===
make -f Makefile.mingw depend (no issues...)
make -f Makefile.mingw
$ make -f Makefile.mingw
gcc -O2 -Wall -g -I. -I./libpcap -I./libpcap/bpf/net
-I./libpcap/Win32/include -I./Graphics/libpng -I./gdbm -DHAVE_FCNTL_H
-D
HAVE_PCAP_H -DHAVE_STDARG_H -DHAVE_PCAP_OPEN_DEAD
-DHAVE_PCAP_LIB_VERSION -DHAVE_STRFTIME -DHAVE_MATH_H -DHAVE_INT8_T
-DHAVE_
INT16_T -DHAVE_INT32_T -DHAVE_UINT8_T -DHAVE_UINT16_T -DHAVE_UINT32_T
-I./OpenSSL/outinc -DHAVE_OPENSSL -DOPENSSL_NO_KRB5 -o
MingW_obj/ntop.o -c ntop.c
In file included from ntop.h:343:0,
                 from ntop.c:24:
c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/bpf.h:68:15:
error: expected '=', ',', ';', 'asm' or '__attribute__
' before 'bpf_u_int32'
c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/bpf.h:89:2:
error: expected specifier-qualifier-list before 'u_int'

c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/bpf.h:105:2:
error: expected specifier-qualifier-list before 'u_sho
rt'
c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/bpf.h:1043:2:
error: expected specifier-qualifier-list before 'u_sh
ort'
c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/bpf.h:1057:14:
error: expected '=', ',', ';', 'asm' or '__attribute
__' before 'bpf_filter'
In file included from ntop.h:344:0,
                 from ntop.c:24:
c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/pcap.h:124:2:
error: expected specifier-qualifier-list before 'bpf_
u_int32'
c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/pcap.h:163:2:
error: expected specifier-qualifier-list before 'bpf_
u_int32'
c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/pcap.h:230:2:
error: expected specifier-qualifier-list before 'bpf_
u_int32'
c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/pcap.h:280:34:
error: expected declaration specifiers or '...' befo
re 'bpf_u_int32'
c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/pcap.h:280:49:
error: expected declaration specifiers or '...' befo
re 'bpf_u_int32'
c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/pcap.h:325:6:
error: expected declaration specifiers or '...' befor
e 'bpf_u_int32'
c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/pcap.h:327:25:
error: expected declaration specifiers or '...' befo
re 'bpf_u_int32'
In file included from ntop.h:424:0,
                 from ntop.c:24:
ntop_win32.h:99:20: warning: 'struct option' declared inside parameter list
ntop_win32.h:99:20: warning: its scope is only this definition or
declaration, which is probably not what you want
In file included from ntop.h:475:0,
                 from ntop.c:24:
rrd.h:64:17: error: conflicting types for 'ssize_t'
c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/sys/types.h:118:18:
note: previous declaration of 'ssize_t' was her
e
In file included from Python.h:8:0,
                 from ntop.h:491,
                 from ntop.c:24:
pyconfig.h:72:0: warning: "HAVE_STRFTIME" redefined
<command-line>:0:0: note: this is the location of the previous definition
In file included from ntop.h:524:0,
                 from ntop.c:24:
globals-core.h:670:68: warning: 'struct timespec' declared inside parameter list
ntop.c: In function 'pcapDispatch':
ntop.c:84:7: warning: implicit declaration of function 'getpid'
ntop.c: In function 'cleanupThreadIs':
ntop.c:786:23: warning: comparison between pointer and integer
ntop.c:788:28: warning: comparison between pointer and integer
ntop.c:790:28: warning: comparison between pointer and integer
ntop.c:792:28: warning: comparison between pointer and integer
ntop.c:798:25: warning: comparison between pointer and integer
ntop.c:807:25: warning: comparison between pointer and integer
ntop.c:818:26: warning: comparison between pointer and integer
ntop.c:829:26: warning: comparison between pointer and integer
ntop.c: In function 'runningThreads':
ntop.c:866:9: warning: implicit declaration of function '_joinThread'
ntop.c: In function 'cleanup':
ntop.c:1049:3: warning: implicit declaration of function '_killThread'
ntop.c: At top level:
ntop.c:35:13: warning: 'printMutexInfo' defined but not used
make: *** [MingW_obj/ntop.o] Error 1

Attachment: Makefile.mingw.diff
Description: Binary data

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

Reply via email to