Subject: pkg/10453: gtop doesn't link on ELF
To: None <gnats-bugs@gnats.netbsd.org>
From: None <dmcmahill@netbsd.org>
List: netbsd-bugs
Date: 06/26/2000 11:01:16
>Number:         10453
>Category:       pkg
>Synopsis:       gtop doesn't link on ELF
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 26 11:02:00 PDT 2000
>Closed-Date:
>Last-Modified:
>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:
>Unformatted: