- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: gcc can't find system shared libraries
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
12-11-2003 11:20 AM
12-11-2003 11:20 AM
gcc -o poppassd poppassd_pam.o -lpam
/opt/pa20_64/bin/../lib/gcc-lib/hppa64-hp-hpux11.11/3.3.1/../../../../hppa64-hp-
hpux11.11/bin/ld: cannot find -lpam
collect2: ld returned 1 exit status
*** Error exit code 1
I have verified that libpam.sl exsists in the /lib directory. So, I put a symbolic link to it in the /opt/pa20_64/lib directory and then it complains that it is an invalid file format:
gcc -o poppassd poppassd_pam.o -lpam
/opt/pa20_64/bin/../lib/gcc-lib/hppa64-hp-hpux11.11/3.3.1/../../../libpam.sl: fi
le not recognized: File format not recognized
collect2: ld returned 1 exit status
How can I get GCC to recognize and use the libraries in the /lib directory? Below is the configuration of the GCC:
eading specs from /opt/pa20_64/bin/../lib/gcc-lib/hppa64-hp-hpux11.11/3.3.1/spe
cs
Configured with: ../src/configure --enable-languages=c,c++ --prefix=/usr/local/p
a20_64 --with-local-prefix=/usr/local/pa20_64 --with-gnu-as --with-as=/usr/local
/pa20_64/bin/as --with-gnu-ld --with-ld=/usr/local/pa20_64/bin/ld --disable-shar
ed --disable-nls --host=hppa64-hp-hpux11.11
Thread model: single
gcc version 3.3.1
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2003 11:22 AM
12-11-2003 11:22 AM
Re: gcc can't find system shared libraries
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2003 11:53 AM
12-11-2003 11:53 AM
Re: gcc can't find system shared libraries
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2003 12:09 PM
12-11-2003 12:09 PM
Re: gcc can't find system shared libraries
Thanks,
Ken
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2003 12:21 PM
12-11-2003 12:21 PM
Re: gcc can't find system shared libraries
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2003 06:07 PM
12-11-2003 06:07 PM
SolutionYes you can install them next to eachother, which it does by default: /usr/local/pa20_64 for the 64bit environment, and /usr/local/pa20_32 for the 32bit environment. It *needs* those path's. You can install them anywhere you want, but then you will have to symlink those other flders to be available from /usr/local
When calling either be sure to have the $PATH have the wanted arch in front. I've made it easier for you by making the 64bit GNU gcc available as gcc64, so you can add both pa20_32 and pa20_64 in your $PATH (in that order) and still use both at the same time.
Enjoy, Have FUN! H.Merijn