GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- HPE BladeSystem
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- sem_open(), -lrt and creating a library
Operating System - Tru64 Unix
1866346
Members
1076
Online
110493
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
- Integrity Servers
- Server Clustering
- HPE NonStop Compute
- HPE Apollo Systems
- High Performance Computing
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp Software
Knowledge Base
Discussions
Forums
Discussions
back
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
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
10-30-2006 09:24 PM
10-30-2006 09:24 PM
sem_open(), -lrt and creating a library
We are using sem_open().
Linking libraries by specifying -lrt on the compiler.
Creating a library as below:
ar cr $libdir/liboscfe.a `cat fe.libs.$$ com.libs.$$`
ranlib $libdir/liboscfe.a
Using this library in a compilation similar to the following:
aCC -D_REENTRANT -mt -g0 +DA2.0W +DS2.0 +Z -I/rr/h -Wl,+s /rr/lib//liboscfe.a -Wl,-a,default -lpthread -lm -o /rr/dbg//bin/sch2db
Getting errors given below:
......
ld: Unsatisfied symbol "sem_open" in file /rr/lib//liboscfe.a[vsllcr.o]
ld: Unsatisfied symbol "sem_close" in file /rr/lib//liboscfe.a[vsllcr.o]
ld: Unsatisfied symbol "sem_post" in file /rr/lib//liboscfe.a[vsllcr.o]
ld: Unsatisfied symbol "sem_wait" in file /rr/lib//liboscfe.a[vsllcr.o]
4 errors.
Could anybody please help?
Thanks!
Linking libraries by specifying -lrt on the compiler.
Creating a library as below:
ar cr $libdir/liboscfe.a `cat fe.libs.$$ com.libs.$$`
ranlib $libdir/liboscfe.a
Using this library in a compilation similar to the following:
aCC -D_REENTRANT -mt -g0 +DA2.0W +DS2.0 +Z -I/rr/h -Wl,+s /rr/lib//liboscfe.a -Wl,-a,default -lpthread -lm -o /rr/dbg//bin/sch2db
Getting errors given below:
......
ld: Unsatisfied symbol "sem_open" in file /rr/lib//liboscfe.a[vsllcr.o]
ld: Unsatisfied symbol "sem_close" in file /rr/lib//liboscfe.a[vsllcr.o]
ld: Unsatisfied symbol "sem_post" in file /rr/lib//liboscfe.a[vsllcr.o]
ld: Unsatisfied symbol "sem_wait" in file /rr/lib//liboscfe.a[vsllcr.o]
4 errors.
Could anybody please help?
Thanks!
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2006 01:03 AM
10-31-2006 01:03 AM
Re: sem_open(), -lrt and creating a library
1. "aCC" looks like an HP-UX C compiler, and
you're in a Tru64 forum.
2. You _say_ you're "specifying -lrt", but I
don't see it in your compile/link command.
Where, exactly, _did_ you say "-lrt"? ("-l"
is an "ld" option, so it affects a link, not
a compilation.)
you're in a Tru64 forum.
2. You _say_ you're "specifying -lrt", but I
don't see it in your compile/link command.
Where, exactly, _did_ you say "-lrt"? ("-l"
is an "ld" option, so it affects a link, not
a compilation.)
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 2026 Hewlett Packard Enterprise Development LP