From owner-freebsd-questions@FreeBSD.ORG Mon Aug 30 05:44:10 2004 Return-Path: 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 DD16316A4CE for ; Mon, 30 Aug 2004 05:44:09 +0000 (GMT) Received: from smtp.owt.com (smtp.owt.com [204.118.6.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5743D43D54 for ; Mon, 30 Aug 2004 05:44:07 +0000 (GMT) (envelope-from kstewart@owt.com) Received: from [207.41.94.233] (owt-207-41-94-233.owt.com [207.41.94.233]) by smtp.owt.com (8.12.8/8.12.8) with ESMTP id i7U5hgkG026039; Sun, 29 Aug 2004 22:43:42 -0700 From: kstewart To: FreeBSD-Questions@freebsd.org Date: Sun, 29 Aug 2004 22:43:57 -0700 User-Agent: KMail/1.6.2 References: <20040829232642.U35791@cactus.fi.uba.ar> In-Reply-To: <20040829232642.U35791@cactus.fi.uba.ar> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200408292243.57452.kstewart@owt.com> Subject: Re: Problems compiling Gtk code X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Aug 2004 05:44:10 -0000 On Sunday 29 August 2004 07:35 pm, Fernando Gleiser wrote: > I'm trying to build a GIMP pluging for RAW files. There isn't a port for > it and the plugin suffers from the "All the world's Linux" disease. > > The plugin doesn't use autoconf or anything similar, just the makefile > and a .c file. So far I could make it compile by adding the > corresponding -I flags to gcc (this isn't redhat where everything > goes under /usr/include/ :) ), but when I try to link it it fails miserably > with a lot of messages about undefined references: > > tmp/ccTxq6vi.o(.text+0x351b): undefined reference to `gdk_pixbuf_new' > /tmp/ccTxq6vi.o(.text+0x353f): undefined reference to `g_log' > /tmp/ccTxq6vi.o(.text+0x355d): undefined reference to `gtk_image_get_type' > /tmp/ccTxq6vi.o(.text+0x356d): undefined reference to > `g_type_check_instance_cast' /tmp/ccTxq6vi.o(.text+0x3578): undefined > reference to `gtk_image_set_from_pixbuf' /tmp/ccTxq6vi.o(.text+0x35ab): > undefined reference to `gtk_widget_set_size_request' > /tmp/ccTxq6vi.o(.text+0x35be): undefined reference to > `gimp_dialog_get_type' /tmp/ccTxq6vi.o(.text+0x35cc): undefined reference > to `g_type_check_instance_cast' /tmp/ccTxq6vi.o(.text+0x35d7): undefined > reference to `gimp_dialog_run' /tmp/ccTxq6vi.o(.text+0x35eb): undefined > reference to `gtk_widget_destroy' > > does anyone know what could be wrong here? I checked ldconfig -r output > and the libs seem to be there: You really need to provide what OS you are using. For example, there is an item in /usr/src/UPDATING about rebuilding ports that contain c++ on 5.3. Your failure looks like one of those. Kent > > bash-2.05b$ ldconfig -r | grep gtk > 79:-lgtk12.2 => /usr/X11R6/lib/libgtk12.so.2 > 88:-lwx_gtk2-2.4.0 => /usr/X11R6/lib/libwx_gtk2-2.4.so.0 > 99:-lgtkspell.0 => /usr/X11R6/lib/libgtkspell.so.0 > 130:-lwx_gtk2_gl-2.4.0 => /usr/X11R6/lib/libwx_gtk2_gl-2.4.so.0 > 132:-lgtk-x11-2.0.400 => /usr/X11R6/lib/libgtk-x11-2.0.so.400 > 316:-lexif-gtk.4 => /usr/local/lib/libexif-gtk.so.4 > 467:-lgtk-x11-2.0.200 => > /usr/local/lib/compat/pkg/libgtk-x11-2.0.so.200 bash-2.05b$ ldconfig -r | > grep gimp > 101:-lgimpthumb-2.0.0 => /usr/X11R6/lib/libgimpthumb-2.0.so.0 > 102:-lgimpwidgets-2.0.0 => /usr/X11R6/lib/libgimpwidgets-2.0.so.0 > 105:-lgimpmath-2.0.0 => /usr/X11R6/lib/libgimpmath-2.0.so.0 > 106:-lgimpmodule-2.0.0 => /usr/X11R6/lib/libgimpmodule-2.0.so.0 > 119:-lgimpbase-2.0.0 => /usr/X11R6/lib/libgimpbase-2.0.so.0 > 120:-lgimpcolor-2.0.0 => /usr/X11R6/lib/libgimpcolor-2.0.so.0 > 122:-lgimp-2.0.0 => /usr/X11R6/lib/libgimp-2.0.so.0 > 123:-lgimpui-2.0.0 => /usr/X11R6/lib/libgimpui-2.0.so.0 > 350:-lgimpprint.2 => /usr/local/lib/libgimpprint.so.2 > > Any pointers/suggestions/ideas would be greatly apreciated. > > > Fer > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" -- Kent Stewart Richland, WA http://users.owt.com/kstewart/index.html Support the Bison at http://www.buffalofieldcampaign.org/