First off, one problem per message.

Secondly, what is the environment?  cc or gcc, etc...

Look at ntop.h, around 565:

 *                 USE_SYSLOG is shorthand for defined(HAVE_SYS_SYSLOG_H) ||
defined(HAVE_SYSLOG_H)
 *                 Use that ifdef everywhere else for code dependent on the
includes.

Which is correct, you have /usr/include/sys/syslog.h

The test for facilitynames is #if !defined(__GNUC__).

Thinking about this, it is assuming that a gcc compile has glibc libraries
and these will have the facilitynames.  And cc doesn't - so we supply them
inline.

I'm GUESSING you have gcc installed but not glibc?

-----Burton

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf
Of Kevin Maguire
Sent: Monday, July 01, 2002 6:19 PM
To: [EMAIL PROTECTED]
Subject: [Ntop-dev] problem compiling under solaris 2.6


Hi

I checked out latest via CVS as described on main page.

However on solaris 2.6 it fails to compile webInterface.c due to

USE_SYSLOG gets defined, but on solaris 2.6/8/9 (all these OS versions
have same version of this file)

/usr/include/sys/syslog.h

does not define facilitynames, therefore errors.  (this IS defined in
Linmux /usr/include/sys/syslog.h).  I undefined USE_SYSLOG in
webInterface.c and main.c and the code compiles and links OK.

I also note it still logs plenty of info via syslog :-)

<snip />



_______________________________________________
Ntop-dev mailing list
[EMAIL PROTECTED]
http://lists.ntop.org/mailman/listinfo/ntop-dev

Reply via email to