PHP Fehlermeldung nach make

Apache, Lighttpd, nginx, Cherokee
gfxclub
Posts: 4
Joined: 2007-01-05 20:02
Location: Hamburg
 

PHP Fehlermeldung nach make

Post by gfxclub »

Ich wollte gerade PHP Kompelieren klappt auch alles gut ohne Meckern :)

Meine configure:

Code: Select all

./configure --prefix=/usr/local/php4 --enable-force-cgi-redirect --enable-safe-mode --enable-magic-quotes --with-openssl --with-zlib --enable-bcmath --with-bz2 --enable-calendar --enable-dba --with-gdbm --with-db4 --with-cdb --with-inifile --with-flatfile --enable-dbase --enable-dbx --with-dom --enable-exif --enable-ftp --with-gd --enable-gd-native-ttf --with-gettext --with-gmp --with-iconv --with-imap --with-imap-ssl --with-ldap --enable-mbstring --with-mcrypt --with-mhash --with-mime-magic --with-mysql=/usr --enable-shmop --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-wddx --with-zip --enable-memory-limit --with-freetype-dir --with-jpeg-dir --with-openssl-dir --with-png-dir --with-zlib-dir --without-imap --with-mysql
schnell noch ein... make :wink:

Code: Select all

zend_ini.lo Zend/zend_qsort.lo Zend/zend_multibyte.lo Zend/zend_strtod.lo Zend/zend_execute.lo sapi/cgi/cgi_main.lo sapi/cgi/getopt.lo main/internal_functions.lo -lcrypt -lzzip -lcrypt -lmhash -lmcrypt -lltdl -lldap -llber -lgmp -lfreetype -lpng -lz -ljpeg -lz -ldb-4.2 -ldb-4.2 -lgdbm -lbz2 -lz -lssl -lcrypto -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lcrypt -lcrypt  -o sapi/cgi/php
/usr/lib/libjpeg.so: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make: *** [sapi/cgi/php] Error 1
Habe ein wenig gegoogelt auch viel gefunden nur leider wenig was mir Hilft...

Hat vielleicht hier jemand Ahnung was es sein könnte?

Aja:
Debian 3.1
Apache2
PHP 4.4.4
flo
Posts: 2223
Joined: 2002-07-28 13:02
Location: Berlin
 

Re: PHP Fehlermeldung nach make

Post by flo »

libjpeg-dev fehlt wohl - und wahrscheinlich auch der ganze andere Kram.
gfxclub
Posts: 4
Joined: 2007-01-05 20:02
Location: Hamburg
 

Re: PHP Fehlermeldung nach make

Post by gfxclub »

libjpeg62-dev is already the newest version.

leider alle dev Pakete die er braucht Installiert...
flo
Posts: 2223
Joined: 2002-07-28 13:02
Location: Berlin
 

Re: PHP Fehlermeldung nach make

Post by flo »

Debian 3.1, aus dem configure von PHP5:

Code: Select all

        --enable-gd 
        --enable-gd-native-ttf 
        --with-tiff-dir=/usr/lib 
        --with-jpeg-dir=/usr/lib 
        --with-png-dir=/usr/lib 
gfxclub
Posts: 4
Joined: 2007-01-05 20:02
Location: Hamburg
 

Re: PHP Fehlermeldung nach make

Post by gfxclub »

Hilft leider nicht viel weiter kommt schon wieder eine Fehler Meldung...

Code: Select all

