Subject: pkg/19324: textproc/namazu2 fails to compile
To: None <gnats-bugs@gnats.netbsd.org>
From: Ryo HAYASAKA <ryoh@jaist.ac.jp>
List: netbsd-bugs
Date: 12/08/2002 18:13:09
>Number:         19324
>Category:       pkg
>Synopsis:       textproc/namazu2 fails to compile
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 08 01:14:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Ryo HAYASAKA
>Release:        NetBSD 1.6K
>Organization:
Japan Advanced Institute of Science and Technology (JAIST)
>Environment:
System: NetBSD bonnie.jaist.ac.jp 1.6K NetBSD 1.6K (BONNIE) #348: Fri Dec 6 22:31:30 JST 2002 ryoh@bonnie.jaist.ac.jp:/home/ryoh/util/compile/BONNIE i386
Architecture: i386
Machine: i386
>Description:
The Makefile needs to include libiconv/buildlink2.mk.

$ make
...
cc -O2 -pipe -march=pentiumpro -I/usr/pkg/include -Wall -pedantic -Wl,-R/usr/pkg/lib -o .libs/namazu form.o namazu.o output.o rcfile.o result.o usage.o namazu-cmd.o  -L/usr/pkg/lib ../nmz/.libs/libnmz.so ../lib/libnmzut.a -lm /usr/pkg/lib/libintl.so /usr/pkg/lib/libiconv.so -lc -Wl,--rpath -Wl,/usr/pkg/lib
ld: cannot find -liconv
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/textproc/namazu2/work.i386/namazu-2.0.12/src
	
>How-To-Repeat:
cd .../textproc/namazu2; make
	
>Fix:
Index: Makefile
===================================================================
RCS file: /usr/cvsup/pkgsrc/textproc/namazu2/Makefile,v
retrieving revision 1.4
diff -d -p -u -r1.4 Makefile
--- Makefile    1 Dec 2002 14:23:06 -0000       1.4
+++ Makefile    8 Dec 2002 09:10:57 -0000
@@ -59,5 +59,6 @@ post-install:
 test:
        @cd ${WRKSRC}; make check
 
+.include "../../converters/libiconv/buildlink2.mk"
 .include "../../devel/gettext-lib/buildlink2.mk"
 .include "../../mk/bsd.pkg.mk"
	
>Release-Note:
>Audit-Trail:
>Unformatted: