NetBSD Problem Report #30090
From www@netbsd.org Fri Apr 29 09:12:59 2005
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
id D66C263B116; Fri, 29 Apr 2005 09:12:59 +0000 (UTC)
Message-Id: <20050429091259.D66C263B116@narn.netbsd.org>
Date: Fri, 29 Apr 2005 09:12:59 +0000 (UTC)
From: idart@performancedesign.no
Reply-To: idart@performancedesign.no
To: gnats-bugs@netbsd.org
Subject: [PATCH] security/gnome-keyring fails to link against all necessary libraries
X-Send-Pr-Version: www-1.0
>Number: 30090
>Category: pkg
>Synopsis: [PATCH] security/gnome-keyring fails to link against all necessary libraries
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Apr 29 09:13:00 +0000 2005
>Closed-Date: Thu Dec 03 02:21:37 +0000 2009
>Last-Modified: Thu Dec 03 02:21:37 +0000 2009
>Originator: Idar Tollefsen
>Release: N/A
>Organization:
Performance Design
>Environment:
Darwin fulcrum.local 7.9.0 Darwin Kernel Version 7.9.0: Wed Mar 30 20:11:17 PST 2005; root:xnu/xnu-517.12.7.obj~1/RELEASE_PPC Power Macintosh powerpc
>Description:
When trying to build security/gnome-keyring I get the following:
/bin/sh ./libtool --mode=link gcc -pipe -O2 -I/usr/local/include -I/usr/include -I/usr/local/include/freetype2 -L/usr/local/lib -L/usr/lib -L/usr/X11R6/lib -o gnome-keyring-ask gnome-keyring-ask.o -L/usr/local/lib -lgtk-x11-2.0 -lintl
gcc -pipe -O2 -I/usr/local/pkgsrc/security/gnome-keyring/work/.buildlink/include -I/usr/local/pkgsrc/security/gnome-keyring/work/.buildlink/include/freetype2 -o gnome-keyring-ask gnome-keyring-ask.o -L/usr/local/pkgsrc/security/gnome-keyring/work/.buildlink/lib -L/usr/local/pkgsrc/security/gnome-keyring/work/.x11-buildlink/lib /usr/local/pkgsrc/security/gnome-keyring/work/.buildlink/lib/libgtk-x11-2.0.dylib /usr/local/pkgsrc/security/gnome-keyring/work/.buildlink/lib/libintl.dylib /usr/lib/libiconv.dylib -lc
ld: gnome-keyring-ask.o illegal reference to symbol: _g_print defined in indirectly referenced dynamic library /usr/local/lib/libglib-2.0.0.dylib
ld: gnome-keyring-ask.o illegal reference to symbol: _g_signal_connect_data defined in indirectly referenced dynamic library /usr/local/lib/libgobject-2.0.0.dylib
*** Error code 1
>How-To-Repeat:
Try to configure and build security/gnome-keyring.
It's possible that this problem is Darwin/OS X specific.
If it is, try to configure and build security/gnome-keyring
on Darwin/OS X.
>Fix:
Add linking against gobject and glib by patching the configure script.
Here's a new patch (security/gnome-keyring/patches/patch-aa):
-------------------------------------------------------------
--- configure.orig Fri Apr 29 10:15:00 2005
+++ configure Fri Apr 29 10:23:00 2005
@@ -20591,23 +20591,23 @@
else
PKG_CONFIG_MIN_VERSION=0.9.0
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
- echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.3.1" >&5
-echo $ECHO_N "checking for gtk+-2.0 >= 2.3.1... $ECHO_C" >&6
+ echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.3.1 gobject-2.0 >= 2.3.1 glib-2.0 >= 2.3.1" >&5
+echo $ECHO_N "checking for gtk+-2.0 >= 2.3.1 gobject-2.0 >= 2.3.1 glib-2.0 >= 2.3.1... $ECHO_C" >&6
- if $PKG_CONFIG --exists "gtk+-2.0 >= 2.3.1" ; then
+ if $PKG_CONFIG --exists "gtk+-2.0 >= 2.3.1 gobject-2.0 >= 2.3.1 glib-2.0 >= 2.3.1" ; then
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
succeeded=yes
echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
- GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.3.1"`
+ GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.3.1 gobject-2.0 >= 2.3.1 glib-2.0 >= 2.3.1"`
echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
echo "${ECHO_T}$GTK_CFLAGS" >&6
echo "$as_me:$LINENO: checking GTK_LIBS" >&5
echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
- GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.3.1"`
+ GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.3.1 gobject-2.0 >= 2.3.1 glib-2.0 >= 2.3.1"`
echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
echo "${ECHO_T}$GTK_LIBS" >&6
else
@@ -20615,7 +20615,7 @@
GTK_LIBS=""
## If we have a custom action on failure, don't print errors, but
## do set a variable so people can do so.
- GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.3.1"`
+ GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.3.1 gobject-2.0 >= 2.3.1 glib-2.0 >= 2.3.1"`
echo $GTK_PKG_ERRORS
fi
@@ -20630,8 +20630,8 @@
if test $succeeded = yes; then
:
else
- { { echo "$as_me:$LINENO: error: Library requirements (gtk+-2.0 >= 2.3.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
-echo "$as_me: error: Library requirements (gtk+-2.0 >= 2.3.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
+ { { echo "$as_me:$LINENO: error: Library requirements (gtk+-2.0 >= 2.3.1 gobject-2.0 >= 2.3.1 glib-2.0 >= 2.3.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
+echo "$as_me: error: Library requirements (gtk+-2.0 >= 2.3.1 gobject-2.0 >= 2.3.1 glib-2.0 >= 2.3.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
{ (exit 1); exit 1; }; }
fi
>Release-Note:
>Audit-Trail:
From: Idar Tollefsen <idart@performancedesign.no>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/30090
Date: Fri, 29 Apr 2005 11:29:00 +0200
pkg/29989 details a somewhat similar problem in x11/gtk2.
pkg/30083 details a similar problem in devel/libglade2.
pkg/30088 details a similar problem in graphics/libgnomecanvas.
pkg/30089 details a similar problem in devel/libbonoboui.
From: Idar Tollefsen <idart@performancedesign.no>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/30090
Date: Thu, 12 May 2005 01:28:57 +0200
pkg/30207 details a similar problem in graphics/librsvg2.
State-Changed-From-To: open->closed
State-Changed-By: snj@NetBSD.org
State-Changed-When: Thu, 03 Dec 2009 02:21:37 +0000
State-Changed-Why:
Changes in the gtk2 package made this problem go away.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.