Custombuild 1.1 php update problem

pug123

Verified User
Joined
Feb 5, 2006
Messages
54
Location
Poland
Hello!

On Debian 3.1 when I want to upgrade php to latest version (4.4.8) I got problems:(

Code:
cd /usr/local/directadmin/custombuild
./build php
.....
checking for jpeg_read_header in -ljpeg... no
configure: error: Problem with libjpeg.(a|so). Please check config.log for more information.

*** There was an error while trying to configure php. Check the configure/ap1/configure.php4 file

and in config.log I see:

Code:
configure:33507: gcc -o conftest -g -O2   -Wl,-rpath,/usr/local/lib -L/usr/local
/lib conftest.c -lcurl -lz -lssl -lcrypto -lresolv -lm -ldl -lnsl  -lcurl 1>&5
configure:33639: checking for jpeg_read_header in -ljpeg
configure:33658: gcc -o conftest -g -O2  -Wl,-rpath,/usr/local/lib -L/usr/local/
lib  -Wl,-rpath,/usr/local/lib -L/usr/local/lib conftest.c -ljpeg  -lcurl -lz -l
ssl -lcrypto -lresolv -lm -ldl -lnsl  -lcurl 1>&5
/usr/lib/libc_nonshared.a(elf-init.oS)(.text.__i686.get_pc_thunk.bx+0x0): In fun
ction `__i686.get_pc_thunk.bx':
: multiple definition of `__i686.get_pc_thunk.bx'
/usr/local/lib/libjpeg.a(jdapimin.o)(.gnu.linkonce.t.__i686.get_pc_thunk.bx+0x0)
: first defined here
collect2: ld returned 1 exit status
configure: failed program was:
#line 33647 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char jpeg_read_header();

int main() {
jpeg_read_header()
; return 0; }

What might be the problem?? I changed path of libjpg library to /usr/lib but it has not helped... This is not x64 system..

FOUND SOLUTION:
I have just issued:
apt-get install gcc
and apt upgraded gcc glibc and dependencies and problem solved:)
 
Last edited:
Back
Top