Re: make error when building perl-5.8.8 on HP-UX 11.11 on HP 9000/800

[email protected] ("H.Merijn Brand") Wed, 10 Jan 2007 08:45:35 +0100
Newsgroups perl.perl5.build
Message-ID <20070110084535.29418e57@pc09>
On Tue, 9 Jan 2007 17:18:07 +0100, "S=C3=A9bastien Bind"
<[email protected]> wrote:

> Hi all,
>=20
> I ran the Configure command as follow (using gcc instead of cc):
>=20
>     sh ./Configure -A prepend:libswanted=3D'cl pthread ' -des

What is the reason you do not use any of the prebuilt packages available?
I see no command line arguments here that explain why you build your own
other than the curiosity to try it out.

Your problem might be GNU gcc-4.1.1, which has proven to not be ready for
HP-UX. The only HP-UX release where 4.1.1 works reliable is 11.23 (11iv2)
on Itanium2. For 11.11 (11iv1) and below I would advice to use gcc-3.4.6.

Further, you have not installed *any* patch bundle after the June 2004
Hardware enablement patches, so your development environment is probably
rather outdated and busted.

# swlist -l bundle | grep 200
  BUNDLE11i             B.11.11.0306.1 Required Patch Bundle for HP-UX 11i,=
 June 2003
  FEATURE11-11          B.11.11.0209.5 Feature Enablement Patches for HP-UX=
 11i, Sept 2002
  GOLDAPPS11i           B.11.11.0612.459 Applications Patches for HP-UX 11i=
 v1, December 2006
  GOLDBASE11i           B.11.11.0612.459 Base Patches for HP-UX 11i v1, Dec=
ember 2006
  HWEnable11i           B.11.11.0412.5 Hardware Enablement Patches for HP-U=
X 11i v1, December 2004
  OnlineDiag            B.11.11.13.14  HPUX 11.11 Support Tools Bundle, Dec=
 2003

