Subject: pkg/12681: abiword pkg build fails
To: None <gnats-bugs@gnats.netbsd.org>
From: Bob Bernstein <poobah@ruptured-duck.com>
List: netbsd-bugs
Date: 04/16/2001 22:24:09
>Number:         12681
>Category:       pkg
>Synopsis:       pkgsrc build of abiword fails with link error
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 16 19:25:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Bob Bernstein
>Release:        1.5U
>Organization:
very little
>Environment:
i386 NetBSD current
	
System: NetBSD  1.5U NetBSD 1.5U (BOB) #0: Wed Apr 11 20:10:09 EDT 2001 /usr/src/sys/arch/i386/compile/BOB i386
Architecture: i386
Machine: i386
>Description:
Abiword (pkgsrc/editors/abiword) build dies with
multiple link errors, the last of which looks like this:

/usr/pkgsrc/editors/abiword/work.i386/abi-0.7.10/src/NetBSD_1.5U_i386_OBJ/obj/li
bAbi_libwv.a(text.o): In function wvOutputFromUnicode':
text.o(.text+0x478): undefined reference to libiconv_open'
text.o(.text+0x4e7): undefined reference to libiconv'
text.o(.text+0x4f0): undefined reference to libiconv_close'
collect2: ld returned 1 exit status
gmake[4]: ***
[/usr/pkgsrc/editors/abiword/work.i386/abi-0.7.10/src/NetBSD_1.5U_
i386_OBJ/bin/AbiWord_d] Error 1

>How-To-Repeat:
cd /usr/pkgsrc/editors/abiword && make

>Fix:
My workaround was to simply add '-liconv' to LDFLAGS in Makefile:

LDFLAGS+=  -Wl,-R${LOCALBASE}/lib -L${LOCALBASE}/lib -liconv   # -lpng



>Release-Note:
>Audit-Trail:
>Unformatted: