- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Need help compiling cobol program
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-13-2010 07:18 PM
тАО01-13-2010 07:18 PM
Need help compiling cobol program
I'm trying to compile a program using a script from an old PARISC machine. The new machine is 11.31.
Here's the comand:
cob -o $DC_BIN/DCRTSORA -xe "" $DC_BIN/dcsaddr.o \
$DC_BIN/dcspos.o \
$DC_BIN/trmout.o \
-l:libpthread.so \
$ORACLE_HOME/precomp/lib/cobsqlintf.o \
-lcurses \
-L $ORACLE_HOME/lib \
-lsqlplus \
here's the output:
ld: Mismatched ABI for -lsqlplus, found /u01/app/oracle/product/11.2.0/dbhome_1/lib/libsqlplus.so
Fatal error.
here's 'file' of that library:
ELF-64 shared object file - IA64
I ran file against all of the preceding objects - they are all ELF64. In other words it does not appear I am mixing 32 and 64 bit libraries.
Any ideas?
- Tags:
- COBOL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2010 08:43 PM
тАО01-13-2010 08:43 PM
Re: Need help compiling cobol program
You neglected to mention that it is an Integrity server.
>they are all ELF64. In other words it does not appear I am mixing 32 and 64 bit libraries.
How do you tell cob(1) that you want to create a 64 bit executable? If there is an option you use when compiling, you need it when linking too.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2010 07:15 AM
тАО01-14-2010 07:15 AM
Re: Need help compiling cobol program
I've assumed it was using ld in /usr/sbin for linking and I checked that too to be sure it was 64 bits. Perhaps I will try to verify cob is using that ld.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2010 07:29 AM
тАО01-14-2010 07:29 AM
Re: Need help compiling cobol program
Anyway, I found only one other ld and it was an old 32-bit PARISC one. Renamed it to ld.old and reran the compile script. Still no luck. I've confirmed that cob is using the 64 bit ld in /usr/bin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2010 12:06 PM
тАО01-14-2010 12:06 PM
Re: Need help compiling cobol program
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-15-2010 03:47 AM
тАО01-15-2010 03:47 AM
Re: Need help compiling cobol program
How did you confirm? There is only one ld, it runs in 64 bit mode but produces either 32 or 64 bit. (And ld is in /usr/ccs/bin/.)
And as you found, it bases its bitness on the first file it sees. If cob doesn't have -Wl,-t, you can "export LDOPTS=-t" to see each input file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-15-2010 08:20 AM
тАО01-15-2010 08:20 AM
Re: Need help compiling cobol program
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-15-2010 06:55 PM
тАО01-15-2010 06:55 PM
Re: Need help compiling cobol program
Ah, right but actually three. /usr/ccs/pa/usr/ccs/bin/ld invokes either ld32 or ld64.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-15-2010 08:26 PM
тАО01-15-2010 08:26 PM