Subject: pkg/5429: gtexinfo failure on pmax
To: None <gnats-bugs@gnats.netbsd.org>
From: Chris Jones <cjones@math.montana.edu>
List: netbsd-bugs
Date: 05/09/1998 14:33:59
>Number:         5429
>Category:       pkg
>Synopsis:       gtexinfo fails to compile on pmax due to a -L problem
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat May  9 13:35:00 1998
>Last-Modified:
>Originator:     Chris Jones
>Organization:
	
>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:
gtexinfo fails to compile due to an inability to find libncurses.  My
/etc/mk.conf has "LOCALBASE=/usr/local"

Script started on Sat May  9 13:47:42 1998
# make
>How-To-Repeat:
See above.

>Fix:
A quick fix is to set LD_LIBRARY_PATH appropriately.
>Audit-Trail:
>Unformatted:
>> Checksum OK for texinfo-3.12.tar.gz.
===>  Extracting for gtexinfo-3.12
===>  Patching for gtexinfo-3.12
===>  Applying NetBSD patches for gtexinfo-3.12
===>  Configuring for gtexinfo-3.12
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c -o root -g wheel
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found

...

Making all in info
cc -DPORTSINFODIR=\"/usr/local/info\" -DINFODIR=\"/usr/local/info\" -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../lib -I../intl -I.. -I.  -O -c dir.c
cc -DPORTSINFODIR=\"/usr/local/info\" -DINFODIR=\"/usr/local/info\" -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../lib -I../intl -I.. -I.  -O -c display.c
cc -DPORTSINFODIR=\"/usr/local/info\" -DINFODIR=\"/usr/local/info\" -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../lib -I../intl -I.. -I.  -O -c makedoc.c
cc -O  -o makedoc  makedoc.o ../lib/libtxi.a  -lncurses ../intl/libintl.a -lz
./makedoc ./session.c ./echo-area.c ./infodoc.c  ./m-x.c ./indices.c ./nodemenu.c  ./footnotes.c ./variables.c
./makedoc: can't load library 'libncurses.so'
*** Error code 16

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
# cat /etc/ld.so.conf
/usr/X11R6/lib
/usr/local/lib
# ls -l /usr/local/lib/libncurses*
-rw-r--r--  1 root  wheel   583188 Apr 27 15:57 /usr/local/lib/libncurses.a
lrwxr-xr-x  1 root  wheel       17 Apr 27 16:04 /usr/local/lib/libncurses.so -> libncurses.so.3.4
lrwxr-xr-x  1 root  wheel       17 Apr 27 16:04 /usr/local/lib/libncurses.so.3 -> libncurses.so.3.4
-rwxr-xr-x  1 root  wheel   485596 Apr 27 15:57 /usr/local/lib/libncurses.so.3.4
-rw-r--r--  1 root  wheel  1357028 Apr 27 15:57 /usr/local/lib/libncurses_g.a
# exit

Script done on Sat May  9 14:16:39 1998