This is just to let everyone know that I have successfully built Ntop
2.2.96 for both Solaris 8 and Solaris 9. A diff is attached after each
issue.
I had to change 3 things to get it to work.
1) I had to add -liconv to the LIBS or else it spits out a
* gd.h...yes
* gdImageDestroy() in -lgd...no
during the configure. Perhaps this is due to my setup but just to
document that I had to do this step.
[EMAIL PROTECTED] ~/ntop_2.2.96/ntop [19] cvs diff configureextra/SOLARIS9
Index: configureextra/SOLARIS9
===================================================================
RCS file: /export/home/ntop/ntop/configureextra/SOLARIS9,v
retrieving revision 1.2
diff -r1.2 SOLARIS9
5c5
< LIBS="-lnsl -lsocket ${LIBS}"
---
> LIBS="-lnsl -lsocket -liconv ${LIBS}"
2) I had to modify pbuf.c for the "unaligned move" thingy (see the back
traffic)
[EMAIL PROTECTED] ~/ntop_2.2.96/ntop [18] cvs diff pbuf.c
Index: pbuf.c
===================================================================
RCS file: /export/home/ntop/ntop/pbuf.c,v
retrieving revision 2.153
diff -r2.153 pbuf.c
990c990
< u_char *tcp_data = (u_char *)((int)tcp + tcp->th_off * 4);
---
> u_char *tcp_data = (u_char *)((int)tcp + tp.th_off * 4);
3) I had to modify webInterface.c with the patch for sock < 0 or else it
would not run in "daemon mode"
Index: webInterface.c
===================================================================
RCS file: /export/home/ntop/ntop/webInterface.c,v
retrieving revision 2.246
diff -r2.246 webInterface.c
4785c4785
< if((*sock <= 0) || (errno != 0) ) {
---
> if((*sock < 0) || (errno != 0) ) {
Good Luck
Mike Tremaine
[EMAIL PROTECTED]
_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop