Operating System - HP-UX
1844530 Members
3630 Online
110233 Solutions
New Discussion

Perl make fails in function "Perl_amagic_call" from gv.c hpux 11.

 
SOLVED
Go to solution
Kevin Hansen
Advisor

Perl make fails in function "Perl_amagic_call" from gv.c hpux 11.

 
11 REPLIES 11
Caesar_3
Esteemed Contributor

Re: Perl make fails in function "Perl_amagic_call" from gv.c hpux 11.

Hello!

You know you can download the compiled version from software.hp.com

Caesar
Paddy_1
Valued Contributor

Re: Perl make fails in function "Perl_amagic_call" from gv.c hpux 11.

If you have ANSI-C compiler like gcc installed on your system, be sure it is found in your path *before* that wrong one(HP's cc which is NON_ANSI).
I'm suspecting however that you are using gcc64, which you should specify explicitely.

Try this :
Make sure gcc's path comes before /usr/ccs/bin in your PATH variable.


The sufficiency of my merit is to know that my merit is NOT sufficient
H.Merijn Brand (procura
Honored Contributor

Re: Perl make fails in function "Perl_amagic_call" from gv.c hpux 11.

Why not just get my precompiled perl-5.8.0 bundle from http://www.cmve.net/~merijn or https://www.beepz.com/personal/merijn ?

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Kevin Hansen
Advisor

Re: Perl make fails in function "Perl_amagic_call" from gv.c hpux 11.

sadist i suppose, If I admit defeat I'll try yours procura, i got this to work yesterday after some fussing and can't remember how I got past it. Im using gcc installed in /usr/local/bin and it is prepended in my path.
H.Merijn Brand (procura
Honored Contributor
Solution

Re: Perl make fails in function "Perl_amagic_call" from gv.c hpux 11.

Masochist I presume :)

Try using the perl sources from http://www.iki.fi/jhi/perl@19733.tgz which is the latest 5.8.x snapshot. It *should* build out of the box using gcc. All README's are probably pretty up to date.

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Kevin Hansen
Advisor

Re: Perl make fails in function "Perl_amagic_call" from gv.c hpux 11.

does that link still work for you? I've been on vacation and just tried it with no luck.
H.Merijn Brand (procura
Honored Contributor

Re: Perl make fails in function "Perl_amagic_call" from gv.c hpux 11.

Probably not. Jarkko is pretty active lately :)))

Latest 5.8.1 snap now available as

http://www.iki.fi/jhi/perl@19829.tgz
http://www.iki.fi/jhi/perl@19829.tbz

I have *no* idea how long links are valid

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Richard Hor?ák
New Member

Re: Perl make fails in function "Perl_amagic_call" from gv.c hpux 11.

I have the same problem. If I use precompiled Perl from Procura 5.8.3 with DBI (https://www.beepz.com/personal/merijn/) and try to compile mod_perl, make ands with this error:
# perl Makefile.PL MP_APXS=/opt/hpws/apache/bin/apxs

!!! Failed requirements:
!!! - Perl built with ithreads (build perl with -Dusethreads)

hence I cannot use Procuras precompiled Perl and must build own with "-Dusethreads" parametr.

But when I run Perl`s make the error occurs:

make
`sh cflags "optimize=''" miniperlmain.o` -fpic miniperlmain.c
CCCMD = gcc -DPERL_CORE -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall
`sh cflags "optimize=''" perl.o` -fpic perl.c
CCCMD = gcc -DPERL_CORE -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall
`sh cflags "optimize=''" gv.o` -fpic gv.c
CCCMD = gcc -DPERL_CORE -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall
gv.c: In function `Perl_amagic_call':
gv.c:1712: error: `copy' undeclared (first use in this function)
gv.c:1712: error: (Each undeclared identifier is reported only once
gv.c:1712: error: for each function it appears in.)
gv.c:1712: error: parse error before "_amg"
*** Error exit code 1

My system is HP11.11, gcc 3.3.2

Can someone help me? Thanks.

Richard H.
H.Merijn Brand (procura
Honored Contributor

Re: Perl make fails in function "Perl_amagic_call" from gv.c hpux 11.

My source of info tells me


"ithreads are only necessary for mp2 with threaded mpm
and threaded mpm are only useful on windows (mostly)
he's using an apache 2 with threaded MPMs instead of prefork MPMs, the default on UNix.(probably)
(I don't use mp2 myself)
give more info about how he configures his apache and why he configures it that way
"

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
H.Merijn Brand (procura
Honored Contributor

Re: Perl make fails in function "Perl_amagic_call" from gv.c hpux 11.

My source also points me/you to http://perl.apache.org/
I trust my source as he trusts me :)

I've never used either mod_perl, nor did I use threaded perl for anything but testing if it compiles and runs the test suite, which it does over here

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Richard Hor?ák
New Member

Re: Perl make fails in function "Perl_amagic_call" from gv.c hpux 11.

I used mod perl from this link:
http://perl.apache.org/dist/mod_perl-2.0-current.tar.gz

and when I tried to compile them, the output was:

# perl Makefile.PL MP_APXS=/opt/hpws/apache/bin/apxs
Reading Makefile.PL args from @ARGV
MP_APXS = /opt/hpws/apache/bin/apxs
************* WARNING *************

Your Perl is configured to link against libgdbm,
but libgdbm.so was not found.
You might need to install Perl from source


************* WARNING *************
************* WARNING *************

mod_perl is unlikely to link with your libperl, suggestions:
*) Rebuild Perl with Configure -Accflags=+Z ...


************* WARNING *************
Configuring Apache/2.0.48 mod_perl/1.99_12 Perl/v5.8.3
!!! Using Perl 5.8.3 w/o ithreads and 'worker' mpm httpd.
!!! Failed requirements:
!!! - Perl built with ithreads (build perl -Dusethreads)

I don`t know why he want perl build with
-Dusethreads...

Richard H.