sapi/cgi/cgi_main.o(.text+0x146f):/root/php-4.4.4/sapi/cgi/cgi_main.c:1501: undefined reference to `core_globals'
sapi/cgi/cgi_main.o(.text+0x1494):/root/php-4.4.4/sapi/cgi/cgi_main.c:1475: undefined reference to `sapi_globals'
sapi/cgi/cgi_main.o(.text+0x149f):/root/php-4.4.4/sapi/cgi/cgi_main.c:1476: undefined reference to `sapi_globals'
sapi/cgi/cgi_main.o(.text+0x14b4):/root/php-4.4.4/sapi/cgi/cgi_main.c:1478: undefined reference to `sapi_globals'
sapi/cgi/cgi_main.o(.text+0x14d0):/root/php-4.4.4/sapi/cgi/cgi_main.c:1341: undefined reference to `sapi_globals'
sapi/cgi/cgi_main.o(.text+0x154f):/root/php-4.4.4/sapi/cgi/cgi_main.c:1117: undefined reference to `sapi_globals'
collect2: ld returned 1 exit status
make: *** [sapi/cgi/php] Error 1
config.log

Code: Select all

configure:101144: checking for objdir
configure:101175: checking for gcc option to produce PIC
configure:101323: checking if gcc PIC flag            -fPIC works
configure:101393: checking if gcc static flag -static works
configure:101439: checking if gcc supports -c -o file.o
configure:101487: checking if gcc supports -c -o file.lo
configure:101563: checking if gcc supports -fno-rtti -fno-exceptions
configure:101576: gcc -c -g -O2 -fno-rtti -fno-exceptions -c conftest.c  conftest.c 1>&5
cc1: warning: "-fno-rtti" is valid for C++ but not for C/ObjC
cc1: warning: "-fno-rtti" is valid for C++ but not for C/ObjC
configure:101607: checking whether the linker (/usr/bin/ld) supports shared libraries
configure:102298: checking how to hardcode library paths into programs
configure:102330: checking whether stripping libraries is possible
configure:102348: checking dynamic linker characteristics
configure:102608: gcc -c -g -O2  conftest.c 1>&5
configure:102783: checking if libtool supports shared libraries
configure:102791: checking whether to build shared libraries
configure:102818: checking whether to build static libraries
flo
Posts: 2223
Joined: 2002-07-28 13:02
Location: Berlin
 

Re: PHP Fehlermeldung nach make

Post by flo »

Darf ich mal dezent anfragen, wo Du diesen Configure-String her hast - der sieht aus wie ein Auszug aus einer Binärdistri!? Ich weiß nicht, wie oft das Thema schon kam - aber eine 1:1-Übernahme dieses Strings wird nicht funktionieren, da dieser auf einem Build-Host gemacht worden ist, der sich evtl. von Deinem System komplett unterscheidet.

Wenn Du PHP noch nie kompiliert hast, nimm entweder das Debian-Paket oder einen Backport oder baue Dein PHP mit den wirklich benötigten Funktionen auf.

flo.
gfxclub
Posts: 4
Joined: 2007-01-05 20:02
Location: Hamburg
 

Re: PHP Fehlermeldung nach make

Post by gfxclub »

Okay ich habe das ganze noch mal über dacht und folgender Configure-String sollte nur das drinnen haben was ich auch wirklich brauche:

Code: Select all

./configure --prefix=/usr/share/php4 --datadir=/usr/share/php4 --bindir=/usr/bin/php4 --libdir=/usr/share/php4 --with-config-file-path=/etc/php4 --with-exec-dir=/usr/lib/php4/bin --enable-memory-limit --enable-force-cgi-redirect --enable-track-vars --with-mysql=/usr --without-pear --enable-session --without-sqlite --enable-exif --enable-magic-quotes --with-openssl --with-zlib --enable-dba --with-db4 --with-gd --enable-gd-native-ttf --with-tiff-dir=/usr/lib --with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib --without-imap --enable-mbstring --with-mcrypt --with-mhash
Nun erhalte ich aber wieder die erste Fehler Meldung:

make

Code: Select all

o Zend/zend_qsort.lo Zend/zend_multibyte.lo Zend/zend_strtod.lo Zend/zend_execute.lo sapi/cgi/cgi_main.lo sapi/cgi/getopt.lo main/internal_functions.lo -lcrypt -lcrypt -lmysqlclient -lmhash -lmcrypt -lltdl -lpng -lz -ljpeg -ldb-4.2 -ldb-4.2 -lz -lssl -lcrypto -lresolv -lm -ldl -lnsl -lcrypt -lcrypt  -o sapi/cgi/php
/usr/lib/libjpeg.so: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make: *** [sapi/cgi/php] Error 1
config.log

