Mark
I have just committed the fix: many thanks!

Luca

On Feb 1, 2012, at 8:54 PM, Mark Gibbons wrote:

> OOPS - Sorry for duplicate post but corrected Subject line from a previous 
> thread I had Hijacked
> 
> -----Original Message-----
> From: Mark Gibbons 
> Sent: 01 February 2012 19:53
> To: '[email protected]'
> Subject: RE: [Ntop-dev] pf_ring in a mixed 64-/32-bit environment
> 
> Hi Luca
> 
> I ran in to a compile problem:
> 
> undefined reference to pthread_mutex_trywrlock
> 
> I googled this and came across the following fix:
> 
> ------------------------------------------------------
> 
> Last Updated: 6/8/11
> 
> 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 on
> some systems due to an unresolved symbol error. This is caused by a typo
> in 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 
> 
> ----------------------------------------------------------------
> 
> This was from http://www.paulscomputerservice.net/articles/article.php?ID=220
> 
> However the article also reference a previous dev ntop posting here:
> 
> http://www.gossamer-threads.com/lists/ntop/dev/25705
> 
> So my question is, if this is a genuine typo why is it still wrong in the SVN 
> after so many months.
> 
> KR's
> 
> Mark
> _______________________________________________
> Ntop-dev mailing list
> [email protected]
> http://listgateway.unipi.it/mailman/listinfo/ntop-dev

_______________________________________________
Ntop-dev mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev

Reply via email to