From owner-freebsd-ports Wed Apr 3 11:52:10 1996 Return-Path: owner-ports Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id LAA18238 for ports-outgoing; Wed, 3 Apr 1996 11:52:10 -0800 (PST) Received: from gateway.tcsi.com ([137.134.47.2]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id LAA18211 for ; Wed, 3 Apr 1996 11:52:06 -0800 (PST) Received: from phact.tcs.com (phact.tcs.com [137.134.41.99]) by gateway.tcsi.com (8.7.4/8.6.10) with ESMTP id LAA16733; Wed, 3 Apr 1996 11:51:57 -0800 (PST) Received: from cozumel.tcs.com (cozumel.tcs.com [137.134.104.12]) by phact.tcs.com (8.7.4/8.6.10) with ESMTP id LAA17401; Wed, 3 Apr 1996 11:51:55 -0800 (PST) From: Douglas Ambrisko Received: (ambrisko@localhost) by cozumel.tcs.com (8.6.10/8.6.10) id LAA07074; Wed, 3 Apr 1996 11:50:14 -0800 Message-Id: <199604031950.LAA07074@cozumel.tcs.com> Subject: Re: Need ld help on SOCKS5 port To: jdp@polstra.com (John Polstra) Date: Wed, 3 Apr 1996 11:50:13 -0800 (PST) Cc: freebsd-ports@freebsd.org In-Reply-To: <199604031651.IAA04672@austin.polstra.com> from "John Polstra" at Apr 3, 96 08:51:39 am X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-ports@freebsd.org X-Loop: FreeBSD.org Precedence: bulk John Polstra writes: | | Bud Dodson writes: | | > gcc -o libsocks5_sh.so -shared msg.so protocol.so ... -lcompat | > ... | > ld: No reference to __DYNAMIC | > *** Error code 1 | > ... | | On FreeBSD, you build a shared library like this: | | ld -Bshareable -o libsocks5_sh.so.1.0 msg.so protocol.so ... -lcompat | | Just use "ld -Bshareable" in place of "gcc -shared". (I also added major | and minor version numbers to the name of your output file.) | | In my opinion, it's a bug that "gcc -shared" doesn't work. But nobody | (including me) has ever bothered to fix that. FYI, I've been working on Socks5 and have it running at home so I only need one IP. Socks5 is changing fast so people should watch the Socks5 mailing list, it is also a good idea to look at the web page "http://www.socks.nec.com". This library is basically useless with FreeBSD as it is now. I have submited a patch to Socks5 Beta 10 to the Socks5 list and it has been rolled into the Socks4 Beta 11 release. This one compiles out of the box! The reason that this library is useless is that FreeBSD doesn't support LD_PRELOAD yet. I've been working with John to add this support to FreeBSD. FYI John, the version number is useless information and would break things in this case of LD_PRELOAD. Libs are handled differently with LD_PRELOAD which is the way libsocks5_sh.so is used. I have a "port" ready to go, but I've been waiting for an official release from the author and for him to make it accessible via ftp. I should have it done tomorrow night if all goes well. Stay tuned. Doug A.