Thx Gary,

yes i am using gmake and i read the faqs but didn't find anything useful.

It seems that there is some problems in generating preprocessor flags. If i manage to fix the #define issue by adding a custom typedef in globals-structtypes.h

#if defined SOLARIS
#define u_int64_t uint64_t
#else
#error "Sorry, I'm unable to define u_int64_t on your platform"
#endif

i can go ahead but something is missing in C declaration

address.c:244: error: `he' undeclared (first use in this function)
address.c:244: error: (Each undeclared identifier is reported only once
address.c:244: error: for each function it appears in.)

This make me say that something is wrong in the # macros

I know that binary version is available under sunfreeware, but it's v3.3 and i want to do a clean installation under a custom directory, not under /usr/local ad sunfreeware does.


Roberto


Il 06/12/2010 17:05, Gary Gatten ha scritto:
Not sure if it will fix all (or any) of your problems, but have you tried "gmake"?  
I've never been good at interpreting make errors, but this on looks bad: 
globals-structtypes.h:74:2: #error "Sorry, I'm unable to define
u_int64_t on your platform"

Did you check the readme/install docs for Solaris?

G


-----Original Message-----
From:[email protected]  
[mailto:[email protected]] On Behalf Of Roberto Bertucci
Sent: Monday, December 06, 2010 9:58 AM
To:[email protected]
Subject: [Ntop] ntop 4.03 under Solaris10/Sparc

Hi all, i am spending a lot of time trying to compile ntop 4.0.3 in a
solaris10 sparc environment.
autogen and configure end nicely, generating a good makefile, but, when
i try make:

bash-3.00$ make
(CDPATH="${ZSH_VERSION+.}:"&&  cd .&&  /bin/sh ./missing --run echo)

rm -f stamp-h1
touch config.h.in
cd .&&  /bin/bash ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
make  all-recursive
make[1]: Entering directory `/export/home/local/ntop/src/ntop-4.0.3'
Making all in .
make[2]: Entering directory `/export/home/local/ntop/src/ntop-4.0.3'
/bin/bash ./libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
-I. -I/usr/local/ntop/include/python2.7 -fno-strict-aliasing
-I/usr/local/ntop/include -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes  -I/usr/local/ntop/include  -DSOLARIS
-I/usr/local/include -I/opt/sfw/include -I/usr/local/ntop/include
-I/opt/local/ntop/include  -g -save-temps -I/usr/local/ntop/include
-I/opt/local/ntop/include -g -Wshadow -Wpointer-arith
-Wmissing-prototypes -Wmissing-declarations -Wnested-externs  -fPIC
-DPIC  -I/usr/local/ntop/include/python2.7
-I/usr/local/ntop/include/python2.7 -fno-strict-aliasing
-I/usr/local/ntop/include -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes -MT address.lo -MD -MP -MF .deps/address.Tpo -c -o
address.lo address.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.
-I/usr/local/ntop/include/python2.7 -fno-strict-aliasing
-I/usr/local/ntop/include -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes -I/usr/local/ntop/include -DSOLARIS
-I/usr/local/include -I/opt/sfw/include -I/usr/local/ntop/include
-I/opt/local/ntop/include -g -save-temps -I/usr/local/ntop/include
-I/opt/local/ntop/include -g -Wshadow -Wpointer-arith
-Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fPIC -DPIC
-I/usr/local/ntop/include/python2.7 -I/usr/local/ntop/include/python2.7
-fno-strict-aliasing -I/usr/local/ntop/include -DNDEBUG -g -fwrapv -O3
-Wall -Wstrict-prototypes -MT address.lo -MD -MP -MF .deps/address.Tpo
-c address.c  -fPIC -DPIC -o .libs/address.o
In file included from /usr/local/ntop/include/python2.7/Python.h:8,
                   from ntop.h:491,
                   from address.c:21:
/usr/local/ntop/include/python2.7/pyconfig.h:1127:1: warning:
"_FILE_OFFSET_BITS" redefined
In file included from /usr/include/stdio.h:22,
                   from ntop.h:137,
                   from address.c:21:
/usr/include/sys/feature_tests.h:188:1: warning: this is the location of
the previous definition
In file included from /usr/local/ntop/include/python2.7/Python.h:8,
                   from ntop.h:491,
                   from address.c:21:
/usr/local/ntop/include/python2.7/pyconfig.h:1158:1: warning:
"_REENTRANT" redefined
In file included from address.c:21:
ntop.h:113:1: warning: this is the location of the previous definition
In file included from ntop.h:521,
                   from address.c:21:
globals-structtypes.h:74:2: #error "Sorry, I'm unable to define
u_int64_t on your platform"
make[2]: *** [address.lo] Error 1
make[2]: Leaving directory `/export/home/local/ntop/src/ntop-4.0.3'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/export/home/local/ntop/src/ntop-4.0.3'
make: *** [all] Error 2


Anybody else have faced this problem?

Any hint/suggestion is really appreciated,
Roberto






<font size="1">
<div style='border:none;border-bottom:double windowtext 2.25pt;padding:0in 0in 
1.0pt 0in'>
</div>
"This email is intended to be reviewed by only the intended recipient
  and may contain information that is privileged and/or confidential.
  If you are not the intended recipient, you are hereby notified that
  any review, use, dissemination, disclosure or copying of this email
  and its attachments, if any, is strictly prohibited.  If you have
  received this email in error, please immediately notify the sender by
  return email and delete this email from your system."
</font>

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


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

Reply via email to