From owner-freebsd-questions@FreeBSD.ORG Mon Aug 30 02:34:35 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 A7C3D16A4CE for ; Mon, 30 Aug 2004 02:34:35 +0000 (GMT) Received: from cactus.fi.uba.ar (cactus.fi.uba.ar [157.92.49.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id 047B843D48 for ; Mon, 30 Aug 2004 02:34:35 +0000 (GMT) (envelope-from fgleiser@cactus.fi.uba.ar) Received: from localhost (localhost [127.0.0.1]) by cactus.fi.uba.ar (8.12.11/8.12.11) with ESMTP id i7U2Z2O7065084 for ; Sun, 29 Aug 2004 23:35:02 -0300 (ART) (envelope-from fgleiser@cactus.fi.uba.ar) Date: Sun, 29 Aug 2004 23:35:02 -0300 (ART) From: Fernando Gleiser To: questions@freebsd.org Message-ID: <20040829232642.U35791@cactus.fi.uba.ar> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Score: -104.901 () BAYES_00,USER_IN_WHITELIST X-Scanned-By: MIMEDefang 2.42 Subject: 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 02:34:35 -0000 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: 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