From owner-cvs-all Sun Jul 16 23:20:52 2000 Delivered-To: cvs-all@freebsd.org Received: from blizzard.sabbo.net (blizzard.sabbo.net [193.193.218.18]) by hub.freebsd.org (Postfix) with ESMTP id 918B437B774; Sun, 16 Jul 2000 23:20:39 -0700 (PDT) (envelope-from sobomax@FreeBSD.org) Received: from vic.sabbo.net (root@vic.sabbo.net [193.193.218.106]) by blizzard.sabbo.net (8.9.1/8.9.3) with ESMTP id JAA03566; Mon, 17 Jul 2000 09:19:03 +0300 (EEST) Received: from FreeBSD.org (big_brother.vega.com [192.168.1.1]) by vic.sabbo.net (8.9.3/8.9.3) with ESMTP id JAA08025; Mon, 17 Jul 2000 09:20:31 +0300 (EEST) (envelope-from sobomax@FreeBSD.org) Message-ID: <3972A5B0.B0889573@FreeBSD.org> Date: Mon, 17 Jul 2000 09:20:32 +0300 From: Maxim Sobolev Organization: Vega International Capital X-Mailer: Mozilla 4.73 [en] (WinNT; I) X-Accept-Language: uk,ru,en MIME-Version: 1.0 To: Satoshi - Ports Wraith - Asami Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: ports/x11-toolkits/xforms Makefile ports/x11-toolkits/xforms/pkg PLIST References: <200007141159.EAA97550@freefall.freebsd.org> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Satoshi - Ports Wraith - Asami wrote: > * From: Maxim Sobolev > > * Create libform.so --> libxform.so.1 link, because it seems that library has > * been built with --soname option and w/o this link dynamically-linked > * executables don't work. > > I'm missing something here. What does the symlink have to do with > dynamically-linked executables? .so links are supposed to be used for > compile-time linkage only. > > And -soname is supposed to be there, it's not like it's this > software's mistake to include it. Ok, it seems that I should slightly expand my explanation. The xforms libraries comes only in binary form but author was stupid enough to compile shared library with "-soname libforms.so", while the library is installed under libxform.so.1 name. Therefore after you linked it dynamically the resulting executable appears to be linked with nonexisting libform.so shared library. $ echo 'int main() {}' > x.c $ cc x.c -o x -L/usr/X11R6/lib -lxforms -lX11 -lm $ ldd x x: libforms.so => /usr/X11R6/lib/libforms.so (0x28064000) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x28135000) libm.so.2 => /usr/lib/libm.so.2 (0x28226000) libc.so.4 => /usr/lib/libc.so.4 (0x28241000) libc.so.3 => /usr/lib/compat/libc.so.3 (0x282d1000) -Maxim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message