From owner-freebsd-ports@FreeBSD.ORG Tue Mar 7 13:04:21 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2771516A420 for ; Tue, 7 Mar 2006 13:04:21 +0000 (GMT) (envelope-from ml@sd2i.com) Received: from www2.sd2i.net (www2.sd2i.net [81.80.186.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9EF2D43D75 for ; Tue, 7 Mar 2006 13:04:15 +0000 (GMT) (envelope-from ml@sd2i.com) Received: from [192.168.1.11] (ADijon-153-1-10-229.w83-196.abo.wanadoo.fr [83.196.225.229]) by www2.sd2i.net (Postfix) with ESMTP id 219BB3FB05 for ; Tue, 7 Mar 2006 14:04:13 +0100 (CET) Message-ID: <440D84CC.3090009@sd2i.com> Date: Tue, 07 Mar 2006 14:04:12 +0100 From: "ml@sd2i.com" User-Agent: Thunderbird 1.5 (Macintosh/20051201) MIME-Version: 1.0 To: freebsd-ports@freebsd.org References: <440D4669.4030005@sd2i.com> <20060307094141.GA2142@pentarou.parodius.com> In-Reply-To: <20060307094141.GA2142@pentarou.parodius.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: wzdftpd compile error X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Mar 2006 13:04:21 -0000 Jeremy Chadwick a écrit : > On Tue, Mar 07, 2006 at 09:38:01AM +0100, ml@sd2i.com wrote: >> I have the error on 4.11 and 5.4, ports tree updated today, anyone can >> help me to complete the install ? >> {snip} >> # portversion -v libiconv >> libiconv-1.9.2_2 = up-to-date with port >> {snip} >> >> *** Warning: Linking the executable wzdftpd against the loadable module >> *** libwzd_core.so is not portable! >> cc -O -pipe -pthread -o .libs/wzdftpd -D_THREAD_SAFE wzd_main.o >> wzd_ServerThread.o wzd_init_lex.o -L/usr/local/lib -lcrypt >> ../libwzd-core/.libs/libwzd_core.so -Wl,--rpath -Wl,/usr/local/lib >> ../libwzd-core/.libs/libwzd_core.so: undefined reference to `libiconv_open' >> ../libwzd-core/.libs/libwzd_core.so: undefined reference to `libiconv_close' >> ../libwzd-core/.libs/libwzd_core.so: undefined reference to `libiconv' >> gmake[2]: *** [wzdftpd] Error 1 >> rm wzd_init_lex.c >> gmake[2]: Leaving directory >> `/usr/ports/ftp/wzdftpd/work/wzdftpd-0.6.1/wzdftpd' >> gmake[1]: *** [all-recursive] Error 1 >> gmake[1]: Leaving directory `/usr/ports/ftp/wzdftpd/work/wzdftpd-0.6.1' >> gmake: *** [all] Error 2 >> *** Error code 2 > > Looks like -liconv is missing from the gcc flags (which are passed > to ld). > Do you know if there's a way to add it from portinstall (-m arg ?) or do i need to alter the sources after a make patch ? By the way thanks for the tip. Regards.