Ideas... sure lots of ideas... relevant, well, that's another kettle of
fish.

Basically, a caveat - I don't have access to an AIX system.  If you're not
willing to do the leg work, then let's drop this right now.  If you are, we
can work by having YOU test ideas, do the research on the AIX system,
tc.  -- then we'll get a patch together and apply it.


1. Try 2.1.3, just because it's the latest and only supported 2.1.x.

2. Try adding -DAIX to your CFLAGS in Makefile -- if that helps, we have to
add it in configure.in (look around line 430 for the refuse of the LAST
attempt at AIX support).

3. It sounds like gethostbyaddr_r isn't the same as on other systems.  Look
in address.c:
#ifdef HAVE_GETIPNODEBYADDR
    hp  = getipnodebyaddr((const void*)&theAddr,
                          sizeof(struct in_addr), AF_INET,
                          &error_num);
#else /* default */
#if defined(HAVE_GETHOSTBYADDR_R) && !defined(linux)
    /* Linux seems to ha some problems with gethostbyaddr_r */
#ifdef __sun
    hp = gethostbyaddr_r((const char*)&theAddr, sizeof(struct in_addr),
                         AF_INET, &_hp, buffer,
                         sizeof(buffer), &h_errnop);
#else
    hp = gethostbyaddr_r((const char*)&theAddr, sizeof(struct in_addr),
AF_INET,
                         &_hp, buffer, sizeof(buffer), &__hp, &h_errnop);
#endif
#else
    hp = (struct hostent*)gethostbyaddr((char*)&theAddr, sizeof(struct
in_addr), AF_INET);
#endif
#endif

You're going to have to figure out the AIX version and add that to the
code...

4. in config.h
/* AIX 4.1, 4.2: OS lacks the getdomainname(2) function. */
/* #undef NEED_GETDOMAINNAME */

Maybe AIX 4.3 is the same?



-----Burton








-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of St�phane
LAHALLE
Sent: Wednesday, October 09, 2002 8:25 AM
To: [EMAIL PROTECTED]
Subject: [Ntop] Compilation probleme on NTOP 2.1.2 on AIX 4.3.3



hello,

when i compile NTOP 2.1.2 on AIX 4.3.3 i have the follwing messages

=================================================

If you like ntop, please do not forget to support
its development. See SUPPORT_NTOP.txt for more
information. Thanks for supporting ntop!

=================================================
cd . \
  && CONFIG_FILES=Makefile CONFIG_HEADERS= /bin/sh ./config.status
creating Makefile
cd . && autoheader
cd . \
  && CONFIG_FILES= CONFIG_HEADERS=config.h \
     /bin/sh ./config.status
creating config.h
make  all-recursive
make[1]: Entre dans le r�pertoire `/instwork/ntop'
Making all in .
make[2]: Entre dans le r�pertoire `/instwork/ntop'
/bin/sh ./libtool --mode=compile
gcc -DHAVE_CONFIG_H -I. -I/usr/local/include -I/instwork/gdchart0.94c -I/ins
twork/gdchart0.94c/zlib-1.1.4    -g -O2 -pipe -c address.c
gcc -DHAVE_CONFIG_H -I. -I/usr/local/include -I/instwork/gdchart0.94c -I/ins
twork/gdchart0.94c/zlib-1.1.4 -g -O2 -pipe -Wp,-MD,.deps/address.pp -c
address.c  -DPIC -o address.lo
In file included from ntop.h:376,
                 from address.c:21:
/usr/include/pthread.h:35: warning: `_THREAD_SAFE' redefined
ntop.h:175: warning: this is the location of the previous definition
address.c: In function `resolveAddress':
address.c:215: warning: passing arg 1 of `gethostbyaddr_r' discards
qualifiers from pointer target type
address.c:215: warning: passing arg 5 of `gethostbyaddr_r' from incompatible
pointer type
address.c:215: too many arguments to function `gethostbyaddr_r'
address.c:215: warning: assignment makes pointer from integer without a cast
make[2]: *** [address.lo] Erreur 1
make[2]: Quitte le r�pertoire `/instwork/ntop'
make[1]: *** [all-recursive] Erreur 1
make[1]: Quitte le r�pertoire `/instwork/ntop'
make: *** [all-recursive-am] Erreur 2


The ntop configuration

This is your ntop 2.1.2 configuration:

Host System Type  : powerpc-ibm-aix4.3.3.0
Compiler (cflags) : gcc -g -O2 -pipe -DHAVE_CONFIG_H
Include path





:  -I/usr/local/include -I/instwork/gdchart0.94c -I/instwork/gdchart0.94c/zl
ib-1.1.4
System Libs       :  -lpthread -lnsl -ldl
Core Libs         :  -L/usr/local/lib -lpcap -lgdbm
Additional Libs


:  -lm -lz -L/instwork/gdchart0.94c -lgdchart -L/instwork/gdchart0.94c/gd-1.
8.3 -lgd -L/instwork/gdchart0.94c/gd-1.8.3/libpng-1.2.1 -lpng -L/instwork/gd
chart0.94c/zlib-1.1.4 -lz
LBL pcap in       : /usr/local
GNU gdbm in       :
MultiThread mode  : yes
Install path      : /systools

Now type 'make' or 'gmake' (GNU make) on *BSD and Solaris
systems to build ntop 2.1.2.


Somebody would have an idee

Thank to all

_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop

Reply via email to