- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Help compiling c code into "PA-RISC1.1 shared exec...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2009 04:46 PM
01-18-2009 04:46 PM
I have a HP-UX 10.20 box that I want to move to 11.11.
This box uses cgi scripts for the http installation that are "PA-RISC1.1 shared executable dynamically linked -not stripped" files when I issue the file command against them.
I do have the c code and I need to make some changes to it because some paths need to be changed to reflect the new environment. After that I need to recompile it back into PA-RISC shared executables.
What commands do I use to turn these .c files into PA-RISC shared executables?
I obviously am not a programmer but I just need to change hard set paths in the c code and recompile them. Can you help me?
I am pretty lost here, I assume the cc command should be used but not sure.
Thank you
James
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2009 08:54 PM
01-18-2009 08:54 PM
Re: Help compiling c code into "PA-RISC1.1 shared executable dynamically linked -not stripped" files
Do you have the C compiler installed or the bundled C compiler?
For the simple case, you should be able to use:
$ cc -o executable foo.c
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2009 10:02 PM
01-18-2009 10:02 PM
Re: Help compiling c code into "PA-RISC1.1 shared executable dynamically linked -not stripped" files
Thank you for responding.
I have what look to be single c source files.
so I have a cgi script named brakes.cgi and I found the c source code named brakes.c
For the C compiler I believe it is the bundled or "standard issue" C compiler.
I found a string I think was used to compile the original cgi scripts from the c code.
It is...
"cc -Aa -g cgia.c license.c -lm -o cgia
From the man page it looks like -Aa is saying use ANSI mode. -g is to generate info for the symbolic debugger. I understand that -o cgia is outputting cgia as the executable.
But can you help me to understand what the -lm does. It says something similar to "resolve unresolvable external references"
I am not sure what to make of that.
Thank you again
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2009 10:10 PM
01-18-2009 10:10 PM
Re: Help compiling c code into "PA-RISC1.1 shared executable dynamically linked -not stripped" files
The bundled C compiler on PA will not support -Aa nor -g.
>But can you help me to understand what the -lm does.
It links in libm so you can call functions like sin(3).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2009 10:41 PM
01-18-2009 10:41 PM
Re: Help compiling c code into "PA-RISC1.1 shared executable dynamically linked -not stripped" files
OK thanks for the heads up on the -lm.
How can I get the c compiler I am looking for?
Is it simply downloadable from ITRC in .depot format.
Thank you
James
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2009 10:54 PM
01-18-2009 10:54 PM
SolutionIf your code is simple, you can attempt using the bundled compiler.
>Is it simply downloadable from ITRC in .depot format.
You have to purchase it. There is an evaluation copy available:
http://h21007.www2.hp.com/portal/site/dspp/menuitem.863c3e4cbcdc3f3515b49c108973a801/?ciid=e9083a7373f021103a7373f02110275d6e10RCRD