HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ld errors when compliling php
Operating System - HP-UX
1828359
Members
3136
Online
109976
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
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
04-25-2004 07:27 AM
04-25-2004 07:27 AM
ld errors when compliling php
Hello,
I'm trying to compile php with mysql and gd support, and I keep getting the following error when ld tries to link the libraries:
/usr/ccs/bin/ld: Unsatisfied symbols:
gdFreeFontCache (first referenced in ext/gd/gd.lo) (code)
collect2: ld returned 1 exit status
gmake: *** [sapi/cli/php] Error 1
Does anyone know how to fix this? Thanks.
I'm trying to compile php with mysql and gd support, and I keep getting the following error when ld tries to link the libraries:
/usr/ccs/bin/ld: Unsatisfied symbols:
gdFreeFontCache (first referenced in ext/gd/gd.lo) (code)
collect2: ld returned 1 exit status
gmake: *** [sapi/cli/php] Error 1
Does anyone know how to fix this? Thanks.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2004 02:18 AM
04-26-2004 02:18 AM
Re: ld errors when compliling php
One problem is due to the extention expected for shared libraries.
HP has thing.sl instead of thing.so.
sl: Shared Library in HP.
so: Shared Object in everything else.
Check out the make files.
--------------------------
In "configure.pl" you need to change
from $sharedLinkHead = "ld -shared";
to $sharedLinkHead = "ld -b";
Wherever $sharedLinkHead is set.
This is because ld runs different in hpux.
THEN you can run "/opt/perl/bin/perl configure.pl".
------------------------------
When I was trying to gd installed, it kept dying because it was looking for libgd stuff already. In the notes, I found you could run "$MAKE libgd.a" to build the libgd files ahead of time. Then they could be copied to where it expected libraries to be. For me is was:
# $MAKE libdg.a
# cp -p ./libgd\.* /www_test/lib/lib/.
Then "$MAKE install" would work because it found the gd library it wanted.
--------------------------------
I see you have "/usr/ccs/bin/ld" in your error message. Perhaps you have the hpux CC running before GCC? Check the PATH.
It's been awhile since I worked on compiling GD. Hope some of these half-tips help.
Steve
HP has thing.sl instead of thing.so.
sl: Shared Library in HP.
so: Shared Object in everything else.
Check out the make files.
--------------------------
In "configure.pl" you need to change
from $sharedLinkHead = "ld -shared";
to $sharedLinkHead = "ld -b";
Wherever $sharedLinkHead is set.
This is because ld runs different in hpux.
THEN you can run "/opt/perl/bin/perl configure.pl".
------------------------------
When I was trying to gd installed, it kept dying because it was looking for libgd stuff already. In the notes, I found you could run "$MAKE libgd.a" to build the libgd files ahead of time. Then they could be copied to where it expected libraries to be. For me is was:
# $MAKE libdg.a
# cp -p ./libgd\.* /www_test/lib/lib/.
Then "$MAKE install" would work because it found the gd library it wanted.
--------------------------------
I see you have "/usr/ccs/bin/ld" in your error message. Perhaps you have the hpux CC running before GCC? Check the PATH.
It's been awhile since I worked on compiling GD. Hope some of these half-tips help.
Steve
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