NetBSD Problem Report #32293

From www@netbsd.org  Tue Dec 13 13:52:45 2005
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
	id BE94E63B888; Tue, 13 Dec 2005 13:52:45 +0000 (UTC)
Message-Id: <20051213135245.BE94E63B888@narn.netbsd.org>
Date: Tue, 13 Dec 2005 13:52:45 +0000 (UTC)
From: jakerosoft@gmail.com
Reply-To: jakerosoft@gmail.com
To: gnats-bugs@netbsd.org
Subject: wm/wmdrawer Build problems on Solaris
X-Send-Pr-Version: www-1.0

>Number:         32293
>Category:       pkg
>Synopsis:       wm/wmdrawer Build problems on Solaris
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Dec 13 13:55:00 +0000 2005
>Closed-Date:    Thu Jun 23 18:56:01 +0000 2016
>Last-Modified:  Thu Jun 23 18:56:01 +0000 2016
>Originator:     Jake Kupersmith
>Release:        pkgsrc
>Organization:
>Environment:
SunOS 5.10 Generic sun4u sparc SUNW,Sun-Blade-100
>Description:
2 Problems installing wm/wmdrawer:

hashes stored in distinfo were incorrect.
wmdrawer was not being linked with Solaris' realtime library correctly.
>How-To-Repeat:
# bmake
...
gcc `gdk-pixbuf-config --libs` -lgdk_pixbuf_xlib -o wmdrawer utils.o config.o graphics.o images.o wmdrawer.o
Undefined                       first referenced
 symbol                             in file
nanosleep                           wmdrawer.o
ld: fatal: Symbol referencing errors. No output written to wmdrawer

>Fix:
--- distinfo    23 Feb 2005 18:43:56 -0000      1.2
+++ distinfo    13 Dec 2005 13:34:42 -0000
@@ -1,5 +1,5 @@
 $NetBSD: distinfo,v 1.2 2005/02/23 18:43:56 wiz Exp $

-SHA1 (wmdrawer-0.10.5.tar.gz) = ee3a7dc01fc30fddce0a4618b061e1e5cc8e4570
-RMD160 (wmdrawer-0.10.5.tar.gz) = 5631a658997bdcb97c0435b1dcf14ca8030f2dc3
-Size (wmdrawer-0.10.5.tar.gz) = 49413 bytes
+SHA1 (wmdrawer-0.10.5.tar.gz) = b89c26d8bc2d4ed71eaf972e6e4099d8ba264f79
+RMD160 (wmdrawer-0.10.5.tar.gz) = afbd0ee3025851cda3db1d25041a5c91ea4795a6
+Size (wmdrawer-0.10.5.tar.gz) = 49479 bytes

--- work/wmdrawer-0.10.5/Makefile.orig  Mon Dec 12 22:31:28 2005
+++ work/wmdrawer-0.10.5/Makefile       Mon Dec 12 22:29:51 2005
@@ -25,7 +25,7 @@
 ifdef USE_GDKPIXBUF
 IMGLIB_DEF = -DUSE_GDKPIXBUF
 CFLAGS = -O3 -Wall `gdk-pixbuf-config --cflags`
-LDFLAGS = `gdk-pixbuf-config --libs` -lgdk_pixbuf_xlib
+LDFLAGS = `gdk-pixbuf-config --libs` -lgdk_pixbuf_xlib -lrt
 endif

 ifdef USE_GDKPIXBUF2

>Release-Note:

>Audit-Trail:
From: Juan RP <juan@xtrarom.org>
To: gnats-bugs@netbsd.org
Cc: jakerosoft@gmail.com
Subject: Re: pkg/32293: wm/wmdrawer Build problems on Solaris
Date: Tue, 13 Dec 2005 14:58:39 +0100

 On Tue, 13 Dec 2005 13:55:00 +0000 (UTC)
 jakerosoft@gmail.com wrote:

 > >Number:         32293
 > >Category:       pkg
 > >Synopsis:       wm/wmdrawer Build problems on Solaris
 > >Confidential:   no
 > >Severity:       non-critical
 > >Priority:       low
 > >Responsible:    pkg-manager
 > >State:          open
 > >Class:          sw-bug
 > >Submitter-Id:   net
 > >Arrival-Date:   Tue Dec 13 13:55:00 +0000 2005
 > >Originator:     Jake Kupersmith
 > >Release:        pkgsrc
 > >Organization:
 > >Environment:
 > SunOS 5.10 Generic sun4u sparc SUNW,Sun-Blade-100
 > >Description:
 > 2 Problems installing wm/wmdrawer:
 > 
 > hashes stored in distinfo were incorrect.
 > wmdrawer was not being linked with Solaris' realtime library
 > correctly.
 > >How-To-Repeat:
 > # bmake
 > ...
 > gcc `gdk-pixbuf-config --libs` -lgdk_pixbuf_xlib -o wmdrawer utils.o
 > config.o graphics.o images.o wmdrawer.o
 > Undefined                       first referenced
 > symbol                             in file
 > nanosleep                           wmdrawer.o ld: fatal: Symbol
 > referencing errors. No output written to wmdrawer

 IMHO It's better to link to librt in the pkgsrc Makefile instead:

 LDFLAGS.SunOS+=	-lrt

 Best regards.

From: "Jeremy C. Reed" <reed@reedmedia.net>
To: gnats-bugs@netbsd.org
Cc: jakerosoft@gmail.com
Subject: Re: pkg/32293: wm/wmdrawer Build problems on Solaris
Date: Tue, 13 Dec 2005 08:44:33 -0800 (PST)

 On Tue, 13 Dec 2005, Juan RP wrote:

 > IMHO It's better to link to librt in the pkgsrc Makefile instead:
 >
 > LDFLAGS.SunOS+=	-lrt

 I was wondering if it should add ${PTHREAD_LIBS} but I don't know if that 
 will add parts not needed.

 (I didn't see the -lrt in the PTHREAD_LDFLAGS.)


   Jeremy C. Reed

   	  	 	 technical support & remote administration
  	  	 	 http://www.pugetsoundtechnology.com/

From: joerg@britannica.bec.de
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/32293: wm/wmdrawer Build problems on Solaris
Date: Tue, 13 Dec 2005 18:08:57 +0100

 On Tue, Dec 13, 2005 at 04:45:02PM +0000, Jeremy C. Reed wrote:
 > The following reply was made to PR pkg/32293; it has been noted by GNATS.
 > 
 > From: "Jeremy C. Reed" <reed@reedmedia.net>
 > To: gnats-bugs@netbsd.org
 > Cc: jakerosoft@gmail.com
 > Subject: Re: pkg/32293: wm/wmdrawer Build problems on Solaris
 > Date: Tue, 13 Dec 2005 08:44:33 -0800 (PST)
 > 
 >  On Tue, 13 Dec 2005, Juan RP wrote:
 >  
 >  > IMHO It's better to link to librt in the pkgsrc Makefile instead:
 >  >
 >  > LDFLAGS.SunOS+=	-lrt
 >  
 >  I was wondering if it should add ${PTHREAD_LIBS} but I don't know if that 
 >  will add parts not needed.
 >  
 >  (I didn't see the -lrt in the PTHREAD_LDFLAGS.)

 Linking normally needs both PTHREAD_LDFLAGS and PTHREAD_LIBS. The former
 is necessary e.g. on DragonFly, the latter is required e.g. for NetBSD.

 Joerg

State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Thu, 23 Jun 2016 18:56:01 +0000
State-Changed-Why:
This package is no longer in pkgsrc, it seems.


>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-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.