Operating System - HP-UX
1752498 Members
5500 Online
108788 Solutions
New Discussion юеВ

Re: Where is GCC 3.3.2 (binaries) for HP-UX 11.00 ?

 
SOLVED
Go to solution
Maribeth Romeo
Frequent Advisor

Re: Where is GCC 3.3.2 (binaries) for HP-UX 11.00 ?

I see the confusion. No, it crashes when I try to run it.
H.Merijn Brand (procura
Honored Contributor

Re: Where is GCC 3.3.2 (binaries) for HP-UX 11.00 ?

OK, now it's called:

a5:/tmp 104 > cat xx.c
#include
#include
#include

int dbgprintf (int oblig_arg, ...)
{
return 0;
} /* dbgprintf */

int debug (int i, char c, ...)
{
} /* debug */

int main (int argc, char *argv[])
{
printf ("%7d Hello world!\n", 7);

dbgprintf (0);
dbgprintf (1, "Two args");
dbgprintf (2, "Three args");

exit (0);
} /* main */
a5:/tmp 105 > cc -O -o xx xx.c
a5:/tmp 106 > ./xx
7 Hello world!
a5:/tmp 107 > gcc -O -o xx xx.c
a5:/tmp 108 > ./xx
7 Hello world!
a5:/tmp 109 >


No errors no warnings no coredumps no pain.

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Maribeth Romeo
Frequent Advisor

Re: Where is GCC 3.3.2 (binaries) for HP-UX 11.00 ?

Ok, well, I guess I'm flying solo here. Obviously, I've got the wrong version of something, but I have no idea what it is. Are there any patches that must be applied to the OS for things to work correctly? This machine has about 7 or 8 patches applied, but I don't know what is really necessary on the machine. I am not an HPUX expert. I've just been assigned to port my SunOS/Linux code to this platform.
H.Merijn Brand (procura
Honored Contributor

Re: Where is GCC 3.3.2 (binaries) for HP-UX 11.00 ?

Did you use the same include files? In the same order?

Check your patch level:

a5:/u/usr/merijn 104 > swlist | grep -i -e gold -e extsw -e qpk -e hwe
HWE1100 B.11.00.0403.3 Hardware Enablement Patches for HP-UX 11.00, March 2004
QPK1100 B.11.00.64.4 Quality Pack for HP-UX 11.00, March 2004
a5:/u/usr/merijn 105 >

As you can see it shows the date of the patch (bundle)

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Maribeth Romeo
Frequent Advisor

Re: Where is GCC 3.3.2 (binaries) for HP-UX 11.00 ?

The only thing that I get when I run that command is:

QPK1100 B.11.00.58.5 Quality Pack for HP-UX 11.00, September 2002

Does this matter? Will I need to upgrade?
Maribeth Romeo
Frequent Advisor

Re: Where is GCC 3.3.2 (binaries) for HP-UX 11.00 ?

Also, do I need to use -D_HPUX_SOURCE during compilation?
Slawomir Gora
Honored Contributor

Re: Where is GCC 3.3.2 (binaries) for HP-UX 11.00 ?

Hi,

the latest QPK and HWE is:
QPK1100 B.11.00.64.4 Quality Pack for HP-UX 11.00, March 2004
HWE1100 B.11.00.0403.3 Hardware Enablement Patches for HP-UX 11.00, March 2004

yours are a litle old version :)
H.Merijn Brand (procura
Honored Contributor

Re: Where is GCC 3.3.2 (binaries) for HP-UX 11.00 ?

Maribeth, apparently it *does* matter.

Next to probably quite out of date include files, you might also have (shared) libraries that were fixed

If you can get hold of the March patch bundles, I'd advice to upgrade. Since HP-UX 11.00 is not in development anymore, March-2004 might be considered rather stable

I'd also advice you to asign points (like 0 is OK in the abandoned thread) if you want help in the future.

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Maribeth Romeo
Frequent Advisor

Re: Where is GCC 3.3.2 (binaries) for HP-UX 11.00 ?

Ok, I'm going to have our administator add this patch. Is this a cumulative patch or do I need to worry about applying other patches before this one? Also, I closed the other thread with 0 points...thanks for the advice.
H.Merijn Brand (procura
Honored Contributor

Re: Where is GCC 3.3.2 (binaries) for HP-UX 11.00 ?

It's accumulative.

If you didn't add any harware since 2002, just do the QPK

Good Luck!

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn