From owner-freebsd-current@FreeBSD.ORG Fri May 12 14:23:16 2006 Return-Path: X-Original-To: freebsd-current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8041716A635 for ; Fri, 12 May 2006 14:23:16 +0000 (UTC) (envelope-from tataz@tataz.chchile.org) Received: from smtp1-g19.free.fr (smtp1-g19.free.fr [212.27.42.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4872943D48 for ; Fri, 12 May 2006 14:23:09 +0000 (GMT) (envelope-from tataz@tataz.chchile.org) Received: from tatooine.tataz.chchile.org (tataz.chchile.org [82.233.239.98]) by smtp1-g19.free.fr (Postfix) with ESMTP id 64CBE7A9C0; Fri, 12 May 2006 16:23:08 +0200 (CEST) Received: from obiwan.tataz.chchile.org (unknown [192.168.1.25]) by tatooine.tataz.chchile.org (Postfix) with ESMTP id 8AD559D381; Fri, 12 May 2006 14:22:56 +0000 (UTC) Received: by obiwan.tataz.chchile.org (Postfix, from userid 1000) id 53D29405D; Fri, 12 May 2006 16:22:56 +0200 (CEST) Date: Fri, 12 May 2006 16:22:55 +0200 From: Jeremie Le Hen To: freebsd-current@FreeBSD.org Message-ID: <20060512142255.GA69418@obiwan.tataz.chchile.org> References: <20060509150839.GD84148@obiwan.tataz.chchile.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060509150839.GD84148@obiwan.tataz.chchile.org> User-Agent: Mutt/1.5.11 Cc: lukem@NetBSD.org Subject: Re: [fbsd] libexec/lukemftpd breaks with NO_SHARED X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 May 2006 14:23:18 -0000 Hi, On Tue, May 09, 2006 at 05:08:40PM +0200, Jeremie Le Hen wrote: > Hi list, > > I think the subject is clear enough :-). I am not sure how to deal with > this since both objects involved in the symbol conflicts live in > src/contrib/. Maybe one should not build libexec/ stuff statically, > I am not aware of this limitation. I was building my tree with NO_SHARED > for testing purpose : > > % cc -O2 -fno-strict-aliasing -pipe -march=pentium-m -include nbsd2fbsd.h -I/usr/src/libexec/lukemftpd -I/usr/src/libexec/lukemftpd/../../contrib/lukemftpd -I/usr/src/libexec/lukemftpd/../../contrib/lukemftpd/src -I/usr/src/libexec/lukemftpd/../../lib/libc/stdtime -I/usr/src/libexec/lukemftpd/../../bin/ls -DUSE_OPIE -DLOGIN_CAP -DUSE_PAM -fstack-protector -static -o lukemftpd cmds.o conf.o ftpd.o ftpcmd.o popen.o strsuftoll.o ls-unmain.o cmp.o print.o util.o -lcrypt -lutil -lm -lopie -lmd -lpam -lkrb5 -lasn1 -lcrypto -lcrypt -lroken -lcom_err -lradius -ltacplus -lcrypt -lutil -lopie -lmd -lssh -lcrypto -lcrypt -lypclnt > % /usr/obj/usr/src/tmp/usr/lib/libssh.a(xmalloc.o)(.text+0xd0): In function `xstrdup': > % : multiple definition of `xstrdup' > % ftpd.o(.text+0x1460): first defined here > % /usr/obj/usr/src/tmp/usr/bin/ld: Warning: size of symbol `xstrdup' changed from 44 in ftpd.o to 70 in /usr/obj/usr/src/tmp/usr/lib/libssh.a(xmalloc.o) I contacted OpenSSH folks to ask them if it was possible to change the name of their functions, but they answered me that libssh is an internal library and should not be used elsewhere. I don't know why lukemftpd uses it, I suppose the author had good reasons. I Cc'd him in case he has time to enlighten me on this point. Regards, -- Jeremie Le Hen < jeremie at le-hen dot org >< ttz at chchile dot org >