Essential gcc flag -D_REENTRANT missing?

  • Richard Toy

    Richard Toy - 2012-11-28

    I see that the code uses the pthread library and that threads are used but I see no -D_REENTRANT compile flag.

    I know that without this flag you can get many hard to reproduce problems because without the flag, errno and is NOT threadsafe.  Please see sect H for details.


  • Richard Toy

    Richard Toy - 2012-12-01

    After some Googling it would appear the proper way to use threads with the newer gcc releases is to use the -pthread flag as this will then apply the correct flags to both the compiler and the linker.  Can somebody create some beta builds with this change made so that we can see if there is an improvement?  I am looking for a Sparc build for my ReadyNAS X6.


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks