PHP Installation
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Installation

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 Codewalkers Forums Sponsor:
Dell PowerEdge Servers
  #1  
Old December 6th, 2005, 12:53 PM
burden burden is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: san diego, ca , us of a
Posts: 28 burden User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 48 m 42 sec
Reputation Power: 0
Send a message via AIM to burden Send a message via Yahoo to burden
make error

I give up. here i am. I'm attempting to recompile PHP. this time with some bells and whistles. currently the configuration is simple. --with-apxs, and --with-mysql. so now i'm attempting to attach curl and gdlib to no avail after finally getting the ./configure right

./configure
--with-apxs=/www/bin/apxs
--with-mysql=/usr/local/mysql
--with-curl
--with-jpeg
--with-png
--with-gif
--with-gd
--with-zlib-dir=/usr/lib/

Now when i run make it chugs along for awhile until finally it chokes and spits out several blocks of text like:

/usr/local/mysql/lib/mysql/libz.a(zutil.o)(.text+0x18): first defined here
/usr/local/mysql/lib/mysql/libz.a(zutil.o)(.text+0x2c): In function `zcalloc':
: multiple definition of `zcalloc'
/usr/local/mysql/lib/mysql/libz.a(zutil.o)(.text+0x2c): first defined here
/usr/local/mysql/lib/mysql/libz.a(zutil.o)(.text+0x40): In function `zcfree':
: multiple definition of `zcfree'
/usr/local/mysql/lib/mysql/libz.a(zutil.o)(.text+0x40): first defined here

Before finally giving me the generic:

collect2: ld returned 1 exit status
make: *** [libphp4.la] Error 1

Google doesn't know what's up. It looks like something to do with zlib. one of the lines is:

: multiple definition of `zlibCompileFlags'

Hopefully someone here can shed some light on what i'm doing wrong.

Reply With Quote
  #2  
Old December 6th, 2005, 02:08 PM
nawlej nawlej is offline
Moderator
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Dallas, Tx. USA
Posts: 2,008 nawlej User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 7 m 51 sec
Reputation Power: 4
RE: make error

Looks like it is finding the zlib files in the mysql installation. I wonder if you could take the zlib addition, and move it up in the list prior to the mysql definition....I think it would move it up in the search path. Its worth a shot.

Reply With Quote
  #3  
Old December 6th, 2005, 11:33 PM
burden burden is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: san diego, ca , us of a
Posts: 28 burden User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 48 m 42 sec
Reputation Power: 0
Send a message via AIM to burden Send a message via Yahoo to burden
RE: make error

Thank you Nawlej for that suggestion! unfortunately it didn't change anything. i have no issue, what-so-ever, with running ./configure that's easy. it's only when i MAKE php. that's when i get errors. I recently left it at mysql and axps (the original configuration) and still got errors. so i dunno when i broke it. last couple of lines in the errors:

main/output.lo(.text+0x76d): In function `php_ob_init_named':
/usr/local/src/php/php-4.4.1/main/output.c:426: undefined reference to `php_ob_gzhandler_check'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

So i'm assuming there's something very much broken with zlib?

i definately broke something. Forget about that configuration. lets get this bad boy installed with gd, and curl! any other cool modules i might be interested in?

Reply With Quote
  #4  
Old December 7th, 2005, 01:12 AM
nawlej nawlej is offline
Moderator
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Dallas, Tx. USA
Posts: 2,008 nawlej User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 7 m 51 sec
Reputation Power: 4
RE: make error

It appears that it cant find your library paths, or something similar like that.....

Try to run an echo $LD_LIBRARY_PATH from your command shell....You should at least have /usr/lib or /usr/local/lib in there.....

Or, set it up in ldconfig, but I dont recommend it if you are a newcomer to debugging things like this. When you install it as root, one thing you can temporarily do to the environment before you run the make is:

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib:/usr/local/lib

and then run your make.

The reason why the configure works, is that it merely builds the c source to be compiled....You are getting compiler errors because it is attempting to compile this against shared libraries that it cant find. Its actually more of a linker error than a compiler error.

Reply With Quote
  #5  
Old December 7th, 2005, 09:54 PM
burden burden is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: san diego, ca , us of a
Posts: 28 burden User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 48 m 42 sec
Reputation Power: 0
Send a message via AIM to burden Send a message via Yahoo to burden
RE: make error

bummer. I didn't get anything from echo $LD_LIBRARY_PATH so i assigned it the variable. run the config script, then hit up make... same errors. i'll give you a little bit of everything.

: multiple definition of `deflateSetDictionary'
/usr/local/mysql/lib/mysql/libz.a(deflate.o)(.text+0xfc): first defined here
/usr/local/mysql/lib/mysql/libz.a(deflate.o)(.text+0x240): In function `deflateS etHeader':

and ones like

: multiple definition of `deflateCopy'
/usr/local/mysql/lib/mysql/libz.a(deflate.o)(.text+0x16f8): first defined here
/usr/local/mysql/lib/mysql/libz.a(gzio.o)(.text+0x0): In function `gzsetparams':

i'm gonna try installing without mysql. see what happens. but what the heck. google doesn't know anything.

Reply With Quote
  #6  
Old October 5th, 2007, 11:28 AM
zizizi zizizi is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Oct 2007
Posts: 1 zizizi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 m 4 sec
Reputation Power: 0
it's been a while since the last post. although you've solved this problem after all in anyhow, i've found the way to get through this problem.

try reconfigure and recompile mysql with using the option "--with-zlib-dir=[zlib-dir]"

this problems comes out because mysql compiles with its own zlib headers.

Quote:
Originally Posted by burden
bummer. I didn't get anything from echo $LD_LIBRARY_PATH so i assigned it the variable. run the config script, then hit up make... same errors. i'll give you a little bit of everything.

: multiple definition of `deflateSetDictionary'
/usr/local/mysql/lib/mysql/libz.a(deflate.o)(.text+0xfc): first defined here
/usr/local/mysql/lib/mysql/libz.a(deflate.o)(.text+0x240): In function `deflateS etHeader':

and ones like

: multiple definition of `deflateCopy'
/usr/local/mysql/lib/mysql/libz.a(deflate.o)(.text+0x16f8): first defined here
/usr/local/mysql/lib/mysql/libz.a(gzio.o)(.text+0x0): In function `gzsetparams':

i'm gonna try installing without mysql. see what happens. but what the heck. google doesn't know anything.

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > make error


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

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

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





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