[Cryptominisat-devel] Warning message when compiling

Mate Soos soos.mate at gmail.com
Lun 3 Jan 16:51:49 CET 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dear Rob,

On 01/03/2011 01:37 PM, Robert Aston wrote:
> For a white not I've been getting a warning message during the
> "make" phase when building Cryptominisat.  The compiler completes and
> Cryptominisat runs fine, but the warning is generated.  I'm building it
> on an up to date Fedora 14 machine.  You may wish to use "mkstemp"
> rather than "mktemp" in function sem_open.   The following are the
> messages generated:
>
> Linking CXX executable cryptominisat
> /usr/lib/gcc/x86_64-redhat-linux/4.5.1/../../../../lib64/libpthread.a(libpthread.o):
> In function `sem_open':
> (.text+0x79ee): warning: the use of `mktemp' is dangerous, better use
> `mkstemp'

I believe this is a problem in your pthread library :S We don't use
mktemp or mkstemp, and the sem_open() seems like a semaphore-opening
function of the pthread library, which we use indirectly through OpenMP,
i.e. in a compiler&library-independent way. I would therefore guess this
issue needs to be resolved with your OS vendor, which I am guessing is
RedHat Linux. However, since this is only a warning, probably it is not
in need of an urgent fix.

I hope I have helped,

Bests,

Mate

- -- 
Mate Soos
Security Research Labs
http://www.srlabs.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0h8JIACgkQsTOOstKb0jkcxACeLacIec07rOvaq01u0ekQRI+3
qOkAoJQZl4qzE8XFtC24vlX1tQaNbFIw
=uijj
-----END PGP SIGNATURE-----



More information about the Cryptominisat-devel mailing list