From owner-freebsd-security Wed May 9 6:44:52 2001 Delivered-To: freebsd-security@freebsd.org Received: from mail.newst.irs.ru (newst.irs.ru [212.164.94.1]) by hub.freebsd.org (Postfix) with ESMTP id A135F37B422 for ; Wed, 9 May 2001 06:44:46 -0700 (PDT) (envelope-from fjoe@newst.net) Received: from lark.nsk.bsgdesign.com (lark.nsk.bsgdesign.com [192.168.3.21]) by mail.newst.irs.ru (8.11.1/8.11.0) with ESMTP id f49DiWK89385; Wed, 9 May 2001 20:44:33 +0700 (NOVST) (envelope-from fjoe@newst.net) Date: Wed, 9 May 2001 20:44:32 +0700 (NOVST) From: Max Khon X-Sender: fjoe@lark.nsk.bsgdesign.com To: Rasputin Cc: security@freebsd.org Subject: Re: setkey(3) not present in the system In-Reply-To: <20010509142724.A53401@dogma.freebsd-uk.eu.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org hi, there! On Wed, 9 May 2001, Rasputin wrote: > > > /usr/lib/libc.so: WARNING! setkey(3) not present in the system! > > > /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! des_cipher(3) not present in the system! > > > > are you sure you are not linking your binary against libc_r and libc? > > in FreeBSD you should use -pthread option for gcc when you want your > > program to be linked against libc_r > > Bingo. The command line is a right mess, > > cc -D_REENTRANT=1 -I. -O -pipe -march=k6 -I/usr/local/include -I/usr/local/include/libxml2 -I/usr/local/include/libxml2/libxml -o checks/check_list checks/check_list.o libgw.a libwmlscript.a libgwlib.a -lz -lm -lc_r -L/usr/local/lib -lxml2 -lz -L/usr/local/lib -lgiconv > > The only libpthread I have is in /usr/compat/linux/lib: > rasputin@shikima kannel]$locate libpthread > /usr/compat/linux/lib/libpthread-0.8.so > /usr/compat/linux/lib/libpthread.so.0 > > - is it supposed to be in the base system? > > This has got less n less to do with security, and more to do with > me biting off more than I can chew, now... > > So I'll shut up :) if you want threads in FreeBSD (at least in 4.x and earlier) you need to link specifying '-pthread' option for gcc. Having specified this option you will have your program linked against libc_r. Explicit -lc_r options for linking are not needed. FreeBSD 4.x does not have libpthread (all the needed functionality is contained in libc_r). /fjoe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message