NTOP Compile Error 2
Last Updated: 8/22/15If you are compiling ntop 4.0.3 on CentOS or RedHat and you get this error:
libntop.so: undefined reference to `pthread_mutex_trywrlock'make error [2]
Then here is the solution:The current version of Ntop in SVN (revision 4372) fails to compile onsome systems due to an unresolved symbol error. This is caused by a typoin globals-structtypes.h on line 315. It currently reads:
#define pthread_rwlock_trywrlock pthread_mutex_trywrlock
It should read:
#define pthread_rwlock_trywrlock pthread_mutex_trylock
Source of Solution:
http://www.gossamer-threads.com/lists/ntop/dev/25705