On Wed, Mar 23, 2011 at 9:47 AM, Gisle Vanem <[email protected]> wrote:
> I once wrote Makefile.MingW, but lack of time and motivation kept me
> from updating it to the mailing-list. Now I can say that some things are
> wrongfully assumed about gcc (i.e. non-MSVC or MingW) on Windows:
> *  That IPv6 isn't available. Wrongity wrong for years. Only non-gcc builds
> have    "#define INET6". In fact, ntop/Win32 doesn't even built w/o INET6
>  defined. Try the attached makefile.MingW with "USE_IPV6 = 0".

Much better... Thanks! Is GdChart still needed in the 4.x branch?
I see a message in SVN from 2003 (rev 1731)
--Removed reference to gdchart (no longer needed)

I added them anyway. I am also using Python 3.2
if that make any difference, not sure if I'm using python-devel (if
there is one?)

I'm looking forward to any more tips/tricks, I love Ntop and if I could deploy
on Win32 as easily as *nix it'd be a dream com true!-)

I get the following error on make (after depend), I commented out
this section as well.
#if defined(WIN32) && defined(__GNUC__)
 #include "bpf.h"
 #include "pcap.h"
#endif

===errors==== (don't mind the dir names :)
$ make -f Makefile.mingw
gcc -O2 -g -I. -I./libpcap -I./libpcap/Include
-I./libpcap/Include/pcap -I./Graphics/gd -I./Graphics/libpng
-I./Graphics/rrdt
ool/src -I./gdbm -I./GeoIP/libGeoIP -I./pPython/include
-DHAVE_CONFIG_H -DHAVE_FCNTL_H -DHAVE_PCAP_H -DHAVE_STDARG_H -DHAVE_P
CAP_OPEN_DEAD -DHAVE_PCAP_LIB_VERSION -DHAVE_MATH_H -DHAVE_STDINT_H
-DHAVE_u_int8_T -DHAVE_u_int16_T -DHAVE_u_int32_T -DHAVE_
u_int64_T -DHAVE_UINT32_T -DHAVE_STRCASESTR -Dstrcasestr=stricmp
-DWIN32_LEAN_AND_MEAN -D_WIN32_WINNT=0x0501   -DINET6 -I./Op
enSSL/outinc -DHAVE_OPENSSL -DOPENSSL_NO_KRB5 -o MingW_obj/ntop.o -c ntop.c
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 ntop.h:524:0,
                 from ntop.c:24:
globals-core.h:670:68: warning: 'struct timespec' declared inside parameter list
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
make: *** [MingW_obj/ntop.o] Error 1

Again if your working on it I'll wait for further instructions, I'm in over
my head as is, but it is somewhat fun for a novice.
-rich
_______________________________________________
Ntop-dev mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev

Reply via email to