- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Building 32bit shared library on 64bit HP-UX 11.0
Operating System - HP-UX
1752794
Members
6905
Online
108789
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
тАО09-17-2002 08:39 AM
тАО09-17-2002 08:39 AM
Building 32bit shared library on 64bit HP-UX 11.0
On HP-UX 11.0, we are trying to call external c routine from Oracle PL/SQL
(Oracle 9i - Oracle9i Enterprise Edition Release 9.2.0.1.0 - 64bit)
For this we are trying to make 32 bit shared library (HPUX 11.0 - 64 bit)
using demo_rdbms32.mk file supplied by oracle. (Reason for going for 32 bit
is that our rest of the application is 32 bit although HP-UX machine is 64 bit)
Should be use any specific switches for building 32 bit shared libraries on
64-bit machine. Request you to advice on this.
Below mentioned are steps which we followed.
----------------------------------------
make -f demo_rdbms32.mk extproc_with_context
SHARED_LIBNAME=exception.sl OBJS="exception.o elimspace.o get_symbol.o ipc.o
secmisc2.o getmbxkey.o secmisc.o secmisc3.o"
IT GIVES ME FOLLOWING ERROR
ld -G /data/app/oracle/product/Oracle9i/lib/libclntsh.sl -b
-L/data/app/oracle/product/Oracle9i/lib
-L/data/app/oracle/product/Oracle9i/lib/
-L/data/app/oracle/product/Oracle9i/rdbms/lib/ -o exception.sl exception.o
elimspace.o get_symbol.o ipc.o secmisc2.o getmbxkey.o secmisc.o secmisc3.o
/data/app/oracle/product/Oracle9i/lib/libpls9.a -lclntsh `cat
/data/app/oracle/product/Oracle9i/lib/sysliblist` -lm
ld: Mismatched ABI (not an ELF file) for exception.o
Fatal error.
*** Error exit code 1
Stop.
Thanks in advance
Vinay Godbole
(Vinay_Godbole@satyam.com)
(Oracle 9i - Oracle9i Enterprise Edition Release 9.2.0.1.0 - 64bit)
For this we are trying to make 32 bit shared library (HPUX 11.0 - 64 bit)
using demo_rdbms32.mk file supplied by oracle. (Reason for going for 32 bit
is that our rest of the application is 32 bit although HP-UX machine is 64 bit)
Should be use any specific switches for building 32 bit shared libraries on
64-bit machine. Request you to advice on this.
Below mentioned are steps which we followed.
----------------------------------------
make -f demo_rdbms32.mk extproc_with_context
SHARED_LIBNAME=exception.sl OBJS="exception.o elimspace.o get_symbol.o ipc.o
secmisc2.o getmbxkey.o secmisc.o secmisc3.o"
IT GIVES ME FOLLOWING ERROR
ld -G /data/app/oracle/product/Oracle9i/lib/libclntsh.sl -b
-L/data/app/oracle/product/Oracle9i/lib
-L/data/app/oracle/product/Oracle9i/lib/
-L/data/app/oracle/product/Oracle9i/rdbms/lib/ -o exception.sl exception.o
elimspace.o get_symbol.o ipc.o secmisc2.o getmbxkey.o secmisc.o secmisc3.o
/data/app/oracle/product/Oracle9i/lib/libpls9.a -lclntsh `cat
/data/app/oracle/product/Oracle9i/lib/sysliblist` -lm
ld: Mismatched ABI (not an ELF file) for exception.o
Fatal error.
*** Error exit code 1
Stop.
Thanks in advance
Vinay Godbole
(Vinay_Godbole@satyam.com)
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-17-2002 09:00 AM
тАО09-17-2002 09:00 AM
Re: Building 32bit shared library on 64bit HP-UX 11.0
You can use the file command to determine the bit of the library:
# file /data/app/oracle/product/Oracle9i/lib/libpls9.a
A 32 bit library might say:
archive file -PA-RISC1.1 relocatable library
A 64 bit library might say:
ELF-64 shared object file - PA-RISC 2.0 (LP64)
If trying to build the program for 32 bit, make sure the Oracle libraries involved are all 32 bit.
Cheryl
# file /data/app/oracle/product/Oracle9i/lib/libpls9.a
A 32 bit library might say:
archive file -PA-RISC1.1 relocatable library
A 64 bit library might say:
ELF-64 shared object file - PA-RISC 2.0 (LP64)
If trying to build the program for 32 bit, make sure the Oracle libraries involved are all 32 bit.
Cheryl
"Downtime is a Crime."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-17-2002 10:36 PM
тАО09-17-2002 10:36 PM
Re: Building 32bit shared library on 64bit HP-UX 11.0
Thanks for your reply. Oracle9i product on HP-UX is 64-bit. However Oracle allows you to build 32-bit as well as 64-bit applications as they have provided both set of libraries.
Our requirement is that our HP-UX is 64-bit, Oracle9i is 64-bit but our application and dependant programs are 32-bit. Hence we want to build 32bit shared library. We have already modified paths to include Oracle9i's 32bit libraries.
For your reference I am attaching values of LD_LIBRARY_PATH,SHLIB_PATH and PATH environmental variables
hpawls:oracle:/home/oracle/templib/userexit32> echo $LD_LIBRARY_PATH
/opt/java1.3/lib:/opt/java1.3/lib/tools.jar:/opt/java1.3/jre/lib/PA_RISC2.0:/opt/netscape/java/classes:/opt/netscape/java/classes/java40.jar:/usr/lib:/data/app/oracle/product/Oracle9i/lib32
hpawls:oracle:/home/oracle/templib/userexit32> echo $PATH
/usr/bin:/opt/ansic/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/nettladm/bin:/opt/fc/bin:/opt/fcms/bin:/opt/upgrade/bin:/opt/pd/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/perf/bin://opt/perl/bin:/opt/resmon/bin:/usr/sbin/diag/contrib:/opt/pred/bin:/opt/hparray/bin:/opt/ignite/bin:/opt/langtools/bin:/opt/java1.3/bin:/opt/netscape:.:/usr/bin:/usr/local/bin:.:/usr/sbin:/etc:/data/app/oracle/product/Oracle9i/bin:/bin:/usr/ccs/bin
hpawls:oracle:/home/oracle/templib/userexit32> echo $SHLIB_PATH
/usr/lib:/usr/local/lib:/data/app/oracle/product/Oracle9i/precomp/lib32:/data/app/oracle/product/Oracle9i/lib32:/data/app/oracle/product/Oracle9i/rdbms/lib32:/data/app/oracle/product/Oracle9i/lib32
Please let me know your comments on this.
Thanks
Vinay
Our requirement is that our HP-UX is 64-bit, Oracle9i is 64-bit but our application and dependant programs are 32-bit. Hence we want to build 32bit shared library. We have already modified paths to include Oracle9i's 32bit libraries.
For your reference I am attaching values of LD_LIBRARY_PATH,SHLIB_PATH and PATH environmental variables
hpawls:oracle:/home/oracle/templib/userexit32> echo $LD_LIBRARY_PATH
/opt/java1.3/lib:/opt/java1.3/lib/tools.jar:/opt/java1.3/jre/lib/PA_RISC2.0:/opt/netscape/java/classes:/opt/netscape/java/classes/java40.jar:/usr/lib:/data/app/oracle/product/Oracle9i/lib32
hpawls:oracle:/home/oracle/templib/userexit32> echo $PATH
/usr/bin:/opt/ansic/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/nettladm/bin:/opt/fc/bin:/opt/fcms/bin:/opt/upgrade/bin:/opt/pd/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/perf/bin://opt/perl/bin:/opt/resmon/bin:/usr/sbin/diag/contrib:/opt/pred/bin:/opt/hparray/bin:/opt/ignite/bin:/opt/langtools/bin:/opt/java1.3/bin:/opt/netscape:.:/usr/bin:/usr/local/bin:.:/usr/sbin:/etc:/data/app/oracle/product/Oracle9i/bin:/bin:/usr/ccs/bin
hpawls:oracle:/home/oracle/templib/userexit32> echo $SHLIB_PATH
/usr/lib:/usr/local/lib:/data/app/oracle/product/Oracle9i/precomp/lib32:/data/app/oracle/product/Oracle9i/lib32:/data/app/oracle/product/Oracle9i/rdbms/lib32:/data/app/oracle/product/Oracle9i/lib32
Please let me know your comments on this.
Thanks
Vinay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-18-2002 02:42 AM
тАО09-18-2002 02:42 AM
Re: Building 32bit shared library on 64bit HP-UX 11.0
Hi,If you are still getting the error message:
ld: Mismatched ABI ...
then Cheryl's reply still applies.
The environment-variables LD_LIBRARY_PATH, PATH and
SHLIB_PATH may be important when you run a program, but not
when you compile/link.
The cause of the error-message is that you are trying to link
a mix of 64-bit and 32-bit objects.
You have some -L/data/app... in your ld command.
Is this the correct path to where the 32-bit versions of the
oracle libs are found?
Regards
Olav
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP