As a guess, it's not picking up some of the common definition/limits in a
way that the compile likes.  What version of gcc is this?  And of gnu make?

>From the source, gdchart.h 109ff:

  EXTERND float                         GDC_requested_ymin      DEFAULTO(
GDC_NOVALUE );
  EXTERND float                         GDC_requested_ymax      DEFAULTO(
GDC_NOVALUE );
  EXTERND float                         GDC_requested_yinterval DEFAULTO(
GDC_NOVALUE );

And 131ff:

  EXTERND float                           GDC_thumbval
DEFAULTO( -MAXFLOAT );

GDC_NOVALUE is defined in gdc.h:

  #define GDC_NOVALUE                       -MAXFLOAT

I think there is a pattern here...

In the .h files, is MAXFLOAT defined?  How?

For me, it's:

/usr/include/math.h:#  define MAXFLOAT  3.40282347e+38F

If MAXFLOAT is not defined, there is logic in gdc.h @42:

#ifndef MAXFLOAT
#define MAXFLOAT LONG_MAX
#endif

Which should work unless LONG_MAX isn't defined?

/usr/include/limits.h:#   define LONG_MAX       9223372036854775807L

If it is defined, you could try

#ifndef MAXFLOAT
#define MAXFLOAT (float) LONG_MAX
#endif


-----Burton

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf
Of Sinoros-Szabo Peter
Sent: Monday, October 07, 2002 4:53 PM
To: [EMAIL PROTECTED]
Subject: [Ntop-dev] compiling on AIX 5L


Dear ntop developers!

I tried to compile ntop (version 2.1.[2,3,50+]) on an AIX 5L machine, but it
I didn't managed. After successfully compiled the gdchart (based on one of
the
documention) and ran ./configure or autogen.sh -1, I tried to make it:

---

ns2@ /install/tar/ntop-2.1.3/ntop :) /usr/local/bin/make
/usr/local/bin/make  all-recursive
make[1]: Entering directory `/install/tar/ntop-2.1.3/ntop'
Making all in .
make[2]: Entering directory `/install/tar/ntop-2.1.3/ntop'
/bin/sh ./libtool --mode=compile
gcc -DHAVE_CONFIG_H -I. -I/usr/local/include -I/install/tar/ntop-2.1.3/gdcha
rt0.94c    -g -O2 -pipe -c graph.c
gcc -DHAVE_CONFIG_H -I. -I/usr/local/include -I/install/tar/ntop-2.1.3/gdcha
rt0.94c -g -O2 -pipe -Wp,-MD,.deps/graph.pp -c graph.c  -DPIC -o graph.lo
In file included from ntop.h:864,
                 from graph.c:26:
/usr/bin/../lib/gcc-lib/powerpc-ibm-aix5.1.0.0/2.9-aix43-010414/include/pthr
ead.h:44: warning: `_THREAD_SAFE' redefined
ntop.h:175: warning: this is the location of the previous definition
/usr/bin/../lib/gcc-lib/powerpc-ibm-aix5.1.0.0/2.9-aix43-010414/include/pthr
ead.h:166: warning: missing white space after `#define PTHREAD_ONCE_INIT'
In file included from /usr/include/net/route.h:171,
                 from /usr/include/net/if.h:126,
                 from ntop.h:418,
                 from graph.c:26:
/usr/include/net/radix.h:139: warning: `struct ifnet' declared inside
parameter list
/usr/include/net/radix.h:139: warning: its scope is only this definition or
declaration, which is probably not what you want.
/usr/include/net/radix.h:144: warning: `struct ifnet' declared inside
parameter list
In file included from globals-report.h:26,
                 from graph.c:32:
/install/tar/ntop-2.1.3/gdchart0.94c/gdchart.h:109: initializer element is
not constant
/install/tar/ntop-2.1.3/gdchart0.94c/gdchart.h:110: initializer element is
not constant
/install/tar/ntop-2.1.3/gdchart0.94c/gdchart.h:111: initializer element is
not constant
/install/tar/ntop-2.1.3/gdchart0.94c/gdchart.h:131: initializer element is
not constant
make[2]: *** [graph.lo] Error 1
make[2]: Leaving directory `/install/tar/ntop-2.1.3/ntop'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/install/tar/ntop-2.1.3/ntop'
make: *** [all-recursive-am] Error 2

---

Can you help me, what's wrong?

Thx.,

Peter Sinoros Szabo
BME SZIT sysadm



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

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

Reply via email to