On Thu, Jan 13, 2005, Julien TOUCHE wrote:
> i'm trying to compile openpkg (openpkg-2.2.2-2.2.2.src.sh) on hpux11 but
> it fails on gzip make:
>
>         source='rpmatch.c' object='rpmatch.o' libtool=no \
>         depfile='.deps/rpmatch.Po' tmpdepfile='.deps/rpmatch.TPo' \
>         depmode=hp /bin/sh ./depcomp \
>         /usr/bin/cc -DHAVE_CONFIG_H -I. -I. -I.       -c `test -f
> 'rpmatch.c' || echo './'`rpmatch.c
> (Bundled) cc: "rpmatch.c", line 67: error 1705: Function prototypes are
> an ANSI feature.
> *** Error exit code 1
>
> Stop.
> *** Error exit code 1
>
> Stop.
> + exit 1
> + exit 1
> ./openpkg.boot:ERROR: script returned non-null value
>
> # uname -a
> HP-UX xxx B.11.00 E 9000/819 85601392 X-user license
>
> has someone any advice ? is there a hp bundle with an ansi compiler ? or
> is it possible to handle this without root ?
>
If you do have root access, then it's easy. Download from:

  ftp://ftp.openpkg.org/release/2.2/BIN/hppa-hpux11.11/

the packages:

  openpkg-2.2.0-2.2.0.hppa-hpux11.11-openpkg.sh
  binutils-2.14-2.2.0.hppa-hpux11.11-openpkg.rpm
  gcc-3.4.2-2.2.0.hppa-hpux11.11-openpkg.rpm

Install them:

  # sh openpkg-2.2.0-2.2.0.hppa-hpux11.11-openpkg.sh
  # /openpkg/bin/openpkg rpm -Uvh binutils-2.14-2.2.0.hppa-hpux11.11-openpkg.rpm
  # /openpkg/bin/openpkg rpm -Uvh gcc-3.4.2-2.2.0.hppa-hpux11.11-openpkg.rpm

And set your PATH=/openpkg/sbin:/openpkg/bin:$PATH. You should then be able
to compile OpenPKG.

To build other OpenPKG packages (even in /cw or other instances) you will
still need to use the cc in /openpkg for a while. Just use the use_cc macro:

  $ /cw/bin/openpkg rpm --rebuild <package> --define 'use_cc /openpkg/bin/cc'

After you've built the GCC package into your target instance, you can
deinstall all three packages from /openpkg.

If you don't have root access to the machine, then you'll have to keep
looking for a non OpenPKG solution. Even then it will be difficult to find a
package for HPUX that installs a ISO standard conformant C compiler to your
user storage area. Of course compiling GCC by hand is an option. Try looking
at the gcc.spec file that OpenPKG uses when building GCC:

  http://cvs.openpkg.org/dir?d=openpkg-src/gcc
  http://cvs.openpkg.org/getfile/openpkg-src/gcc/gcc.spec?v=1.104

Regards,
Michael

-- 
Michael Schloh von Bennewitz <[EMAIL PROTECTED]>
Development Team, Operations Northern Europe
Cable & Wireless Telecommunications Services
Tel +49-89-92699-227, Fax +49-89-92699-808

Attachment: pgpRgw4uq0d9y.pgp
Description: PGP signature

Reply via email to