Reply to the list, NOT me personally.  Anything sent to me personally gets a reply If 
& only If I feel like it and gets copied to the list...

glibc has a gnu extension which builds a table of the LOG_xxxx values, called 
facilitynames.  Sun's cc .h files don't do that.

I had coded the test based on the __gnu__ precompiler variable, thinking that if you 
had gcc, you had the glibc.  gcc + the Sun libraries is simply a combo I hadn't 
thought of - I assumed it would be one set or the other not both.  I guess I need to 
add a test into ./configure and then use that not __gnuc__ in the code...

-----Burton

---------- Original Message ----------------------------------
From: Kevin Maguire <[EMAIL PROTECTED]>
Date:  Tue, 2 Jul 2002 02:04:30 +0200 (MEST)

>Hi Burton
>
>Thanks for thr replies on this and the other matters.  I was in three
>minds to reply directly, or to the list as well, or _just_ to the list.
>Let me know if I made the wrong choice
>
>> First off, one problem per message.
>
>Point taken.
>
>> 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
>
>


__________________________________________________
D O T E A S Y - "Join the web hosting revolution!"
             http://www.doteasy.com
_______________________________________________
Ntop-dev mailing list
[EMAIL PROTECTED]
http://lists.ntop.org/mailman/listinfo/ntop-dev

Reply via email to