- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Error compiling pro*c thru make in HP-UX
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
Discussions
Discussions
Discussions
Forums
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
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-10-2008 12:38 PM
тАО01-10-2008 12:38 PM
Error compiling pro*c thru make in HP-UX
I am getting following errors when compiling a pro*c program. My Pro*C programs used to work in in HP UX 10.20 but stopped working in HP UX 11.0.
================== ERROR message ===============
Precompiling prb_ptax.pc
cc -I. -O -Aa -Wl,-aarchive -L/cal/oracle/lib -o prb_ptax prb_ptax.c /cal/oracle
/lib/libsql.a /cal/oracle/lib/osntab.o -lsqlnet -lora /cal/oracle/lib/libpls.a -
lsqlnet -lnlsrtl -lcv6 -lcore -lnlsrtl -lcv6 -lcore -lcl -lm
(Bundled) cc: warning 480: The -O option is available only with the C/ANSI C pro
duct; ignored.
(Bundled) cc: warning 480: The -A option is available only with the C/ANSI C pro
duct; ignored.
/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (prb_ptax.o) was dete
cted. The linked output may not run on a PA 1.x system.
/usr/ccs/bin/ld: Unsatisfied symbols:
shl_load (code)
shl_findsym (code)
*** Error exit code 1
Stop.
================== ERROR message ===============
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2008 02:09 PM
тАО01-10-2008 02:09 PM
Re: Error compiling pro*c thru make in HP-UX
The error: "(Bundled) cc: warning 480: The -A option is available only with the C/ANSI C product; ignored."
...tells you that you are using the sleletal bundled C compiler only useful for basic kernel support and not a full-fledged ANSI C one. It would appear that you had licensed the ANSI C compiler on 10.20 but did not do so (or did not install) the same on your 11.x server.
Remember, 11.0 is out-of-support. The ANSI C compiler would be on one of the Application CDs but will require a codeword to unlock.
Regards!
...JRF...
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2008 01:58 AM
тАО01-11-2008 01:58 AM
Re: Error compiling pro*c thru make in HP-UX
This occurs because you have illegally used -Wl,-aarchive.
Either leave it out or use -Wl,-aarchive_shared
Also as JRF mentioned, you shouldn't be using the bundled C compiler to develop applications.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2008 02:24 AM
тАО01-11-2008 02:24 AM
Re: Error compiling pro*c thru make in HP-UX
My priority is to work on the errors. So, can you please suggest me any workaround on the errors 'shl_load' and 'shl_fiindsym'. For the time being I am ignoring the warnings regarding cc comand line options options '-O' and '-A'.
Regards,
Tushar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2008 02:45 AM
тАО01-11-2008 02:45 AM
Re: Error compiling pro*c thru make in HP-UX
I mentioned exactly why you got them.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2008 03:23 AM
тАО01-11-2008 03:23 AM
Re: Error compiling pro*c thru make in HP-UX
You must install compiler for HP-UX 11x . Isuggest you ANSI/C (HP software) o gcc (GNU software
rgds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2008 03:44 AM
тАО01-11-2008 03:44 AM
Re: Error compiling pro*c thru make in HP-UX
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2008 08:44 AM
тАО01-11-2008 08:44 AM
Re: Error compiling pro*c thru make in HP-UX
Thanks for suggestion that takes me towards installing the developer packs / gcc.
Meanwhile, I tried to compile by removing LDFLAGS "-Wl,-aarchive" and compiled as follows
---------------
cc -I. -O -Aa -L/cal/oracle/lib -o prb_ptax prb_ptax.c /cal/oracle/lib/libsql.a
/cal/oracle/lib/osntab.o -lsqlnet -lora /cal/oracle/lib/libpls.a -lsqlnet -lnlsr
tl -lcv6 -lcore -lnlsrtl -lcv6 -lcore -lcl -lm
(Bundled) cc: warning 480: The -O option is available only with the C/ANSI C pro
duct; ignored.
(Bundled) cc: warning 480: The -A option is available only with the C/ANSI C pro
duct; ignored.
/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (prb_ptax.o) was dete
cted. The linked output may not run on a PA 1.x system.
---------------
But, finally when I executed the binary, I got following error -
/usr/lib/dld.sl: Can't open shared library: /usr/lib/libc.2
Any 2nd thought on this?
Regards,
Tushar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2008 12:17 PM
тАО01-11-2008 12:17 PM
Re: Error compiling pro*c thru make in HP-UX
dld.sl: Can't open shared library: /usr/lib/libc.2
My crystal ball says you took your executable that you developed on 11.00 and tried to execute it on 10.20. That won't work and wouldn't work even if you could use -Wl,-aarchive.
Only forward compatibility is supported.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-12-2008 05:30 PM
тАО01-12-2008 05:30 PM
Re: Error compiling pro*c thru make in HP-UX
You are absolutely correct.
1. I tried to compile in new box HP UX 11.00 without option '-aacrchive'. It worked.
2. I copied the executable to HP UX 10.20. It gave an error -
/usr/lib/dld.sl: Can't open shared library: /usr/lib/libc.2
/usr/lib/dld.sl: No such file or directory
3. When tried to HP UX 10.20 box now it gives -
core dump at precompilation itself.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-12-2008 05:50 PM
тАО01-12-2008 05:50 PM
Re: Error compiling pro*c thru make in HP-UX
You can't do that.
>3. When tried to HP UX 10.20 box now it gives - core dump at precompilation itself.
Tried what? Core dump where? What did you mean by pre-compilation, something to do with pro*c?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2008 01:38 AM
тАО01-13-2008 01:38 AM
Re: Error compiling pro*c thru make in HP-UX
Thanks again for your response. I now tried to precompile the entire thing in 10.20 box and it is not working. It gives error at precompilation itself.
Actually, there were two identical boxes with HP UX 10.20. One could precompile well and another couldn't. I used to ompile in one and port the executable to another. The one with good precompiler (PRO*C) got OS crashed and had to be reinstalled. Now, I am able to compile in this box (with OS reinstalled with HPUX 11.00 and system restored), but not able to port it to the other box with HPUX 10.20 where the precompiler doesn't work and gives core dump.
Is theere any way to compile in HPUX 11.00 with compatibility mode.
Regards,
Tushar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2008 03:13 AM
тАО01-13-2008 03:13 AM
Re: Error compiling pro*c thru make in HP-UX
No, there is no supported way. Only forward compatibility is supported.