K

I committed a patch to the Makefile that should accurately detect the gcc vs
cc version of syslog.h.  Please try and let me know...

-----Burton

-----Original Message-----
From: Kevin Maguire [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 01, 2002 7:05 PM
To: Burton M. Strauss III
Subject: RE: [Ntop-dev] problem compiling under solaris 2.6


<snip />

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

gcc 2.95.2.  I didn't try with Sun Forte cc.

> 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

I guess so.

> 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.

Not sure I follow here ...

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

Yes, you guess correctly.  Is the combination of using Gnu C + glibc
both necessary and sufficient?

Kevin


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

Reply via email to