- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- compiling C-sources
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
03-15-2002 07:22 AM
03-15-2002 07:22 AM
I took some perfectly compilable C-sources from a 10.20 OS to 11.00. The code uses some libraries, give me some headage.
First of all, on 10.20 i used a Ansi-C compiler, on 11.00 i can only use the default cc.
Using -DPOSIX and -DANSI seems to go just fine, but the alian code included gives me:
#make -f nj.m
cc -Ae -c -O -DDLPI_20 -DDEBUG -DNPI_20 -I../inc -I/usr/xmcapi/include -I/usr/include ../src/njmddmain.c
(Bundled) cc: warning 480: The -A option is available only with the C/ANSI C product; ignored.
(Bundled) cc: warning 480: The -O option is available only with the C/ANSI C product; ignored.
(Bundled) cc: "/usr/xmcapi/include/macros.h", line 59: error 1000: Unexpected symbol: "*".
(Bundled) cc: "/usr/xmcapi/include/macros.h", line 60: error 1000: Unexpected symbol: "*".
(Bundled) cc: "/usr/xmcapi/include/macros.h", line 61: error 1000: Unexpected symbol: "*".
(Bundled) cc: "/usr/xmcapi/include/macros.h", line 62: error 1000: Unexpected symbol: "*".
(Bundled) cc: "/usr/xmcapi/include/macros.h", line 63: error 1000: Unexpected symbol: "*".
(Bundled) cc: "/usr/xmcapi/include/macros.h", line 63: error 1000: Unexpected symbol: "QHead".
(Bundled) cc: "/usr/xmcapi/include/apitypes.h", line 68: error 1000: Unexpected symbol: "octet".
(Bundled) cc: "/usr/xmcapi/include/apitypes.h", line 69: error 1000: Unexpected symbol: "octet".
(Bundled) cc: "/usr/xmcapi/include/apitypes.h", line 74: error 1000: Unexpected symbol: "octet".
(Bundled) cc: "/usr/xmcapi/include/apitypes.h", line 75: error 1000: Unexpected symbol: "octet".
(Bundled) cc: "/usr/xmcapi/include/apitypes.h", line 76: error 1000: Unexpected symbol: "octet".
(Bundled) cc: "/usr/xmcapi/include/p7api.h", line 127: error 1000: Unexpected symbol: "*".
(Bundled) cc: "/usr/xmcapi/include/p7api.h", line 129: error 1000: Unexpected symbol: "*".
(Bundled) cc: error 2017: Cannot recover from earlier errors, terminating.
*** Error exit code 1
Ofcourse, i can delete the -O and -A flags, but no changes on this...
Where do i need to look ?
Points will be given...
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2002 07:27 AM
03-15-2002 07:27 AM
Re: compiling C-sources
Check this out:
http://us-support.external.hp.com/cki/bin/doc.pl/sid=a65b5467039b74c633/screen=ckiDisplayDocument?docId=200000058694491
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2002 07:33 AM
03-15-2002 07:33 AM
SolutionUnless you are willing to translate all of your ANSI C to K&R, you will need to purchase the ANSI C compiler or the C++ (aCC) compiler. The ANSI C compiler speaks both ANSI and K&R; aCC speaks C++ and ANSI C.
Plan B. Download and install gcc from any a\of the HP-UX Porting Centre's.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2002 02:28 AM
03-18-2002 02:28 AM
Re: compiling C-sources
/usr/ccs/bin/ld: Unsatisfied symbols:
strerror_r (code)
collect2: ld returned 1 exit status
I cannot find the reason, anybody suggestions?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2002 02:42 AM
03-18-2002 02:42 AM
Re: compiling C-sources
Regards,
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2002 04:46 AM
03-18-2002 04:46 AM
Re: compiling C-sources
My alien c-source is now correctly compiled by gcc. strerror_r and others as well as some compiling options (CFLAGS and LIBs) had to be modified, but this saved us two investments.
Thanks and greetings,
Ceesjan