in reply to Re^3: Help with HTTP::GHTTP
in thread Help with HTTP::GHTTP

I pulled the following code from Makefile.PL:

#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");

Now the make file is generated, and I can run make without issues

# /admin/perl5_64/bin/perl Makefile.PL LIBS='-L/usr/local/lib -lghttp' + INC='-I/usr/local/include' running gnome-config... ok Checking if your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile for HTTP::GHTTP Writing MYMETA.yml and MYMETA.json # make cp GHTTP.pm blib/lib/HTTP/GHTTP.pm "/admin/perl5_64/bin/perl" -e 'use ExtUtils::Mksymlists; Mksy +mlists("NAME" => "HTTP::GHTTP", "DL_FUNCS" => { }, "FUNCLIST" => [], + "DL_VARS" => []);' Running Mkbootstrap for HTTP::GHTTP () chmod 644 "GHTTP.bs" "/admin/perl5_64/bin/perl" "/admin/perl5_64/lib/5.22.0/ExtUtil +s/xsubpp" -typemap "/admin/perl5_64/lib/5.22.0/ExtUtils/typemap" -ty +pemap "typemap" GHTTP.xs > GHTTP.xsc && mv GHTTP.xsc GHTTP.c Please specify prototyping behavior for GHTTP.xs (see perlxs manual) cc_r -q64 -c -I/usr/local/include -D_ALL_SOURCE -D_ANSI_C_SO +URCE -D_POSIX_SOURCE -qmaxmem=-1 -qnoansialias -qlanglvl=extc99 -DUSE +_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q64 -DUSE_64_BIT_ALL -q64 -O - +DVERSION=\"1.07\" -DXS_VERSION=\"1.07\" "-I/admin/perl5_64/lib/5.22 +.0/aix-thread-multi-64all/CORE" GHTTP.c rm -f blib/arch/auto/HTTP/GHTTP/GHTTP.so ld -b64 -bhalt:4 -G -bI:/admin/perl5_64/lib/5.22.0/aix-thread +-multi-64all/CORE/perl.exp -bE:GHTTP.exp -bnoentry -lpthreads -lc -lm + GHTTP.o -o blib/arch/auto/HTTP/GHTTP/GHTTP.so -L/usr/local/l +ib -lghttp chmod 755 blib/arch/auto/HTTP/GHTTP/GHTTP.so "/admin/perl5_64/bin/perl" -MExtUtils::Command::MM -e 'cp_non +empty' -- GHTTP.bs blib/arch/auto/HTTP/GHTTP/GHTTP.bs 644 cp scripts/g-request blib/script/g-request "/admin/perl5_64/bin/perl" -MExtUtils::MY -e 'MY->fixin(shift) +' -- blib/script/g-request Manifying 1 pod document

However 'make test' does not run so well. A memory error is thrown, but that does not seem to be resource related. I have over 1gb available on this test server and my ulimits are unlimited:

# make test Running Mkbootstrap for HTTP::GHTTP () chmod 644 "GHTTP.bs" PERL_DL_NONLAZY=1 "/admin/perl5_64/bin/perl" "-MExtUtils::Comm +and::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test +_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/simple.t .. Can't load '/some/temp/directory/perlmods/HTTP-GHTTP-1.0 +7/blib/arch/auto/HTTP/GHTTP/GHTTP.so' for module HTTP::GHTTP: There i +s not enough memory for the process. rtld: 0712-001 Symbol ghttp_set_chunksize was referenced # ulimit -a time(seconds) unlimited file(blocks) unlimited data(kbytes) unlimited stack(kbytes) unlimited memory(kbytes) unlimited coredump(blocks) unlimited nofiles(descriptors) unlimited threads(per process) unlimited processes(per user) unlimited

Thoughts?

Replies are listed 'Best First'.
Re^5: Help with HTTP::GHTTP
by Anonymous Monk on Aug 11, 2015 at 23:26 UTC

    ...However 'make test' does not run so well. A memory error is thrown, but that does not seem to be resource related. I have over 1gb available on this test server and my ulimits are unlimited:...Thoughts?

    Sure, see the bug queue and the matrix

    You might try doing the Devel::PPPort dance to see if it makes any difference (probably not)

    If you have an app which relies on GHTTP, consider installing an older version of perl and trying to install GHTTP there

    Also consider switching app to use LWP instead of GHTTP. Why?

    Consider that HTTP-GHTTP-1.07 was released 25 Mar 2002 while perl 5.22.0 was released 2015-Jun-01, a 13 years difference. The latest libghttp itself is from 2001-01-23