> It seemed to be ok. Then I ran the make command and got the following tra=
ce:
>=20
>     /tmp/perl-5.8.8> make
>             `sh  cflags "optimize=3D'-O0'" miniperlmain.o`  miniperlmain.c
>               CCCMD =3D
>=20
> gcc -DPERL_CORE -c -fno-strict-aliasing -pipe -Wdeclaration-after-stateme=
nt=20
> -I/usr/local/include -D_LARGEFILE_SOURCE -O0  -Wall
>             `sh  cflags "optimize=3D'-O0'" perl.o`  perl.c
>               CCCMD =3D
>=20
> gcc -DPERL_CORE -c -fno-strict-aliasing -pipe -Wdeclaration-after-stateme=
nt=20
> -I/usr/local/include -D_LARGEFILE_SOURCE -O0  -Wall
>             `sh  cflags "optimize=3D'-O0'" gv.o`  gv.c
>               CCCMD =3D
>=20
> gcc -DPERL_CORE -c -fno-strict-aliasing -pipe -Wdeclaration-after-stateme=
nt=20
> -I/usr/local/include -D_LARGEFILE_SOURCE -O0  -Wall
>     gv.c: In function 'Perl_amagic_call':
>     gv.c:1794: error: 'copy' undeclared (first use in this function)
>     gv.c:1794: error: (Each undeclared identifier is reported only once
>     gv.c:1794: error: for each function it appears in.)
>     gv.c:1794: error: expected ')' before '_amg'
>     gv.c:1794: error: too few arguments to function 'Perl_amagic_call'
>     *** Error exit code 1
>=20
>     Stop.
>     /tmp/perl-5.8.8>
>=20
>=20
> Any idea why gv.c is not happy? Thankx in advance for any useful answer or
> any hint!
>=20
> Below a list of installed software and version:
>=20
> # swlist
> # Initializing...
> # Contacting target "vdcrinf1"...
> #
> # Target:  vdcrinf1:/
> #
>=20
> #
> # Bundle(s):
> #
>=20
>   100BaseT-01     B.11.11.01     HP-PB 100BaseT;Supptd HW=3DA3495A;SW=3DJ=
2759BA
>   B2491BA         B.11.11        MirrorDisk/UX
>   B3701AA_TRY     C.03.72.00     Trial HP GlancePlus/UX Pak for s800 11i
>   B5725AA         B.5.4.50       HP-UX Installation Utilities (Ignite-UX)
>   B9073BA         B.06.02        HP-UX iCOD (Instant Capacity on Demand)
>   B9789AA         1.3.1.13.01    Java2 1.3 RTE for HP-UX
>   BUNDLE          B.11.11        Patch Bundle
>   BUNDLE11i       B.11.11.0306.1 Required Patch Bundle for HP-UX 11i, Jun=
e 2003
>   CDE-English     B.11.11        English CDE Environment
>   FEATURE11-11    B.11.11.0209.5 Feature Enablement Patches for HP-UX 11i=
, Sept 2002
>   GigEther-00     B.11.11.19     PCI/HSC GigEther;Supptd HW=3DA4926A/A492=
9A/A4924A/A4925A;SW=3DJ1642AA
>   GigEther-01     B.11.11.15     PCI/PCI-X GigEther;Supptd HW=3DA6794A/A6=
825A/A6847A/A9782A/A9784A/A7109A
>   HPUX11i-OE      B.11.11.0406   HP-UX 11i Operating Environment Component
>   HPUXBase64      B.11.11        HP-UX 64-bit Base OS
>   HPUXBaseAux     B.11.11.0406   HP-UX Base OS Auxiliary
>   HWEnable11i     B.11.11.0406.4 Hardware Enablement Patches for HP-UX 11=
i v1, June 2004
>   IEther-00       B.11.11.05     PCI/PCI-X IEther;Supptd HW=3DA7011A/A701=
2A/AB352A
>   ISEEPlatform    A.03.50.854    ISEE Platform
>   Ignite-UX-11-11 B.5.4.50       HP-UX Installation Utilities for Install=
ing 11.11 Systems
>   OnlineDiag      B.11.11.14.15  HPUX 11.11 Support Tools Bundle, Jun 2004
>   OpenSSL         A.00.09.07-d.002 Secure Network Communications Protocol
>   T1457AA         1.4.2.02.01    Java2 1.4 RTE for HP-UX
>   T1457AAaddon    1.4.2.02.01    Java2 1.4 RTE -AA addon for HP-UX
>   T1471AA         A.04.20.004    HP-UX Secure Shell
>   scsiU320-00     B.11.11.01     PCI SCSI U320; Supptd HW=3DA7173A
> #
> # Product(s) not contained in a Bundle:
> #
>=20
>   AgentConfig                    ServiceControl Agent Config
>   DATA-PROTECTOR  A.05.00        HP OpenView Storage Data Protector
>   PHCO_23702      1.0            cumulative header file patch for prot.h
>   PHCO_31061      1.0            libc cumulative patch
>   db              4.5.20         db
>   gcc             4.1.1          gcc
>   gdbm            1.8.3          gdbm
>   gettext         0.15           gettext
>   libgcc          4.1.1          libgcc
>   libiconv        1.11           libiconv
>   libpcap         0.9.4          libpcap
>   make            3.81           make
>   openssh         4.2p1          openssh
>   openssl         0.9.8b         openssl
>   sudo            1.6.8p9        sudo
>   tcpdump         3.9.4          tcpdump
>   zlib            1.2.3          zlib
>   zsh             4.2.3          zsh
> #

--=20
H.Merijn Brand         Amsterdam Perl Mongers (http://amsterdam.pm.org/)
using & porting perl 5.6.2, 5.8.x, 5.9.x   on HP-UX 10.20, 11.00, 11.11,
& 11.23, SuSE 10.0 & 10.1, AIX 4.3 & 5.2, and Cygwin. http://qa.perl.org
http://mirrors.develooper.com/hpux/            http://www.test-smoke.org
                        http://www.goldmark.org/jeff/stupid-disclaimers/