NetBSD Problem Report #44783

From www@NetBSD.org  Mon Mar 28 20:47:41 2011
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 5140163BC80
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 28 Mar 2011 20:47:41 +0000 (UTC)
Message-Id: <20110328204740.747A663BB73@www.NetBSD.org>
Date: Mon, 28 Mar 2011 20:47:40 +0000 (UTC)
From: topiarz@post.cz
Reply-To: topiarz@post.cz
To: gnats-bugs@NetBSD.org
Subject: gnustep-back contains a mistake that prevents all GNUStep apps from running
X-Send-Pr-Version: www-1.0

>Number:         44783
>Category:       pkg
>Synopsis:       gnustep-back contains a mistake that prevents all GNUStep apps from running
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Mar 28 20:50:00 +0000 2011
>Closed-Date:    
>Last-Modified:  Mon Dec 23 11:39:16 +0000 2013
>Originator:     Petr Topiarz
>Release:        5.1 with PKGSRC-2010Q4
>Organization:
>Environment:
NetBSD  5.1 NetBSD 5.1 (GENERIC) #0: Sun Nov  7 14:39:56 UTC 2010  builds@b6.netbsd.org:/home/builds/ab/netbsd-5-1-RELEASE/i386/201011061943Z-obj/home/builds/ab/netbsd-5-1-RELEASE/src/sys/arch/i386/compile/GENERIC i386
>Description:
All GNUStep applications like for example GNUMail or Project Center crash complaining about the gnustep-back bundle:


The problem seems to be that the gnustep-back bundle is linked against the wrong libraries (as I found out on osdir.com)
"The problem is the -R/usr/X11R7/lib flag on the command line. This option is understood by NetBSD's gcc and it ends up as an *initial* -R flag to the linker, whereas the -Wl,-R<dir> options stay in their place. That means that the broken libpixman will be found before the right one in /usr/pkg/lib. Unfortunately, the -R flag is added automatically by autoconf when testing for the X libraries, so we cannot get rid of it."
>How-To-Repeat:
pkg_add -v GNUMail
>Fix:
After a long search I found that someone was able to fix it:
compile gnustep-back with  ./configure LDFLAGS=-R/usr/pkg/lib

Here is the thread where they describe it:
http://osdir.com/ml/discuss-gnustep-gnu/2010-11/msg00147.html

however I wasn't able to change the Makefiles or patches to bring the success. Adding simply LDFLAGS=-R/usr/pkg/lib under the CONFIGURE+= into the pkgsrc Makefile didn't help. 

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->rh
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Tue, 29 Mar 2011 08:28:12 +0000
Responsible-Changed-Why:
Over to maintainer.


State-Changed-From-To: open->feedback
State-Changed-By: rh@NetBSD.org
State-Changed-When: Thu, 07 Apr 2011 02:15:07 +0000
State-Changed-Why:
Could you try compiling this with gnustep-make 2.4.0 and gnustep-back-0.18.0
from pkgsrc/current, please, and let me know if this fixes your problem?


From: "Rene Hexel" <rh@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/44783 CVS commit: pkgsrc/x11/gnustep-back
Date: Thu, 7 Apr 2011 02:12:49 +0000

 Module Name:	pkgsrc
 Committed By:	rh
 Date:		Thu Apr  7 02:12:49 UTC 2011

 Modified Files:
 	pkgsrc/x11/gnustep-back: Makefile PLIST distinfo

 Log Message:
 Update gnustep-back to 0.18.0.  This should close PR pkg/44783.

 Other notable changes include:
  * implement pattern colours for all backends
  * use DejaVu as another fallback font
  * OpenGL fixes and improvements
  * Key repeat support implemented in X11


 To generate a diff of this commit:
 cvs rdiff -u -r1.47 -r1.48 pkgsrc/x11/gnustep-back/Makefile
 cvs rdiff -u -r1.15 -r1.16 pkgsrc/x11/gnustep-back/PLIST
 cvs rdiff -u -r1.20 -r1.21 pkgsrc/x11/gnustep-back/distinfo

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Petr Topiarz <topiarz@post.cz>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/44783 (gnustep-back contains a mistake that prevents all
 GNUStep apps from running)
Date: Thu, 07 Apr 2011 07:34:02 +0200

 Hi Rene,
 I will definitely try it, at the latest at the weekend and I confirm the 
 fix.
 Peter

 rh@NetBSD.org napsal(a):
 > Synopsis: gnustep-back contains a mistake that prevents all GNUStep apps from running
 >
 > State-Changed-From-To: open->feedback
 > State-Changed-By: rh@NetBSD.org
 > State-Changed-When: Thu, 07 Apr 2011 02:15:07 +0000
 > State-Changed-Why:
 > Could you try compiling this with gnustep-make 2.4.0 and gnustep-back-0.18.0
 > from pkgsrc/current, please, and let me know if this fixes your problem?
 >
 >
 >
 >
 >   

