Solved

Using Named Semaphores in HP-UX 10.20 - How?

Posted on 2000-05-09
3
329 Views
Last Modified: 2013-12-26
I'm adding the use of a named semaphore to an old project I have running under HP-UX-10.20. The project compiles and links fine (plain-ole HP-C compiler), but at runtime I get an error that the function sem_open is not available. Is there something else I need to do? We're running the Korn Shell. Could this be the problem?
0
Comment
Question by:maknight
  • 2
3 Comments
 
LVL 3

Expert Comment

by:ufolk123
ID: 2796115
Can you post the exact lines which appears during run time.Also what options you are using while compilation ?
0
 
LVL 3

Expert Comment

by:ufolk123
ID: 2824382
ping ping
0
 
LVL 2

Accepted Solution

by:
hpcJerry earned 50 total points
ID: 2929841
Did you check for a man page for sem_open() on the machine?  I've only got 11.0 boxes around here, but I'm fairly sure that the POSIX semaphores were not formerly supported until 10.30 (which was very limited release, so really not until 11.0).

See the 10.30 release notes at:
http://www.software.hp.com/STK/partner/relnotes/10.30/10_30RelNotes.txt

You may also find that POSIX semaphores are actually part of the POSIX Real-Time specification, under 11.0 they are not in libc, but rather librt.  Try linking with -lrt as a last resort.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Pressing cancel button with C# UI Automation 3 70
sum67 challenge 35 99
abstract class with all non abstract mentods 6 76
sumHeights2  challenge 7 105
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question