Code: Select all

configure:100899: checking for strip
configure:101144: checking for objdir
configure:101175: checking for gcc option to produce PIC
configure:101323: checking if gcc PIC flag                   -fPIC works
configure:101393: checking if gcc static flag -static works
configure:101439: checking if gcc supports -c -o file.o
configure:101487: checking if gcc supports -c -o file.lo
configure:101563: checking if gcc supports -fno-rtti -fno-exceptions
configure:101576: gcc -c -g -O2 -fno-rtti -fno-exceptions -c conftest.c  conftest.c 1>&5
cc1: warning: "-fno-rtti" is valid for C++ but not for C/ObjC
cc1: warning: "-fno-rtti" is valid for C++ but not for C/ObjC
configure:101607: checking whether the linker (/usr/bin/ld) supports shared libraries
configure:102298: checking how to hardcode library paths into programs
configure:102330: checking whether stripping libraries is possible
configure:102348: checking dynamic linker characteristics
configure:102608: gcc -c -g -O2  conftest.c 1>&5
configure:102783: checking if libtool supports shared libraries
configure:102791: checking whether to build shared libraries
configure:102818: checking whether to build static libraries
apt-get sagt mir libjpeg62-dev is already the newest version...
User avatar
Joe User
Project Manager
Project Manager
Posts: 11183
Joined: 2003-02-27 01:00
Location: Hamburg
 

Re: PHP Fehlermeldung nach make

Post by Joe User »

libjpeg[-dev] downgraden oder neu bauen oder einen Bugreport verfassen (sofern noch nicht vorhanden)...
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
flo
Posts: 2223
Joined: 2002-07-28 13:02
Location: Berlin
 

Re: PHP Fehlermeldung nach make

Post by flo »

Code: Select all

./configure 
        --enable-track-vars 
        --enable-versioning 
        --enable-sysvshm 
        --enable-sysvsem 
        --enable-sysvmsg 
        --enable-sockets 
        --enable-ftp 
        --enable-cli 
        --enable-sigchild 
        --without-pear --enable-session --without-sqlite --enable-exif --enable-magic-quotes 
        --enable-force-cgi-redirect --enable-track-vars --enable-memory-limit  --enable-dba  
        --with-mysql-sock=/tmp/mysql.sock 
        --with-mysql=/usr/local/mysql5 
        --with-tiff-dir=/usr/lib 
        --with-jpeg-dir=/usr/lib 
        --with-png-dir=/usr/lib 
        --with-freetype 
        --with-openssl 
        --with-gd 
        --with-gettext 
        --with-t1lib=/usr/lib 
        --with-freetype-dir 
        --with-xml=/usr 
        --with-libexpat-dir=/usr 
        --with-libxml-dir=/usr 
        --with-dom 
        --with-curl=/usr/local 
        --enable-gd 
        --enable-gd-native-ttf 
        --with-zlib-dir=/usr/local 
        --disable-ipv6 
        --disable-debug 
        --with-apxs2=/usr/local/apache2/bin/apxs 
        --with-config-file-path=/usr/local/conf 
        --prefix=/usr/local 
        --sysconfdir=/etc
minimal angepasste config von php5 - php4.4.4 läuft durch und das Binary gibt brav seine config-Info aus.

Xslt, OCI, Cyrus, IMAP habe ich für php4 rausgenommen, mcrypt, db4, mhash laufen bei mir ncht, weil ich keine Sachen nachinstallieren wollte. System: Ubuntu LTS, den String schleppe ich aber seit Woody mit, wobei ich bei Woody noch Sachen nachinstallieren musste, unter Sarge läuft der auch ...

flo.