From: Petr Topiarz <topiarz@post.cz>
To: gnats-bugs@NetBSD.org
Cc: rh@NetBSD.org, pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org
Subject: Re: pkg/44783 (gnustep-back contains a mistake that prevents all GNUStep apps from running)
Date: Mon, 11 Apr 2011 10:14:18 +0200

 I tested the fix you suggested, but with bad result. I did a fresh 
 install of 5.1 with current pkgsrc, which I got with cvs on Friday 8th 
 April. GNUMail started this time, that was a difference, however when I 
 started to set up my mail account the app went down and would not start 
 again, here is the outcome from the terminal:

 $ 
 GNUMail                                                                      

 2011-04-11 09:59:12.806 GNUMail[11830] Unable to get name of current 
 host - using 'localhost'
 2011-04-11 09:59:13.788 GNUMail[11830] Ignore left offset change from 0 to 2
 2011-04-11 09:59:13.788 GNUMail[11830] Ignore right offset change from 0 
 to 2
 2011-04-11 09:59:13.788 GNUMail[11830] Ignore top offset change from 0 to 23
 2011-04-11 09:59:13.788 GNUMail[11830] Ignore bottom offset change from 
 0 to 2
 2011-04-11 09:59:13.788 GNUMail[11830] Reparent was with offset 0 21
 2011-04-11 09:59:13.788 GNUMail[11830] Parent border,width,height 2,64,85
 2011-04-11 09:59:13.859 GNUMail[11830] File NSData.m: 1363. In -[NSData 
 writeToFile:options:error:] mkstemp 
 (/home/beowulf/GNUstep/Library/GNUMail) failed - No such file or directory
 2011-04-11 09:59:13.939 GNUMail[11830] Created standard directory 
 /home/beowulf/GNUstep/Library/Colors
 2011-04-11 09:59:14.254 GNUMail[11830] Ignore left offset change from 0 to 2
 2011-04-11 09:59:14.254 GNUMail[11830] Ignore right offset change from 0 
 to 2
 2011-04-11 09:59:14.254 GNUMail[11830] Ignore top offset change from 0 to 23
 2011-04-11 09:59:14.254 GNUMail[11830] Ignore bottom offset change from 
 0 to 2
 2011-04-11 09:59:14.254 GNUMail[11830] Reparent was with offset 0 21
 2011-04-11 09:59:14.254 GNUMail[11830] Parent border,width,height 2,84,243
 2011-04-11 09:59:16.687 GNUMail[11830] Ignore left offset change from 0 to 2
 2011-04-11 09:59:16.687 GNUMail[11830] Ignore right offset change from 0 
 to 2
 2011-04-11 09:59:16.687 GNUMail[11830] Ignore top offset change from 0 to 23
 2011-04-11 09:59:16.687 GNUMail[11830] Ignore bottom offset change from 
 0 to 2
 2011-04-11 09:59:16.687 GNUMail[11830] Reparent was with offset 0 21
 2011-04-11 09:59:16.687 GNUMail[11830] Parent border,width,height 2,84,243
 2011-04-11 09:59:20.280 GNUMail[11830] Defaults path 
 '/home/beowulf/GNUstep/Defaults' did not exist - created it
 2011-04-11 09:59:20.296 GNUMail[11830] Creating empty user defaults database
 2011-04-11 09:59:20.438 GNUMail[11830] Method 
 setIndicatorImage:inTableColumn: is not implemented for class NSTableView
 2011-04-11 09:59:20.438 GNUMail[11830] Method 
 setIndicatorImage:inTableColumn: is not implemented for class NSTableView
 2011-04-11 09:59:20.438 GNUMail[11830] Method 
 setIndicatorImage:inTableColumn: is not implemented for class NSTableView
 2011-04-11 09:59:20.438 GNUMail[11830] Method 
 setIndicatorImage:inTableColumn: is not implemented for class NSTableView
 2011-04-11 09:59:20.438 GNUMail[11830] Method 
 setIndicatorImage:inTableColumn: is not implemented for class NSTableView
 2011-04-11 09:59:20.439 GNUMail[11830] Method 
 setIndicatorImage:inTableColumn: is not implemented for class NSTableView
 2011-04-11 09:59:20.439 GNUMail[11830] Method 
 setIndicatorImage:inTableColumn: is not implemented for class NSTableView
 2011-04-11 09:59:20.439 GNUMail[11830] Method 
 setIndicatorImage:inTableColumn: is not implemented for class NSTableView
 2011-04-11 09:59:20.440 GNUMail[11830] No iconv for encoding 
 NSASCIIStringEncoding tried to use ASCII//TRANSLIT
 Virtual memory exhausted
 Abort (core dumped)

 Do I have anything wrong?
 Peter


 rh@NetBSD.org napsal(a):
 > Synopsis: gnustep-back contains a mistake that prevents all GNUStep apps from running
 >
 > State-Changed-From-To: open->feedback
 > State-Changed-By: rh@NetBSD.org
 > State-Changed-When: Thu, 07 Apr 2011 02:15:07 +0000
 > State-Changed-Why:
 > Could you try compiling this with gnustep-make 2.4.0 and gnustep-back-0.18.0
 > from pkgsrc/current, please, and let me know if this fixes your problem?
 >
 >
 >
 >
 >   

