|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
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.
|
|
#3
|
|||
|
|||
|
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? |
|
#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. |
|
#5
|
|||
|
|||
|
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. |
|
#6
|
|||
|
|||
|
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:
|
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Installation > make error |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|
|