Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old February 20th, 2001, 05:52 PM
Eric Anderson Eric Anderson is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Posts: 11 Eric Anderson User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi,

I'm trying to install PHP on my Redhat 6.2 box. I've built PHP statically w/ MySQL, and SSL, and everything went just fine.

I'm configuring Apache to include the php4 module. I'm running Apache 1.3.17. I'm trying to use the old non-APACI config/installation tool. The ./Configure step goes just fine but when I run make I get the following error halfway through:

/usr/local/mysql/lib/libmysqlclient.a(my_compress.o): In function `my_uncompress':
my_compress.o(.text+0x9a): undefined reference to `uncompress'
/usr/local/mysql/lib/libmysqlclient.a(my_compress.o): In function `my_compress_alloc':
my_compress.o(.text+0x12a): undefined reference to `compress'
collect2: ld returned 1 exit status
make: *** [target_static] Error 1

And it exits. At first I thought it was an ld problem. I have ld 2.9.5, and I haven't been able to find a newer one. I'm using MySQL 3.23.33 (the latest) and I installed it using the RPMs. It's working fine.

I can't even tell if this is an ld problem, a MySQL problem, a PHP problem or an apache problem. Any thoughts????

please don't email me and tell me to install through apxs or to use APACI, those failed as well. The last time I built a box with php4 this combo worked i.e. static PHP4 build and non-APACI httpd update.

Again, I'm stumped.

thanks for any help,
Eric

Reply With Quote
  #2  
Old February 20th, 2001, 10:04 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Start here -> http://forums.devshed.com/showthread.php?threadid=7564 and don't cross-post next time.

Reply With Quote
  #3  
Old April 9th, 2001, 12:41 AM
syin syin is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 13 syin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
/usr/local/mysql/lib/libmysqlclient.a(my_compress.o): In function `my_uncompress':
my_compress.o(.text+0x9a): undefined reference to `uncompress'
/usr/local/mysql/lib/libmysqlclient.a(my_compress.o): In function `my_compress_alloc':
my_compress.o(.text+0x12a): undefined reference to `compress'
collect2: ld returned 1 exit status
make: *** [target_static] Error 1
-----------------------
I am having the exact problem Eric had. The difference between our cases is that I have Apache 1.3.19 and mySQL 3.23.36 instead. I followed the link freebsd gave, but I really don't understand what to do.

I am not sure what xho meant to add "-lz", but I changed the PHP Makefile so that the LTLIBRARY_LDFLAGS line looks like:

LTLIBRARY_LDFLAGS = -lz -rpath $(phptempdir) ....

I only added the "-lz" in front. I re-made PHP, then try to re-make Apache but got the same error.

Sorry I don't know what I am doing here but could someone please tell me what I am doing wrong?

Thanks in advance.

Reply With Quote
  #4  
Old April 9th, 2001, 01:18 AM
syin syin is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 13 syin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Smile

Ok I kinda got it working, at least the Apache "make" works now (my original problem).

I found this:
http://www.php.net/bugs.php?id=7247

I "make clean" everything, then started with PHP again.

1) I ran the PHP "./configure" with "--with-zlib",
2)"make" and "make install" PHP,
3)"make" Apache, the problem didn't appear again.

Last edited by syin : April 9th, 2001 at 01:21 AM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > ld problem in Apache build w/ PHP


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway