Subject: pkg/5812: tk80: wish doesn't link
To: None <gnats-bugs@gnats.netbsd.org>
From: Chris Jones <cjones@math.montana.edu>
List: netbsd-bugs
Date: 07/21/1998 15:32:42
>Number:         5812
>Category:       pkg
>Synopsis:       tk80: wish doesn't link
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 21 14:35:00 1998
>Last-Modified:
>Originator:     Chris Jones
>Organization:
Department of Mathematical Sciences, Montana State University
>Release:        <NetBSD-current source date>pkgsrc supped yesterday
>Environment:
	
System: NetBSD mathfs.math.montana.edu 1.3.1 NetBSD 1.3.1 (MATHFS) #1: Thu Apr 23 14:57:13 MDT 1998 cjones@mathfs.math.montana.edu:/usr/local/src/sys/arch/pmax/compile/MATHFS pmax


>Description:
In the x11/tk80 package, wish doesn't link because cc can't find
libtk80.so.1.0.  This is because no soft link is created from
libtk80.so.1 or libtk80.so.  (wish is trying to link against libtk in
the current directory, before the library is installed globally.)

>How-To-Repeat:
This is probably only a problem on ELF machines.

cd /usr/pkgsrc/x11/tk80 && make

>Fix:

The quick fix is to make the soft link after make bombs out.

A slightly better fix would be to add a post-extract script which
would make the link.

The correct fix (IMO) would be to modify the Makefile in the unix
directory, where wish and libtk are built, to make the soft link.
>Audit-Trail:
>Unformatted: