HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- location of library files -lpthread and -lm in 11V...
Operating System - HP-UX
1833875
Members
2136
Online
110063
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
Forums
Discussions
Discussions
Discussions
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
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
04-02-2007 12:01 AM
04-02-2007 12:01 AM
Hello,
We are currently migrating our applications from 11i to 11V2. Our Oracle database version is 10g.
We are trying to compile a demo program which is available under oracle installation directory.
Following is the command used to compile a sample program.
cc -w +DD32 -c
-I/opt/oracle/product/10.2.0/rdbms/demo -I/opt/oracle/product/10.2.0/rdbms/public -I/opt/oracle/product/10.2.0/plsql/public -I/opt/oracle/product/10.2.0/network/public -I/opt/oracle/product/10.2.0/precomp/public oci11.c
and following is the command to build the executable 'oci11' after linking :
cc -Wl,+s -Wl,+n +DD32 -L/opt/oracle/product/10.2.0/lib32/ -L/opt/oracle/product/10.2.0/rdbms/lib32/ -o oci11 oci11.o /opt/oracle/product/10.2.0/lib32/libclntst10.a -lpthread -lm
In the above, we need some clarification on the libraries used for linking i.e. the libraries libpthread.a and libm.a ( -lthread and -lm ) are referred from which directory ? Are those libraries present under /usr/lib ? or in some other directory ? Could you please confirm ?
Thanks in advance for your help.
We are currently migrating our applications from 11i to 11V2. Our Oracle database version is 10g.
We are trying to compile a demo program which is available under oracle installation directory.
Following is the command used to compile a sample program.
cc -w +DD32 -c
-I/opt/oracle/product/10.2.0/rdbms/demo -I/opt/oracle/product/10.2.0/rdbms/public -I/opt/oracle/product/10.2.0/plsql/public -I/opt/oracle/product/10.2.0/network/public -I/opt/oracle/product/10.2.0/precomp/public oci11.c
and following is the command to build the executable 'oci11' after linking :
cc -Wl,+s -Wl,+n +DD32 -L/opt/oracle/product/10.2.0/lib32/ -L/opt/oracle/product/10.2.0/rdbms/lib32/ -o oci11 oci11.o /opt/oracle/product/10.2.0/lib32/libclntst10.a -lpthread -lm
In the above, we need some clarification on the libraries used for linking i.e. the libraries libpthread.a and libm.a ( -lthread and -lm ) are referred from which directory ? Are those libraries present under /usr/lib ? or in some other directory ? Could you please confirm ?
Thanks in advance for your help.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2007 05:36 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2007 06:08 PM
04-03-2007 06:08 PM
Re: location of library files -lpthread and -lm in 11V2
Hello,
Thanks for your reply. We are using IPF and checked the files libpthread.a under /usr/lib/hpux32 ( as we are using 32 bit ). But the file is not present under /usr/lib/hpux32. But the linking is going through fine if we give the following command :
cc -Wl,+s -Wl,+n +DD32 -L/opt/oracle/product/10.2.0/lib32/ -L/opt/oracle/product/10.2.0/rdbms/lib32/ -o oci11 oci11.o /opt/oracle/product/10.2.0/lib32/libclntst10.a -lpthread -lm
Could you please let us know from where libpthread.a file is getting referred ?
Thanks in advance for your help.
Thanks for your reply. We are using IPF and checked the files libpthread.a under /usr/lib/hpux32 ( as we are using 32 bit ). But the file is not present under /usr/lib/hpux32. But the linking is going through fine if we give the following command :
cc -Wl,+s -Wl,+n +DD32 -L/opt/oracle/product/10.2.0/lib32/ -L/opt/oracle/product/10.2.0/rdbms/lib32/ -o oci11 oci11.o /opt/oracle/product/10.2.0/lib32/libclntst10.a -lpthread -lm
Could you please let us know from where libpthread.a file is getting referred ?
Thanks in advance for your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2007 06:41 PM
04-03-2007 06:41 PM
Re: location of library files -lpthread and -lm in 11V2
>But the file is not present under /usr/lib/hpux32.
Sure it is. :-)
It's verboten to use system archive libs and so libc.a, libpthread.a and others were removed to solve this issue.
You should look for libpthread.so.1.
If you link with "-Wl,-t", you can see what files ld is actually using.
Sure it is. :-)
It's verboten to use system archive libs and so libc.a, libpthread.a and others were removed to solve this issue.
You should look for libpthread.so.1.
If you link with "-Wl,-t", you can see what files ld is actually using.
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.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP