On Thu, Jan 18, 2001 at 05:50:40PM +0000, Matt Sergeant wrote:
> Due to a number of notes about how hard it was to install this beast, I've
> really worked hard this time to get all of the wrinkles out of the
> installer and I think its pretty good now.
>
> This release (actually 1.05, but I didn't announce that here) adds
> get_headers() to get a list of the returned headers from the request in
> the order they came in. I believe some people here asked for that. It only
> works with libghttp 1.08 and higher though (but the installer magically
> checks that, so don't worry, it still works for older libghttp's).
I have Solaris 2.7, gcc 2.95.2.
I've downloaded libghttp-1.0.8, run
./configure --prefix=/export/packages/libghttp-1.0.8
gmake
gmake install
The I run
$ perl Makefile.PL LIBS='-L/export/packages/libghttp-1.0.8/lib -lghttp'
INC='-I/export/packages/libghttp-1.0.8/include'
and got
running gnome-config... ok
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/
Then I went to Makefile.PL and put "return 1;" as the first line of
have_library function. Then I repeated the steps just fine
$ perl Makefile.PL LIBS='-L/export/packages/libghttp-1.0.8/lib -lghttp'
INC='-I/export/packages/libghttp-1.0.8/include'
running gnome-config... ok
Checking if your kit is complete...
Looks good
Writing Makefile for HTTP::GHTTP
$ gmake
mkdir blib
mkdir blib/lib
[...]
/usr/bin/perl -I/export/packages/perl-5.005_03/lib/5.00503/sun4-solaris
-I/export/packages/perl-5.005_03/lib/5.00503
/export/packages/perl-5.005_03/lib/5.00503/ExtUtils/xsubpp -typemap
/export/packages/perl-5.005_03/lib/5.00503/ExtUtils/typemap -typemap typemap GHTTP.xs
>xstmp.c && mv xstmp.c GHTTP.c
Please specify prototyping behavior for GHTTP.xs (see perlxs manual)
gcc -c -I/export/packages/libghttp-1.0.8/include -O -DVERSION=\"1.06\"
-DXS_VERSION=\"1.06\" -fPIC
-I/export/packages/perl-5.005_03/lib/5.00503/sun4-solaris/CORE GHTTP.c
Running Mkbootstrap for HTTP::GHTTP ()
chmod 644 GHTTP.bs
LD_RUN_PATH="/export/packages/libghttp-1.0.8/lib" gcc -o
blib/arch/auto/HTTP/GHTTP/GHTTP.so -R/export/packages/libghttp-1.0.8/lib -G GHTTP.o
-L/export/packages/libghttp-1.0.8/lib -lghttp
chmod 755 blib/arch/auto/HTTP/GHTTP/GHTTP.so
cp GHTTP.bs blib/arch/auto/HTTP/GHTTP/GHTTP.bs
chmod 644 blib/arch/auto/HTTP/GHTTP/GHTTP.bs
mkdir blib/script
cp scripts/g-request blib/script/g-request
/usr/bin/perl -I/export/packages/perl-5.005_03/lib/5.00503/sun4-solaris
-I/export/packages/perl-5.005_03/lib/5.00503 -MExtUtils::MakeMaker -e
"MY->fixin(shift)" blib/script/g-request
Manifying blib/man3/HTTP::GHTTP.3
$ gmake test
PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib
-I/export/packages/perl-5.005_03/lib/5.00503/sun4-solaris
-I/export/packages/perl-5.005_03/lib/5.00503 -e 'use Test::Harness qw(&runtests
$verbose); $verbose=0; runtests @ARGV;' t/*.t
t/simple............ok
All tests successful.
Files=1, Tests=3, 0 wallclock secs ( 0.16 cusr + 0.04 csys = 0.20 CPU)
So it looks like the have_library still isn't happy about something.
In the /export/packages/libghttp-1.0.8/lib I have
-rw-r--r-- 1 adelton student 294 Jan 21 17:25 ghttpConf.sh
-rw-r--r-- 1 adelton student 188336 Jan 21 17:25 libghttp.a
-rwxr-xr-x 1 adelton student 669 Jan 21 17:25 libghttp.la
lrwxrwxrwx 1 adelton student 17 Jan 21 17:25 libghttp.so -> libghttp.so.1.0.0
lrwxrwxrwx 1 adelton student 17 Jan 21 17:25 libghttp.so.1 ->
libghttp.so.1.0.0
-rwxr-xr-x 1 adelton student 185504 Jan 21 17:25 libghttp.so.1.0.0
Yours,
--
------------------------------------------------------------------------
Honza Pazdziora | [EMAIL PROTECTED] | http://www.fi.muni.cz/~adelton/
.project: Perl, mod_perl, DBI, Oracle, auth. WWW servers, XML/XSL, ...
Petition for a Software Patent Free Europe http://petition.eurolinux.org
------------------------------------------------------------------------