Articles > Linux
Printer Friendly Version
Views: 6773

NTOP Compile Error 2

Last Updated: 8/22/15

If 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





Keywords: ntop compile error number 2 define pthread_rwlock_trywrlock pthread_mutex_trywrlock centos redhat