From owner-freebsd-questions Wed Feb 5 9: 8: 6 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C0AA737B405 for ; Wed, 5 Feb 2003 09:08:03 -0800 (PST) Received: from lv.raad.tartu.ee (lv.raad.tartu.ee [194.126.106.110]) by mx1.FreeBSD.org (Postfix) with ESMTP id 06F8543FAF for ; Wed, 5 Feb 2003 09:08:02 -0800 (PST) (envelope-from toomas.aas@raad.tartu.ee) Received: Message by Barricade lv.raad.tartu.ee with ESMTP id h15H7tV14125; Wed, 5 Feb 2003 19:07:55 +0200 Message-Id: <200302051707.h15H7tV14125@lv.raad.tartu.ee> Received: from INFO/SpoolDir by raad.tartu.ee (Mercury 1.48); 5 Feb 03 19:07:22 +0200 Received: from SpoolDir by INFO (Mercury 1.48); 5 Feb 03 19:07:06 +0200 From: "Toomas Aas" Organization: Tartu City Government To: Vallo Kallaste , questions@freebsd.org Date: Wed, 5 Feb 2003 19:07:02 +0200 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: xmlrpc-epi In-reply-to: <20030205082002.GA1085@kevad.internal> References: <200302041320.h14DKeb27860@lv.raad.tartu.ee> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > From: Vallo Kallaste > On Tue, Feb 04, 2003 at 03:19:20PM +0200, Toomas Aas > wrote: > > > If anyone has successfully built xmlrpc-epi ver 0.51 > > (http://xmlrpc-epi.sourceforge.net) under FreeBSD 4.x, I would be > > interested to know how. > > gcc -I/usr/local/include -o .libs/sample sample.o > > -L/usr/local/lib -L/home/xtee /lib ../src/.libs/libxmlrpc.so > > -Wl,--rpath -Wl,/home/xtee/lib ../src/.libs/libxmlrpc.so: > > undefined reference to `iconv_open' ../src/.libs/libxmlrpc.so: > > undefined reference to `iconv_close' ../src/.libs/libxmlrpc.so: > > undefined reference to `iconv' gmake[2]: *** [sample] Error 1 > > gmake[2]: Leaving directory > > `/home/install/src/xmlrpc-epi-0.51/sample' > > > > I do have libiconv-1.8_2 port installed and the build process can > > find it (otherwise it would complain about missing iconv.h). > > It's missing functions found in libiconv library. The library search > path is right, try to add -liconv at the end of line, so it'll pick > up the library. Thanks! Problem solved. So, in conclusion, if you need to build xmlrpc-epi ver 0.51 on FreeBSD, you need to set LDFLAGS=-L/usr/local/lib -liconv and CFLAGS=/usr/local/include (if you have libiconv installed from ports to its default location at /usr/local -- Toomas Aas | toomas.aas@raad.tartu.ee | http://www.raad.tartu.ee/~toomas/ * I went to a general store, but they wouldn't let me buy anything specific. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message