Subject: | Makefile.PL have_library tests gives a fanse negative |
The Makefile.PL file that comes with the distribution makes two calls to have_library() that fail. It tells me that it cannot find libghttp, even though I have it installed on my system, in the search path, and of the correct version (running on Mandrake 9.1 and 9.2). If I simply remove the two tests, the distribution compiles and all it's tests succeed. I don't know what to do to resolve this, so I haven't supplied a patch with this bug report. Sorry if this is short on details.
[nachbaur@silicon HTTP-GHTTP-1.07]$ sudo perl Makefile.PL
running gnome-config... failed
using fallback values for LIBS and INC
options:
LIBS='-L/usr/local/lib -L/usr/lib -lghttp'
INC='-I/usr/local/include -I/usr/include'
If this is wrong, Re-run as:
$ /usr/bin/perl5.8.0 Makefile.PL LIBS='-L/path/to/lib' INC='-I/path/to/include'
checking for main() in -lghttp... no
libghttp not found
Try setting LIBS and INC values on the command line
Or get libghttp from
ftp://ftp.gnome.org/pub/GNOME/stable/sources/libghttp/
[nachbaur@silicon HTTP-GHTTP-1.07]$ !rp
rpm -ql libghttp1-devel
/usr/include/ghttp.h
/usr/include/ghttp_constants.h
/usr/lib/ghttpConf.sh
/usr/lib/libghttp.a
/usr/lib/libghttp.la
/usr/lib/libghttp.so
/usr/share/doc/libghttp1-devel-1.0.9
/usr/share/doc/libghttp1-devel-1.0.9/AUTHORS
/usr/share/doc/libghttp1-devel-1.0.9/COPYING
/usr/share/doc/libghttp1-devel-1.0.9/ChangeLog
/usr/share/doc/libghttp1-devel-1.0.9/NEWS
/usr/share/doc/libghttp1-devel-1.0.9/README
/usr/share/doc/libghttp1-devel-1.0.9/ghttp.html
The offending lines are as follows:
if (!have_library("ghttp")) {
die <<DEATH;
libghttp not found
Try setting LIBS and INC values on the command line
Or get libghttp from
ftp://ftp.gnome.org/pub/GNOME/stable/sources/libghttp/
DEATH
}
have_library("ghttp", "ghttp_get_header_names");