HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Can't find library: "dl"
Operating System - HP-UX
1827491
Members
2373
Online
109965
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
08-11-2005 04:10 AM
08-11-2005 04:10 AM
I'm trying to compile GhostPCL on my server running HP-UX 11.11. I have install GNU Make 3.80, GCC 3.4.3, gettext 0.14.1, libiconv 1.9.2, and X11 development kit (B3394BA). I finally got rid on all errors except for one:
/usr/ccs/bin/ld: Can't find library: "dl"
collect2: ld returned 1 exit status
gmake: *** [obj/pcl6] Error 1
gmake: Leaving directory `/opt/ghostpcl_1.41/main'
*** Error exit code 2
Stop.
If I change the make file from
STDLIBS=-lm -lpthread -ldl
to
STDLIBS=-lm -lpthread
It will compile without any errors. Where can I find and/or get the dl library?
Thank you.
/usr/ccs/bin/ld: Can't find library: "dl"
collect2: ld returned 1 exit status
gmake: *** [obj/pcl6] Error 1
gmake: Leaving directory `/opt/ghostpcl_1.41/main'
*** Error exit code 2
Stop.
If I change the make file from
STDLIBS=-lm -lpthread -ldl
to
STDLIBS=-lm -lpthread
It will compile without any errors. Where can I find and/or get the dl library?
Thank you.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2005 04:13 PM
08-11-2005 04:13 PM
Solution
libdl (dynamic loader API library) is available for 64-bit builds and it can be found in /usr/lib/pa20_64 directory.
-r-xr-xr-x 1 bin bin 15048 Jan 27 2005 libdl.1
lrwxr-xr-x 1 root sys 9 Apr 18 2002 libdl.sl -> ./libdl.1
lrwxr-xr-x 1 root sys 9 Apr 18 2002 libdld.1 -> ./libdl.1
lrwxr-xr-x 1 root sys 10 Apr 18 2002 libdld.sl -> ./libdld.1
As you can see libdld.1 is symbolic link to libdl.1.
libdl is usually linked when dlopen() and friends are required. These functions are also found in 32-bit libdld.
libdl (for 64-bit builds) or libdld (for 32-bit builds) is automatically linked with every binary so I don't think you need to do anything.
-r-xr-xr-x 1 bin bin 15048 Jan 27 2005 libdl.1
lrwxr-xr-x 1 root sys 9 Apr 18 2002 libdl.sl -> ./libdl.1
lrwxr-xr-x 1 root sys 9 Apr 18 2002 libdld.1 -> ./libdl.1
lrwxr-xr-x 1 root sys 10 Apr 18 2002 libdld.sl -> ./libdld.1
As you can see libdld.1 is symbolic link to libdl.1.
libdl is usually linked when dlopen() and friends are required. These functions are also found in 32-bit libdld.
libdl (for 64-bit builds) or libdld (for 32-bit builds) is automatically linked with every binary so I don't think you need to do anything.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2005 05:02 PM
08-11-2005 05:02 PM
Re: Can't find library: "dl"
If somehow that path is not in your makefile:
Append it either by -L or in LD_LIBRARY_PATH
Append it either by -L or in LD_LIBRARY_PATH
Vibhor Kumar Agarwal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2005 02:12 AM
08-12-2005 02:12 AM
Re: Can't find library: "dl"
That did it.
Thanks.
Thanks.
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
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP