I have been attemping to compile ntop 2.1.51 with netbsd and threads ,
netbsd does not come standard with threads so I install gnu's pthreads
This gets me to the next compile issue.
I get the following compiler error:
what am I missing?
globals.h:296: syntax error before `dequeueThreadId'
globals.h:307: syntax error before `pthread_t'
globals.h:314: syntax error before `pthread_t'
globals.h:321: syntax error before `pthread_t'
globals.h:333: syntax error before `pthread_t'
globals.h:350: syntax error before `pthread_t'
In file included from ntop.h:2479,
from address.c:21:
globals-core.h:278: syntax error before `*'
globals-core.h:278: `createThread' declared as function returning a function
globals-core.h:279: syntax error before `char'
globals-core.h:280: syntax error before `*'
my globals looks like this:
#endif /* ! USE_SEMAPHORES */
/*
* NPA - Network Packet Analyzer (main thread)
*/
PthreadMutex packetQueueMutex;
pthread_t dequeueThreadId; <==================
line 296
/*
* HTS - Host Traffic Statistics
*/
PthreadMutex hostsHashMutex;
u_char hostsHashMutexInitialized;
/*
* SIH - Scan Idle Hosts - optional
*/
pthread_t scanIdleThreadId;
/*
* AR - Address Resolution - optional
*/
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.394 / Virus Database: 224 - Release Date: 10/3/2002