Subject: bash2 and libintl check problem
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 11/01/2002 13:58:17
pkgsrc/shells/bash2 won't build under Debian Linux.
configure:1325: gcc -o conftest
-I/home/jeremy/netbsd/usr/pkgsrc/shells/bash2/work/.gettext/include -O2
-I/home/jeremy/netbsd/usr/pkgsrc/shells/bash2/work/.gettext/include
-L/home/jeremy/netbsd/usr/pkgsrc/shells/bash2/work/.gettext/lib
-Wl,-R/usr/lib conftest.c
-L/home/jeremy/netbsd/usr/pkgsrc/shells/bash2/work/.gettext/lib
-Wl,-R/usr/lib -lintl 1>&5
/usr/bin/ld: cannot find -lintl
# ls -l /home/jeremy/netbsd/usr/pkgsrc/shells/bash2/work/.gettext/lib
total 0
lrwxrwxrwx 1 root jeremy 18 Nov 1 13:15 libintl.* ->
/usr/lib/libintl.*
# ls -l /usr/lib/libintl.*
ls: /usr/lib/libintl.*: No such file or directory
But I also have:
/usr/include/libintl.h
The bash Makefile does:
.if exists(/usr/include/libintl.h)
GETTEXT_PREFIX= /usr
Maybe that should check for libraries also.
I worked-around this by doing:
.if exists(/usr/include/libintl.h) && (exists(/usr/lib/libintl.so) || exists(/usr/lib/libintl.a))
GETTEXT_PREFIX= /usr
Should I send-pr that? Any comments?
Jeremy C. Reed
http://bsd.reedmedia.net/