From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 17 02:53:16 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D4F0716A4DF for ; Mon, 17 Jul 2006 02:53:16 +0000 (UTC) (envelope-from mezz7@cox.net) Received: from centrmmtao02.cox.net (centrmmtao02.cox.net [70.168.83.82]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3F4F543D4C for ; Mon, 17 Jul 2006 02:53:16 +0000 (GMT) (envelope-from mezz7@cox.net) Received: from mezz.mezzweb.com ([24.255.149.218]) by centrmmtao02.cox.net (InterMail vM.6.01.06.01 201-2131-130-101-20060113) with ESMTP id <20060717025316.CRAU22014.centrmmtao02.cox.net@mezz.mezzweb.com>; Sun, 16 Jul 2006 22:53:16 -0400 Date: Sun, 16 Jul 2006 21:53:34 -0500 To: "Bob Richards" From: "Jeremy Messenger" Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii MIME-Version: 1.0 References: <44BA98A9.9040903@tamara-b.org> Content-Transfer-Encoding: 7bit Message-ID: In-Reply-To: <44BA98A9.9040903@tamara-b.org> User-Agent: Opera Mail/9.00 (Linux) Cc: freebsd-hackers@freebsd.org Subject: Re: LinkLib Issues In freebsd Lazarus X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jul 2006 02:53:16 -0000 On Sun, 16 Jul 2006 14:51:05 -0500, Bob Richards wrote: > I went back to the Lazarus source tree gmake clean; gmake and received > the following error: > > Free Pascal Compiler version 2.0.2 [2006/07/14] for i386 > Copyright (c) 1993-2005 by Florian Klaempfl > Target OS: FreeBSD/ELF for i386 > Compiling lazarus.pp > Linking ../lazarus > /usr/bin/ld: cannot find -lgdk_pixbuf > lazarus.pp(113,1) Error: Error while linking > > a locate gdk_pixbuf finds: /usr/X11R6/lib/libgdk_pixbuf-2.0 > > So, at this point I just sym-linked my libgdk_pixbuf-2.0 to > libgdk_pixbuf: ln -s libgdk_pixbuf-2.0.a libgdk_pixbuf.a > > and ran gmake again, only to produce: > > Linking ../lazarus > /usr/home/bob/lazarus/lcl/units/i386-freebsd/gtk/gtkint.o(.text+0x6f65): > In function `DATASOURCEINITIALIZE': > gtkobject.inc:2309: undefined reference to `gdk_pixbuf_get_from_drawable' > > Many many more "undefined reference" to something missing in gdk_pixbuf. libgdk_pixbuf-2.0 is a GTK2 stuff, not GTK1. If it's GTK1 (libgdk_pixbuf.a) is what you need, install graphics/gdk-pixbuf. The 'ln -s libgdk_pixbuf-2.0.a libgdk_pixbuf.a' is incorrect and will causing more break stuff. > so: freebsd's stock-installed gdk_pixbuf does not contain the functions > needed! So, I went to ports and found "ruby18-gdk_pixbuf2-0.14.1" a make > install provided "gdk_pixbuf2.so" but no "gdk_pixbuf2.a" !! I find it > odd that no provision is provided to link to this lib! It is a Ruby binding, which it is not a gdk_pixbuf library that you are looking for. Cheers, Mezz -- mezz7@cox.net - mezz@FreeBSD.org FreeBSD GNOME Team - FreeBSD Multimedia Hat (ports, not src) http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org http://wiki.freebsd.org/multimedia - multimedia@FreeBSD.org