From owner-freebsd-hackers Sat May 22 17:25:40 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from wall.polstra.com (rtrwan160.accessone.com [206.213.115.74]) by hub.freebsd.org (Postfix) with ESMTP id 3473B15031 for ; Sat, 22 May 1999 17:25:37 -0700 (PDT) (envelope-from jdp@polstra.com) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.9.3/8.9.1) with ESMTP id RAA01996; Sat, 22 May 1999 17:25:36 -0700 (PDT) (envelope-from jdp@polstra.com) From: John Polstra Received: (from jdp@localhost) by vashon.polstra.com (8.9.3/8.9.1) id RAA49453; Sat, 22 May 1999 17:25:36 -0700 (PDT) (envelope-from jdp@polstra.com) Date: Sat, 22 May 1999 17:25:36 -0700 (PDT) Message-Id: <199905230025.RAA49453@vashon.polstra.com> To: damian@cablenet.net Subject: Re: dlopen failure In-Reply-To: <37458FF0.FC9B24C8@cablenet.net> References: Organization: Polstra & Co., Seattle, WA Cc: hackers@freebsd.org Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In article <37458FF0.FC9B24C8@cablenet.net>, Damian Hamill wrote: > I have found the problem and it is a problem with make. By chance I did > an ls -l of the directory and noticed the shared object was only 371 > bytes and thought nooooooooo that can't be right. Thanks for letting us know. I'm glad it's solved now. > My makefile sez. > > mysqlacc.so : mysqlacc.o > ld -Bshareable -o $@ $< -u _floor ../../lib/libV.a ... {other libs} By the way, don't use "ld -Bshareable" to build shared libraries. Use "cc -shared". There are some special .o files from /usr/lib that need to be linked in, and "cc -shared" will do that for you automatically. John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Self-interest is the aphrodisiac of belief." -- James V. DeLong To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message