This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: HP-UX 11.11
- From: "Josh Perlmutter" <buttermaker at hotmail dot com>
- To: john at dryfish dot org
- Cc: gcc-help at gcc dot gnu dot org
- Date: Tue, 12 Feb 2002 21:11:41 +0000
- Subject: Re: HP-UX 11.11
- Bcc:
did you build form the ground up? i use 10.20 and had tried to get 303 on
11i at one point. you have to ignore everything that hp gives you and build
from the ground up. once you do that a lot of the problems will be fixed
because you're using gnu provided tools. also: for 11i, just follow 11
instructions.
-Josh
>From: John Wright <john@dryfish.org>
>Reply-To: John Wright <john@dryfish.org>
>To: gcc-help@gcc.gnu.org
>Subject: HP-UX 11.11
>Date: Tue, 12 Feb 2002 15:10:17 +0000
>
>Hi.
>
>I'm trying to compile gcc-2.95.3 under HP-UX 11.11 but I'm having some
>difficulty.
>
>I also have some similiar difficulty trying to compile gcc-3.0.3 but really
>I want 2.95.3.
>
>The trouble is that I have to do a bit of hacking to compile it but that
>once I've compiled it I'm unable to do what I want. Some other people I
>know have managed to compile it without hacking but under HP-UX 11.00 and
>they can do what I want to do.
>
>The trouble:
>
>Firstly, floatformat.c will not compile because size_t is undefined.
>Adding
>#include <sys/types.h> to floatformat.h fixes this.
>
>Later on a number of things will not compile due to va_list not being
>defined and I've not found a good way of fixing that which doesn't result
>in
>me having to comment bits out for some files then uncomment over and over.
>
>(basically just adding #include <stdarg.h> or doing a straight typedef blah
>va_list -- either double * or __gnuc_va_list)
>
>
>What I'd like to do:
>
>What I think I need to do to fix a problem I'm having is to compiled a C++
>program and then link it against libstdc++.a instead of libstdc++.sl.
>
>Currently, HP's own ld will say:
>
>/usr/bin/ld: DP relative code in file
>/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/libstdc++.a(stlinst.o) -
>shared library must be position independent. Use +z or +Z to recompile.
>
>
>
>I've tried using 11.00 compiled GCCs version 2.95.3 and 3.0.3 running on
>the
>11.11 system to compile an 11.11 version of GCC 2.95.3.
>
>Binutils 2.11.2 is installed on the system.
>
>Any help on getting GCC to compile cleanly or getting the linker to link
>against libstdc++.a and produce a shared object at the same time would be
>very much appreciated.
>
>I've done google and mailing list searches but I've only found questions
>rather than answers.
>
>Thanks.
*******************
Josh Perlmutter
NOC "intern"
Brandeis University
_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.com