Date: Wed, 9 May 2001 20:44:32 +0700 (NOVST) From: Max Khon <fjoe@newst.net> To: Rasputin <rara.rasputin@virgin.net> Cc: security@freebsd.org Subject: Re: setkey(3) not present in the system Message-ID: <Pine.BSF.4.21.0105092040570.87773-100000@lark.nsk.bsgdesign.com> In-Reply-To: <20010509142724.A53401@dogma.freebsd-uk.eu.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0105092040570.87773-100000>