Operating System - HP-UX
1847253 Members
3932 Online
110263 Solutions
New Discussion

On which Cd or cd pack is ANSI C compilor

 
SOLVED
Go to solution
Frank de Vries
Respected Contributor

On which Cd or cd pack is ANSI C compilor

I have the HPUX 11.0 Application Software disks
(december 2000) 5 cd's.

I mounted each cd and with swinstall checked the contentts of each one, and none of them contain the ANSI C software product.

I found COBOL and JAVA, but I need ANSI C.
(Yes I have the code for the license)

Can anyone tell me which cd's I need, or what did I miss ?
Look before you leap
9 REPLIES 9
Peter Godron
Honored Contributor

Re: On which Cd or cd pack is ANSI C compilor

Robert Salter
Respected Contributor

Re: On which Cd or cd pack is ANSI C compilor

Frank,

The closest I could get was the June 2001 set, but if you mount the 1st CD onto /cdrom and then do;
grep -n -e "CD Par" -e aC+ /cdrom/CD_TABLE_OF_CONTENTS

It will give you the CD part number where the C compiler is. So far it's been on disk 2 for the last 3-4 installs I've done.

later,

Robert
Time to smoke and joke
Patrick Wallek
Honored Contributor
Solution

Re: On which Cd or cd pack is ANSI C compilor

You must have the correct license code for the correct CD set.

Once you invoke swinstall, go to the Actions menu and select "Add New Codeword". Only AFTER the codeword has been added will you see the ANSI/C product, and then ONLY if you have the specific CD set that the codeword was designed for.
H.Merijn Brand (procura
Honored Contributor

Re: On which Cd or cd pack is ANSI C compilor

Peter is right.
I've got them here in front of me.

Disk 5011-7882:

> swlist -s /cdrom -l bundle | grep ANSI
B3899BA B.11.01.20 HP C/ANSI C Developer's Bundle for HP-UX 11.00 (S700)
B3901BA B.11.01.20 HP C/ANSI C Developer's Bundle for HP-UX 11.00 (S800)

Note that this is a very old version og the compiler. The most recent version would be

> swlist -R | grep ANSI
# B3901BA B.11.02.10 HP C/ANSI C Developer's Bundle for HP-UX 11.0 (S800)
# B3901BA.C-ANSI-C B.11.11.10 HP C/ANSI C Compiler
B3901BA.C-ANSI-C.C B.11.11.10 C Programming Language
B3901BA.C-ANSI-C.C-HELP B.11.11.10 C Online help
B3901BA.C-ANSI-C.C-MAN B.11.11.10 C References Pages

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Frank de Vries
Respected Contributor

Re: On which Cd or cd pack is ANSI C compilor

Ok, wonderful.

Is there a runtime for ANSI C required
to run compiled executables with SDK ?

What I am getting at is that I have an ANSI C compilor on an old DONKEY which is 10.00.

I have the object files *.o

I just need to link ld them on the new machine which has only generic c or gcc or cob +c option , I think that would work for
just creating an executable to would run without a ANSI C runtime, provided my logic here is correct
Look before you leap
A. Clay Stephenson
Acclaimed Contributor

Re: On which Cd or cd pack is ANSI C compilor

You are essentially correct. The "run-time" is bundled into libc so the libc patches will get you there. The possible "gotcha" is that some header files might have changed so that running an old functions notion of what a struct looked like against it's newer counterpart can cause problems.

In any event if you a codeword, it should tell you the CD part no. (which identifies the Application Set and CD) so that installing ANSI/C should be straightforward.
If it ain't broke, I can fix that.
Frank de Vries
Respected Contributor

Re: On which Cd or cd pack is ANSI C compilor

Thanks to all
Look before you leap
Dennis Handly
Acclaimed Contributor

Re: On which Cd or cd pack is ANSI C compilor

>What I am getting at is that I have an ANSI C compiler on an old DONKEY which is 10.00.
I have the object files *.o. I just need to link ld them on the new machine

This is not supported. You can only port complete applications to a newer OS. You must link your application on 10.20. THis is the caution Clay mentioned.
Dennis Handly
Acclaimed Contributor

Re: On which Cd or cd pack is ANSI C compilor

The correct solution is for you to purchase the C/C++ developer bundle B9007AA. Or you can use gcc.

There is an evaluation version of B9007AA available but this isn't a long term solution.