From owner-freebsd-hackers Wed Feb 9 14: 0:11 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by builder.freebsd.org (Postfix) with ESMTP id AEACD3E75 for ; Wed, 9 Feb 2000 13:59:40 -0800 (PST) Received: (from bright@localhost) by fw.wintelcom.net (8.9.3/8.9.3) id OAA12933; Wed, 9 Feb 2000 14:26:05 -0800 (PST) Date: Wed, 9 Feb 2000 14:26:05 -0800 From: Alfred Perlstein To: Russ Pagenkopf Cc: "freebsd-hackers@freebsd.org" , " (CommuniGate Pro Discussions)" , "Technical Support, Stalker Labs" , Douglas Brian Quayle , Martin Minkus Subject: Re: Summary: FreeBSD, posix, pthread problems Message-ID: <20000209142605.H17536@fw.wintelcom.net> References: <38A1D994.AFB996E7@uas.alaska.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <38A1D994.AFB996E7@uas.alaska.edu>; from russ.pagenkopf@uas.alaska.edu on Wed, Feb 09, 2000 at 12:18:12PM -0900 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Russ Pagenkopf [000209 13:45] wrote: > YEE HAW! The problem is fixed! glad to hear. :) > > The machine: > FreeBSD 3.4-STABLE > (ctm 451) > > The Problem: > > I'm attempting to install CommuniGatePro. When I first tried to run it > > after installation it gave me the following error: > > > > /usr/libexec/ld-elf.so.1: ./CGServer: Undefined symbol > > "pthread_attr_setscope" > > The Solution: > Alfred Perlstein wrote: the symlinks are set properly for you to use > the 3 version of the library (you may want to copy libc_r.so.4 over > libc_r.so.3). > > So, > > chflags noschg libc_r.so.3 > mv libc_r.so.3 libc_r.so.3.bkp > cp libc_r.so.4 libc_r.so.3 > > Voila'! > > Why does this work? > Apparently (remember I'm not a C programmer) CGPro is being linked against > libc_r.so.3 (which on FreeBSD appears to be an older library) as evidenced by: > > archives# ldd CGServer > CGServer: > libcrypt.so.2 => /usr/lib/libcrypt.so.2 (0x281c8000) > libc_r.so.3 => /usr/lib/libc_r.so.3 (0x281dd000) > > instead of libc_r.so which symlinks to the latest library - libc_r.so.4. Now > something else must also be going on while making world or compiling the > kernel, because it seems to me that if the library libc_r.so.3 is physically > there it should also be available for use, but apparently not. Ok well basically I think that the libc_r library version got bumped sometime between the setscope stuff was added and your own upgrade, you're correct that the program was explicitly asking for the .3 version, unfortunatly since the new library is .4 it doesn't replace the .3 version (to help maintain binary compatibility), unfortunatly this seems to have caused you a big headache. :( But then again we got it fixed! :) > I'll keep copies of the email I've sent back and forth if anyone wants them, > otherwise, just count me as one very happy camper! > > Thanks to everyone who had suggestions, everyone of them was valuable and > helped point me in the right direction! Thanks for letting us know what finally fixed it, the record in the mailing list archives should prove helpful to others. -Alfred > > Russ Pagenkopf -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message