NetBSD Problem Report #10453

Received: (qmail 12613 invoked from network); 26 Jun 2000 18:01:05 -0000
Message-Id: <200006261801.OAA00706@hees.mcmahill.net>
Date: Mon, 26 Jun 2000 14:01:03 -0400 (EDT)
From: dmcmahill@netbsd.org
Reply-To: dmcmahill@netbsd.org
To: gnats-bugs@gnats.netbsd.org
Subject: gtop doesn't link on ELF
X-Send-Pr-Version: 3.95

>Number:         10453
>Category:       pkg
>Synopsis:       gtop doesn't link on ELF
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    wiz
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 26 18:02:00 +0000 2000
>Closed-Date:    Wed Jul 05 13:21:29 +0000 2000
>Last-Modified:  Wed Jul 05 13:21:29 +0000 2000
>Originator:     Dan McMahill
>Release:        1.4.2-pmax<NetBSD-current source date>
>Organization:
NetBSD
>Environment:

System: NetBSD HEESENG1 1.4.2 NetBSD 1.4.2 (HEES) #1: Wed Jun 21 14:23:25 EDT 2000 eng@HEESENG1:/usr/src/sys/arch/i386/compile/HEES i386


>Description:

the recent change of graphics/imlib to use libtool instead of pkglibtool changes the libraries
generated on ELF.  Now linking gtop gives:

[snip]
/usr/X11R6/lib/libgdk_imlib.so: undefined reference to `png_set_sBIT'
/usr/X11R6/lib/libgdk_imlib.so: undefined reference to `DGifGetExtensionNext'
/usr/X11R6/lib/libgdk_imlib.so: undefined reference to `jpeg_read_scanlines'
/usr/X11R6/lib/libgdk_imlib.so: undefined reference to `DGifGetRecordType'
/usr/X11R6/lib/libgdk_imlib.so: undefined reference to `DGifGetImageDesc'
/usr/X11R6/lib/libgdk_imlib.so: undefined reference to `TIFFDefaultStripSize'
/usr/X11R6/lib/libgdk_imlib.so: undefined reference to `png_set_strip_16'
/usr/X11R6/lib/libgdk_imlib.so: undefined reference to `png_set_filler'
/usr/X11R6/lib/libgdk_imlib.so: undefined reference to `png_create_read_struct'
/usr/X11R6/lib/libgdk_imlib.so: undefined reference to `jpeg_set_defaults'
/usr/X11R6/lib/libgdk_imlib.so: undefined reference to `DGifOpenFileHandle'
[snip]



>How-To-Repeat:
cd /usr/pkgsrc/sysutils/gtop
make

note, you need a recently installed graphics/imlib and an ELF platform


>Fix:

adding:
-lpng -ljpeg -ltiff -lungif -lz
to the link line will fix it, but this doesn't seem right because we'll have to do it for
every pkg which uses libgdk_imlib from graphics/imlib


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: wiz 
State-Changed-When: Mon Jun 26 18:15:00 PDT 2000 
State-Changed-Why:  
Just committed the fix I sent you, which makes gtop compile on i386/current, 
which is also ELF. It doesn't work, though: 
LibGTop-Server: kvm_read (cp_time): Bad address 
Broken pipe 
If linking works for you, too, please close the PR, and then submit a new 
one for the new error ;-) 

Thomas 


Responsible-Changed-From-To: pkg-manager->wiz 
Responsible-Changed-By: wiz 
Responsible-Changed-When: Mon Jun 26 18:15:00 PDT 2000 
Responsible-Changed-Why:  
I changed imlib, which made gtop fail. 
State-Changed-From-To: feedback->closed 
State-Changed-By: dmcmahill 
State-Changed-When: Wed Jul 5 06:20:41 PDT 2000 
State-Changed-Why:  
Thomas Klausner <wiz@netbsd.org> fixed imlib which makes this problem go away. 
Thanks! 
>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.