NetBSD Problem Report #44016

From www@NetBSD.org  Sat Oct 30 16:09:42 2010
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 82F0163B942
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 30 Oct 2010 16:09:42 +0000 (UTC)
Message-Id: <20101030160941.E4CE263B873@www.NetBSD.org>
Date: Sat, 30 Oct 2010 16:09:41 +0000 (UTC)
From: schaecsn@gmx.net
Reply-To: schaecsn@gmx.net
To: gnats-bugs@NetBSD.org
Subject: x11/gtk must be linked against libintl
X-Send-Pr-Version: www-1.0

>Number:         44016
>Category:       pkg
>Synopsis:       x11/gtk must be linked against libintl
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    linux-pkg-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Oct 30 16:10:00 +0000 2010
>Closed-Date:    Fri Nov 12 08:19:03 +0000 2010
>Last-Modified:  Fri Nov 12 08:19:03 +0000 2010
>Originator:     Stefan
>Release:        Slackware 13
>Organization:
>Environment:
>Description:
x11/gtk: libgtk.so (and .a?) must be linked against libintl on linux (pkgsrc2010Q3):


make[2]: Entering directory `/tmp/current/x11/gtk/work/gtk+-1.2.10/gtk'
/bin/sh ../libtool --mode=link gcc  -Wno-error -O2 -march=pentium4 -pipe -I/usr/include -I/usr/current/include -Wall -L/usr/lib -Wl,-R/usr/lib -L/usr/current/lib -Wl,-R/usr/current/lib  -o testgtk  testgtk.o libgtk.la ../gdk/libgdk.la -Wl,-R/usr/current/lib -L/usr/current/lib -lXi -lXext -lX11 -L/usr/current/lib -Wl,-R/usr/current/lib -rdynamic -lgmodule -lglib -ldl -lm -lintl
libtool: link: gcc -Wno-error -O2 -march=pentium4 -pipe -I/tmp/current/x11/gtk/work/.buildlink/include -Wall -Wl,-R/usr/current/lib -o .libs/testgtk testgtk.o -rdynamic  -L/tmp/current/x11/gtk/work/.buildlink/lib ./.libs/libgtk.so ../gdk/.libs/libgdk.so /tmp/current/x11/gtk/work/.buildlink/lib/libXi.so /tmp/current/x11/gtk/work/.buildlink/lib/libXext.so /tmp/current/x11/gtk/work/.buildlink/lib/libX11.so /tmp/current/x11/gtk/work/.buildlink/lib/libxcb.so /tmp/current/x11/gtk/work/.buildlink/lib/libXau.so /tmp/current/x11/gtk/work/.buildlink/lib/libXdmcp.so /tmp/current/x11/gtk/work/.buildlink/lib/libgmodule.so /tmp/current/x11/gtk/work/.buildlink/lib/libglib.so -ldl -lm -Wl,-rpath -Wl,/usr/current/lib -Wl,-rpath -Wl,/tmp/current/x11/gtk/work/.buildlink/lib
./.libs/libgtk.so: undefined reference to `libintl_dgettext'
./.libs/libgtk.so: undefined reference to `libintl_bindtextdomain'
collect2: ld returned 1 exit status


None of the noinst_PROGRMS in work/gtk+-1.2.10/gtk/Makefile links properly. This problem also propagates to other packages that need libgtk-1.2 such as xmms.


PS: libgtk.so was linked against libintl for pkgsrc2010Q2.
>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->linux-pkg-people
Responsible-Changed-By: hauke@NetBSD.org
Responsible-Changed-When: Sat, 30 Oct 2010 16:40:11 +0000
Responsible-Changed-Why:
A Linux related issue.


From: Steven Drake <sbd@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/44016: x11/gtk must be linked against libintl
Date: Mon, 8 Nov 2010 16:57:45 +1300 (NZDT)

 Do you have any the the environment variable: CPATH CPLUS_INCLUDE_PATH or
 LIBRARY_PATH set, if so please try unseting them and rebuilding the 
 package after a 'make clean'.

 -- 
 Steven

From: Stefan Schaeckeler <schaecsn@gmx.net>
To: gnats-bugs@NetBSD.org
Cc: 	linux-pkg-people@netbsd.org,gnats-admin@netbsd.org,pkgsrc-bugs@netbsd.org
Subject: Re: pkg/44016: x11/gtk must be linked against libintl
Date: Mon,  8 Nov 2010 12:46:13 -0800 (PST)

 >  Do you have any the the environment variable: CPATH CPLUS_INCLUDE_PATH or
 >  LIBRARY_PATH set, if so please try unseting them and rebuilding the 
 >  package after a 'make clean'.

 These variables are not set. I'm now closer to solving the problem:

 I have a stable pkgsrc branch installed under /usr/local. Nothing special there.

 Then, I compile a second pkgsrc into /usr/current. I don't actually use these programs. I just compile there either pkgsrc-current or a new stable pkgsrc branch. If it compiles there cleanly, I'll upgrade pkgsrc under /usr/local.


 Quick info about my second pkgsrc installation under /usr/current:


 /etc/ld.so.conf:

 /usr/local/lib
 /usr/i486-slackware-linux/lib
 /opt/lib
 /usr/local/lib/nspr
 /usr/local/lib/nss


 /usr/current/etc/mk.conf:

 PKG_DBDIR=		/usr/current/var/db/pkg
 LOCALBASE=		/usr/current
 VARBASE=		/usr/current/var
 PKG_TOOLS_BIN=		/usr/current/sbin
 PKGMANDIR=		man
 X11_TYPE=		modular
 WRKOBJDIR=              /tmp/current

 Programs are compiled with /usr/current in PATH:
 PATH=/usr/current/bin:/usr/current/sbin:$PATH bmake install clean


 Just figured out that if I remove /usr/local (e.g. mv /usr/local /usr/local.tmp), then gtk compiles cleanly under /usr/current.

 So far, I never had problems with my parallel pkgsrc installation under /usr/current. This is now the first time.

 Should I ask in a mailing list why this problem arises? Guess it has nothing to do with a suspected bug in x11/gtk.

  Stefan

From: Steven Drake <sbd@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/44016: x11/gtk must be linked against libintl
Date: Tue, 9 Nov 2010 20:50:38 +1300 (NZDT)

 On Mon, 8 Nov 2010, Stefan Schaeckeler wrote:

 >  I have a stable pkgsrc branch installed under /usr/local. Nothing 
 > special there.

 That explains it, you must have gettext-lib installed under /usr/local.

 >  Just figured out that if I remove /usr/local (e.g. mv /usr/local 
 >  /usr/local.tmp), then gtk compiles cleanly under /usr/current.

 Try removing the gettext-lib package (possibly gettext-tools/gettext to)
 and installing the slackware gettext package.

 -- 
 Steven

From: Stefan Schaeckeler <schaecsn@gmx.net>
To: gnats-bugs@NetBSD.org
Cc: 	linux-pkg-people@netbsd.org,gnats-admin@netbsd.org,pkgsrc-bugs@netbsd.org
Subject: Re: pkg/44016: x11/gtk must be linked against libintl
Date: Wed, 10 Nov 2010 12:34:36 -0800 (PST)

 > From: Steven Drake <sbd@NetBSD.org>
 > 
 > The following reply was made to PR pkg/44016; it has been noted by GNATS.
 > 
 > From: Steven Drake <sbd@NetBSD.org>
 > To: gnats-bugs@NetBSD.org
 > Cc: 
 > Subject: Re: pkg/44016: x11/gtk must be linked against libintl
 > Date: Tue, 9 Nov 2010 20:50:38 +1300 (NZDT)
 > 
 >  On Mon, 8 Nov 2010, Stefan Schaeckeler wrote:
 >  
 >  >  I have a stable pkgsrc branch installed under /usr/local. Nothing 
 >  > special there.
 >  
 >  That explains it,

 Not to me.


 > you must have gettext-lib installed under /usr/local.

 It was (and sill is).


 >  >  Just figured out that if I remove /usr/local (e.g. mv /usr/local 
 >  >  /usr/local.tmp), then gtk compiles cleanly under /usr/current.
 >  
 >  Try removing the gettext-lib package (possibly gettext-tools/gettext to)

 Remove from /usr/current? I did it, but I get the same error (after ldconfig and make clean).


 >  and installing the slackware gettext package.

 Still same error. Btw, Slackware's gettext package does not come with libintl.so - this functionality is part of gnu libc.

  Stefan

From: Steven Drake <sbd@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/44016: x11/gtk must be linked against libintl
Date: Thu, 11 Nov 2010 21:34:05 +1300 (NZDT)

 On Wed, 10 Nov 2010, Stefan Schaeckeler wrote:

 >  > From: Steven Drake <sbd@NetBSD.org>
 >  > 
 >  >  On Mon, 8 Nov 2010, Stefan Schaeckeler wrote:
 >  >  
 >  >  >  I have a stable pkgsrc branch installed under /usr/local. Nothing 
 >  >  > special there.
 >  >  
 >  >  That explains it,
 >  
 >  Not to me.
 >
 >  > you must have gettext-lib installed under /usr/local.
 >  
 >  It was (and sill is).

 Your complier (probably gcc) is finding and using the libintl.h header
 from /usr/local/include (part of the gettext-lib package) instead of the
 system header from /usr/include, because gcc looks for headers in
 /usr/local/include before /usr/include.  

 This is the wrong as normally the glibc header should be used.

 >  >  >  Just figured out that if I remove /usr/local (e.g. mv /usr/local 
 >  >  >  /usr/local.tmp), then gtk compiles cleanly under /usr/current.
 >  >  
 >  >  Try removing the gettext-lib package (possibly gettext-tools/gettext to)
 >  
 >  Remove from /usr/current? I did it, but I get the same error 
 >  (after ldconfig and make clean).

 Remove the gettext-lib package from /usr/local

 -- 
 Steven

From: Stefan Schaeckeler <schaecsn@gmx.net>
To: gnats-bugs@NetBSD.org
Cc: linux-pkg-people@netbsd.org,gnats-admin@netbsd.org,pkgsrc-bugs@netbsd.org
Subject: Re: pkg/44016: x11/gtk must be linked against libintl
Date: Thu, 11 Nov 2010 22:10:14 -0800 (PST)

 >  >  >  >  I have a stable pkgsrc branch installed under /usr/local. Nothing 
 >  >  >  > special there.
 >  >  >  
 >  >  >  That explains it,
 >  >  
 >  >  Not to me.
 >  >
 >  >  > you must have gettext-lib installed under /usr/local.
 >  >  
 >  >  It was (and sill is).
 >  
 >  Your complier (probably gcc) is finding and using the libintl.h header
 >  from /usr/local/include (part of the gettext-lib package) instead of the
 >  system header from /usr/include, because gcc looks for headers in
 >  /usr/local/include before /usr/include.  
 >  
 >  This is the wrong as normally the glibc header should be used.

 I see.


 >  >  >  >  Just figured out that if I remove /usr/local (e.g. mv /usr/local 
 >  >  >  >  /usr/local.tmp), then gtk compiles cleanly under /usr/current.
 >  >  >  
 >  >  >  Try removing the gettext-lib package (possibly gettext-tools/gettext to)
 >  >  
 >  >  Remove from /usr/current? I did it, but I get the same error 
 >  >  (after ldconfig and make clean).
 >  
 >  Remove the gettext-lib package from /usr/local

 I did it. Now, gtk compiles cleanly in /usr/current.

 Thanks, Stefan

State-Changed-From-To: open->closed
State-Changed-By: sbd@NetBSD.org
State-Changed-When: Fri, 12 Nov 2010 08:19:03 +0000
State-Changed-Why:
gtk now compiling


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(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.