From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/44783 (gnustep-back contains a mistake that prevents all
 GNUStep apps from running)
Date: Sat, 30 Apr 2011 22:18:36 +0000

 (not sent to gnats)

    ------

 From: rjs@fdy2.demon.co.uk
 To: pkgsrc-bugs@netbsd.org
 Subject: Re: pkg/44783 (gnustep-back contains a mistake that prevents all
 	GNUStep apps from running)
 Date: Sat,  9 Apr 2011 15:26:46 +0100 (BST)


 This seems to be still broken:

 % Ink
 /usr/pkg/lib/GNUstep/Bundles/libgnustep-back-018.bundle/./libgnustep-back-018: Undefined PLT symbol "FTC_Manager_New" (symnum = 376)

 The same error happens if gnustep-back is built to use native freetype2 and
 fontconfig instead of the pkgsrc ones.

 Robert Swindells

State-Changed-From-To: feedback->open
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Mon, 30 Apr 2012 23:33:40 +0000
State-Changed-Why:
Feedback was received, a year ago.

Some wrapper-level fixes for dealing with rpath trouble like this
have been committed since though, so please check again if possible.


State-Changed-From-To: open->feedback
State-Changed-By: shattered@NetBSD.org
State-Changed-When: Fri, 31 Aug 2012 19:24:06 +0000
State-Changed-Why:
rpath trouble is gone (-current pkgsrc), but GNUMail still crashes like described.



State-Changed-From-To: feedback->open
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 02 Sep 2012 02:41:15 +0000
State-Changed-Why:
if it crashes, it's still broken, no need for the PR to be in feedback...


From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/44783 (gnustep-back contains a mistake that prevents all
 GNUStep apps from running)
Date: Sun, 2 Sep 2012 20:28:28 +0000

 not sent to gnats (send all bug traffic to gnats-bugs@; it then
 remails to the list and such)

    ------

 From: Robert Swindells <rjs@fdy2.co.uk>
 To: pkgsrc-bugs@netbsd.org
 Subject: Re: pkg/44783 (gnustep-back contains a mistake that prevents all
 	GNUStep apps from running)
 Date: Sun,  2 Sep 2012 16:40:17 +0100 (BST)


 For reference, current pkgsrc gnustep apps are working fine for me on
 NetBSD-current.

 There is a fix to src/external/mit/xorg/lib/freetype/Makefile that
 might need to be pulled up to NetBSD-5 (r1.8).

 I'm also using the following patch with native x11, maybe somebody
 could confirm that it is correct. Without the patch pkgsrc versions of
 freetype2 and fontconfig were getting built even when they were
 already in the base system.

 Robert Swindells

 Index: Makefile
 ===================================================================
 RCS file: /cvsroot/pkgsrc/x11/gnustep-back/Makefile,v
 retrieving revision 1.49
 diff -u -r1.49 Makefile
 --- Makefile    1 Nov 2011 06:02:51 -0000       1.49
 +++ Makefile    2 Sep 2012 15:15:37 -0000
 @@ -27,8 +27,6 @@
  PREFER_PKGSRC+=        freetype2

  .include "../../graphics/MesaLib/buildlink3.mk"
 -.include "../../graphics/freetype2/buildlink3.mk"
 -.include "../../fonts/fontconfig/buildlink3.mk"
  .include "../../graphics/libart/buildlink3.mk"
  .include "../../x11/gnustep-gui/buildlink3.mk"
  .include "../../x11/libXext/buildlink3.mk"

From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/44783 (gnustep-back contains a mistake that prevents all
 GNUStep apps from running)
Date: Sun, 2 Sep 2012 20:48:17 +0000

 On Sun, Sep 02, 2012 at 08:30:04PM +0000, Robert Swindells wrote:
  >  I'm also using the following patch with native x11, maybe somebody
  >  could confirm that it is correct. Without the patch pkgsrc versions of
  >  freetype2 and fontconfig were getting built even when they were
  >  already in the base system.

 With native X it should be ok (if the package builds with the
 freetype2/fontconfig in native X) -- the problem is that the minimum
 accepted version of a package in native X is incorrectly tied to the
 minimum accepted version in pkgsrc, which can and does get bumped for
 reasons that don't affect native X. Unfortunately, this isn't easy to
 fix.

 With pkgsrc X, the patch will break the build...

 -- 
 David A. Holland
 dholland@netbsd.org

Responsible-Changed-From-To: rh->pkg-manager
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Mon, 23 Dec 2013 11:39:16 +0000
Responsible-Changed-Why:
resigned, back to role account


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.