- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Alib and pthread incompatible???
Operating System - HP-UX
1752661
Members
6054
Online
108788
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
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
тАО03-19-2004 07:45 AM
тАО03-19-2004 07:45 AM
When we attempt to run out app with the Alib and pthread we get a Segmentation fault. Without Alib our app runs fine (until I need the audio library). I have a sample program that runs fine with Alib but Segmentation faults when pthread is linked in.
I installed the audio lib from the 11.11 dev kit. Does anyone have any ideas?
I installed the audio lib from the 11.11 dev kit. Does anyone have any ideas?
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-19-2004 08:24 AM
тАО03-19-2004 08:24 AM
Solution
What compile and link options are you using when you compile your Alib app? If it is multi-threaded you may need just more than linking with -lpthread. Are you passing -D_REENTRANT, -D_HPUX_SOURCE and/or some of the other pthread compiler options? Check out the man page for pthread for some info on those options.
Are you linking in libdce.* or libcma.*? Those are also multi-threaded libraries and their pthread calls are incompatible with those in libpthread.*, so if the program or any of the libraries it is loading are also linking (or have linked) with -ldce or -lcma, you will need to remove those libraries from the link if you are going to add -pthread.
Don't know if it will help, but those are my 2 cents.
Are you linking in libdce.* or libcma.*? Those are also multi-threaded libraries and their pthread calls are incompatible with those in libpthread.*, so if the program or any of the libraries it is loading are also linking (or have linked) with -ldce or -lcma, you will need to remove those libraries from the link if you are going to add -pthread.
Don't know if it will help, but those are my 2 cents.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-22-2004 01:38 AM
тАО03-22-2004 01:38 AM
Re: Alib and pthread incompatible???
Thats the problem we are using libpthread and the audio library (Alib) version that we have is using the cma threads library.
Now how do we solve the problem? We need to use the pthread library, and the audio library is linked against the DEC threads package. We need to get a pthread version of the audio library but I so far have not been able to find one. Any ideas?
Now how do we solve the problem? We need to use the pthread library, and the audio library is linked against the DEC threads package. We need to get a pthread version of the audio library but I so far have not been able to find one. Any ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-22-2004 11:09 AM
тАО03-22-2004 11:09 AM
Re: Alib and pthread incompatible???
Put patches PHSS_28547 and PHSS_28548 on your development system. You will need to require PHSS_28547 on runtime systems.
The PHSS_28547 AudioSubsystem patch includes /opt/audio/lib/libAlibkt.1 (and /opt/audio/lib/pa20_64/libAlibkt.1). The PHSS_28548 Audio DevKit patch includes the symbolic links from libAlibkt.sl names that you will need at link time. These libraries use pthread kernel threading.
The PHSS_28547 AudioSubsystem patch includes /opt/audio/lib/libAlibkt.1 (and /opt/audio/lib/pa20_64/libAlibkt.1). The PHSS_28548 Audio DevKit patch includes the symbolic links from libAlibkt.sl names that you will need at link time. These libraries use pthread kernel threading.
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