Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Jun 2002 15:05:58 -0400
From:      "Kevin A. Pieckiel" <kpieckiel@pacer.dmz.smartrafficenter.org>
To:        freebsd-questions@freebsd.org
Subject:   gcc with -pthread links to libc?  Warnings on output...
Message-ID:  <20020626150558.A36720@pacer.dmz.smartrafficenter.org>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
I'm developing a threaded package using standard pthread symantics.
My gcc compile line includes -pthread to link in libc_r instead of
libc, but I gt these warning messages:

/usr/lib/libc.so.4: WARNING!  setkey(3) not present in the system!
/usr/lib/libc.so.4: warning: this program uses gets(), which is unsafe.
/usr/lib/libc.so.4: warning: mktemp() possibly used unsafely; consider using mkstemp()
/usr/lib/libc.so.4: WARNING!  des_setkey(3) not present in the system!
/usr/lib/libc.so.4: WARNING!  encrypt(3) not present in the system!
/usr/lib/libc.so.4: warning: tmpnam() possibly used unsafely; consider using mkstemp()
/usr/lib/libc.so.4: warning: this program uses f_prealloc(), which is not recommended.
/usr/lib/libc.so.4: WARNING!  des_cipher(3) not present in the system!
/usr/lib/libc.so.4: warning: tempnam() possibly used unsafely; consider using mkstemp()

First, I thought -pthread links libc_r instead of libc.  Why is this
showing up here?  Second, my program doesn't even use setkey, gets, mktemp,
des_setkey, encrypt, tmpnam, f_prealloc, des_cipher, nor tempnam.  From
where are these references coming?

The funny thing is, I've developed apps before that use pthreads, and
I didn't get these warnings.  I don't know what is different.  They
were much smaller projects, and I no longer have the source code to
reference.

How do I fix these warnings?

I'm running FBSD 4.5-Stable (cvs'd sources mid Februrary).  Gcc version
is 2.95.3.  Language is C.  Don't know what other info would be of use,
but will be glad to answer questions.

Thanks,
Kevin

-- 
This message was signed by GnuPG.  For my PGP public key, send a blank        
email to kpieckiel-pgp@smartrafficenter.org and it will be sent to you.         
You may also get my key from certserver.pgp.com; my ID is 0x79FC593E.
My current key will expire on 21 August 2002.

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)

iD8DBQE9GhCTdJoPN3n8WT4RAjWAAJ93PwbvmJZSoLfob6OWFqPn8jDhLwCgvY2E
8kFeR2BCfa0iGy3mSObrmiE=
=SVTu
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020626150558.A36720>