- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Setuid causing runtime link errror
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
02-03-2005 08:44 PM
02-03-2005 08:44 PM
Setuid causing runtime link errror
I am building my binary with the following options:
**********************************************
/opt/aCC/bin/aCC \
\
\
\
HP-UXB.11.11_OPT.OBJ/pmdf.o \
\
\
\
-LHP-UXB.11.11_OPT.OBJ -L../../lib/imta/HP-UXB.11.11_OPT.OBJ -L../../lib
/imta-simsapi/HP-UXB.11.11_OPT.OBJ -L../../lib/imta-util/HP-UXB.11.11_OPT.OBJ -L
../../lib/pal/HP-UXB.11.11_OPT.OBJ -L../../lib/mee/HP-UXB.11.11_OPT.OBJ -L../../
lib/yasr/HP-UXB.11.11_OPT.OBJ -L../../lib/cyrus/HP-UXB.11.11_OPT.OBJ -L../../lib
/async/HP-UXB.11.11_OPT.OBJ -L../../lib/mtpcore/HP-UXB.11.11_OPT.OBJ -L../../lib
/mailwave/HP-UXB.11.11_OPT.OBJ -L../../lib/msgsrvu/HP-UXB.11.11_OPT.OBJ -L../../
lib/regexpu/HP-UXB.11.11_OPT.OBJ -L../../../external/security/HP-UXB.11.11_OPT.O
BJ/lib -L../../../external/security/HP-UXB.11.11_OPT.OBJ/lib/ -L../../../externa
l/icu/HP-UXB.11.11_OPT.OBJ/lib/ -L../../../external/sasl/HP-UXB.11.11_OPT.OBJ/li
b/ -L../../../external/ldap/HP-UXB.11.11_OPT.OBJ/lib/ -L../../../external/admins
dk/HP-UXB.11.11_OPT.OBJ/lib/ -L../../../external/db/HP-UXB.11.11_OPT.OBJ/lib \
-limta -lmsgsrvu -lmailwave -lcyrus -lasock -lmee -lyasr -lasync -ladmin
util53 -lsi18n -lmtpcore -ldb-4.2 -licui18n -licuuc -licudata -lregexpu -lsasl -
lnss3 -lssl3 -lsoftokn3 -lnspr4 -lplc4 -lplds4 -lldap50 -lssldap50 -lprldap50 \^
M
\
-AA -Wl,-a,shared_archive -Wl,+b,\$ORIGIN/../lib:.:../lib:/usr/lib:/lib
\
\
\
\
-lsec -lrt \
\
-ladminutil53 -lsi18n \
\
-o HP-UXB.11.11_OPT.OBJ/imtacli
========================================
/opt/aCC/bin/aCC \
\
\
\
HP-UXB.11.11_OPT.OBJ/improgram.o \
\
\
\
-LHP-UXB.11.11_OPT.OBJ -L../../lib/imta/HP-UXB.11.11_OPT.OBJ -L../../lib
/imta-simsapi/HP-UXB.11.11_OPT.OBJ -L../../lib/imta-util/HP-UXB.11.11_OPT.OBJ -L
../../lib/pal/HP-UXB.11.11_OPT.OBJ -L../../lib/mee/HP-UXB.11.11_OPT.OBJ -L../../
lib/yasr/HP-UXB.11.11_OPT.OBJ -L../../lib/cyrus/HP-UXB.11.11_OPT.OBJ -L../../lib
/async/HP-UXB.11.11_OPT.OBJ -L../../lib/mtpcore/HP-UXB.11.11_OPT.OBJ -L../../lib
/mailwave/HP-UXB.11.11_OPT.OBJ -L../../lib/msgsrvu/HP-UXB.11.11_OPT.OBJ -L../../
lib/regexpu/HP-UXB.11.11_OPT.OBJ -L../../../external/security/HP-UXB.11.11_OPT.O
BJ/lib -L../../../external/security/HP-UXB.11.11_OPT.OBJ/lib/ -L../../../externa
l/icu/HP-UXB.11.11_OPT.OBJ/lib/ -L../../../external/sasl/HP-UXB.11.11_OPT.OBJ/li
b/ -L../../../external/ldap/HP-UXB.11.11_OPT.OBJ/lib/ -L../../../external/admins
dk/HP-UXB.11.11_OPT.OBJ/lib/ -L../../../external/db/HP-UXB.11.11_OPT.OBJ/lib \
-limtautil -limsdk -lpal -limta -lmsgsrvu -lmailwave -lcyrus -lasock -lm
ee -lyasr -lasync -ladminutil53 -lsi18n -lmtpcore -ldb-4.2 -licui18n -licuuc -li
cudata -lregexpu -lsasl -lnss3 -lssl3 -lsoftokn3 -lnspr4 -lplc4 -lplds4 -lldap50
-lssldap\-lprldap50 \
-AA -Wl,-a,shared_archive -Wl,+b,\$ORIGIN/../lib:.:../lib:/usr/lib:/lib
\
\
\
\
-lsec -lrt \
\
\
\
-o HP-UXB.11.11_OPT.OBJ/imtaProgram
**********************************************
Now when I run the binary I get this error:
# ./imtacli program
/usr/lib/dld.sl: Can't find path for shared library: libprldap50.sl
/usr/lib/dld.sl: No such file or directory
ABORT instruction (core dumped)
Note: here program is an argument
When I run my program using truss I get to see that it is due to SETUID(). I have attached the logs for the truss session.
Can anybody tell me how I need to attack this issue.
Thanks
Vineesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2005 09:00 PM
02-03-2005 09:00 PM
Re: Setuid causing runtime link errror
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=542528
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2005 09:30 PM
02-03-2005 09:30 PM
Re: Setuid causing runtime link errror
Thank you for the response.
I understand that SHLIB_PATH will be ignored. But why does my $ORIGIN is getting ignored? When I specify it to take from my directory(mentioned using Wl,+b,\$ORIGIN/../lib:.:../lib:/usr/lib:/lib) why is this getting ignored?
Any pointers?
thanks
vineesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2005 09:31 PM
02-03-2005 09:31 PM
Re: Setuid causing runtime link errror
# chatr +s enable binary name
make sure that the environment variable SHLIB_PATH is set and exported in your shell. It should include the path to where the library libprldap50.sl exists.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2005 09:38 PM
02-03-2005 09:38 PM
Re: Setuid causing runtime link errror
Thank you for your response.
But I don't want to enable the SHLIB_PATH. I want it to always take from my directory( $ORIGIN/../lib:.:../lib)
Is there any way to take from the specified path without enabling SHLIB_PATH?
thanks
vineesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2005 09:53 PM
02-03-2005 09:53 PM
Re: Setuid causing runtime link errror
I suspect your binary has a relative path set for the library, whereas (if you intend to run the binary from outside its own directory) you need an absolute path.