From owner-freebsd-questions Thu Aug 23 12: 0:57 2001 Delivered-To: freebsd-questions@freebsd.org Received: from amant.pdl.cs.cmu.edu (AMANT.PDL.CS.CMU.EDU [128.2.189.84]) by hub.freebsd.org (Postfix) with ESMTP id A918A37B406 for ; Thu, 23 Aug 2001 12:00:47 -0700 (PDT) (envelope-from dpetrou@amant.pdl.cs.cmu.edu) Received: (from dpetrou@localhost) by amant.pdl.cs.cmu.edu (8.11.1/8.11.1) id f7NJ0iN32773 for freebsd-questions@freebsd.org; Thu, 23 Aug 2001 15:00:44 -0400 (EDT) (envelope-from dpetrou) Date: Thu, 23 Aug 2001 15:00:44 -0400 From: David Petrou To: freebsd-questions@freebsd.org Subject: wacky warnings linking multithreaded code Message-ID: <20010823150044.E24447@amant.pdl.cs.cmu.edu> Reply-To: dpetrou@cs.cmu.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-Hit-Pick: fIREHOSE / "if'n" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG consider test.c: int main(void) { return 0; } consider linking it against the multithreaded libc: amant 0/380 ~> gcc test.c -lc_r /usr/lib/libc.so: WARNING! setkey(3) not present in the system! /usr/lib/libc.so: warning: this program uses gets(), which is unsafe. /usr/lib/libc.so: warning: mktemp() possibly used unsafely; consider using mkstemp() /usr/lib/libc.so: WARNING! des_setkey(3) not present in the system! /usr/lib/libc.so: WARNING! encrypt(3) not present in the system! /usr/lib/libc.so: warning: tmpnam() possibly used unsafely; consider using mkstemp() /usr/lib/libc.so: warning: this program uses f_prealloc(), which is stupid. /usr/lib/libc.so: WARNING! des_cipher(3) not present in the system! /usr/lib/libc.so: warning: tempnam() possibly used unsafely; consider using mkstemp() what am i doing wrong? thanks, david p.s.: please reply to me directory (dpetrou@cs.cmu.edu) in addition to the list, since i'm not subscribed. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message