Subject: pkg/31495: jed pkg does not link againts libnls on Solaris
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <mikeowens@gmail.com>
List: pkgsrc-bugs
Date: 10/06/2005 16:10:00
>Number:         31495
>Category:       pkg
>Synopsis:       jed pkg does not link againts libnls on Solaris
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 06 16:10:00 +0000 2005
>Originator:     Mike Owens
>Release:        Solaris Nevada
>Organization:
>Environment:
SunOS spanky 5.11 snv_22 i86pc i386 i86pc
>Description:
In pkgsrc 2005Q2, the jed makefile in does not include -lnls for Solaris which causes the build to fail with the following error:

cd /usr/pkgsrc/editors/jed/work/jed-0.99-16/src/objs; gcc buffer.o cmds.o misc.o file.o main.o ins.o sig.o sysdep.o screen.o paste.o ledit.o line.o search.o text.o keymap.o replace.o window.o undo.o vfile.o intrin.o syntax.o abbrev.o indent.o jprocess.o lineattr.o blocal.o mouse.o menu.o userinfo.o lock.o version.o hooks.o colors.o display.o   -o jed -L/usr/pkg/gcc3/lib/gcc-lib/i386-sun-solaris2/3.3.5 -Wl,-R/usr/pkg/gcc3/lib/gcc-lib/i386-sun-solaris2/3.3.5 -L/usr/pkg/gcc3/lib -Wl,-R/usr/pkg/gcc3/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/var/data/pkgsrc/editors/jed/work/slang/src/objs -lslang    -lm
Undefined                       first referenced
 symbol                             in file
gethostbyname                       userinfo.o
h_errno                             userinfo.o
ld: fatal: Symbol referencing errors. No output written to jed
collect2: ld returned 1 exit status
*** Error code 1

>How-To-Repeat:
Build jed with pkgsrc 2005Q2.
>Fix:
A work around is to manually rerun the last (link) step from the command line adding -lnls, followed by a 'bmake install'.