Hallo,
ich hänge schon recht lange an folgendem Problem.
Ich übersetzte PHP 4.4.4 bzw. PHP 4.4.7 für ein System per ./configure etc. (Keine Hinweis auf Update in Richtung php 5. Ich weiß das PHP 4 tot ist ;-)); Derzeit kein Update auf PHP5 möglich).
Die Probleme äußert sich wie folgt, dass bei dieser Stelle:
checking for Verisign Payflow Pro support... no
checking for PostgreSQL support... yes
checking for pg_config... /app/x/pgsql-7.4.14/bin/pg_config
checking for PQescapeString in -lpq... no
checking for PQunescapeBytea in -lpq... no
checking for PQsetnonblocking in -lpq... no
checking for PQcmdTuples in -lpq... no
checking for PQoidValue in -lpq... no
checking for PQclientEncoding in -lpq... no
checking for PQparameterStatus in -lpq... no
checking for PQprotocolVersion in -lpq... no
checking for PQtransactionStatus in -lpq... no
checking for PQexecParams in -lpq... no
checking for PQprepare in -lpq... no
checking for PQexecPrepared in -lpq... no
checking for PQresultErrorField in -lpq... no
checking for PQsendQueryParams in -lpq... no
checking for PQsendPrepare in -lpq... no
checking for PQsendQueryPrepared in -lpq... no
checking for PQputCopyData in -lpq... no
checking for PQputCopyEnd in -lpq... no
checking for PQgetCopyData in -lpq... no
checking for PQsetErrorVerbosity in -lpq... no
checking for pg_encoding_to_char in -lpq... yes
checking whether to enable POSIX-like functions... yes
die PostgreSQL Funktionen nicht gefunden werden.
Ich habe in der Zwischenzeit heraus gefunden, dass eine Funktion "crypt" nicht gefunden wird.
Hier ein Ausschnitt aus der config.log:
int main() {
PQsetnonblocking()
; return 0; }
configure:76623: checking for PQcmdTuples in -lpq
configure:76642: gcc -o conftest -g -O2 -Wl,-rpath,/usr/local/lib -L/usr/local/lib -L/app/x/pgsql-7.4.14/lib conftest.c -lpq -lt1 -lpng -lz -ljpeg -lbz2 -lz -lssl -lcrypto -lresolv -lm -ldl -lnsl 1>&5
/app/x/pgsql-7.4.14/lib/libpq.a(fe-auth.o)(.text+0x3ec): In function `.L31':
: undefined reference to `crypt'
collect2: ld returned 1 exit status
configure: failed program was:
#line 76631 "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 PQcmdTuples();
int main() {
PQcmdTuples()
; return 0; }
configure:76666: checking for PQoidValue in -lpq
configure:76685: gcc -o conftest -g -O2 -Wl,-rpath,/usr/local/lib -L/usr/local/lib -L/app/x/pgsql-7.4.14/lib conftest.c -lpq -lt1 -lpng -lz -ljpeg -lbz2 -lz -lssl -lcrypto -lresolv -lm -ldl -lnsl 1>&5
/app/x/pgsql-7.4.14/lib/libpq.a(fe-auth.o)(.text+0x3ec): In function `.L31':
: undefined reference to `crypt'
collect2: ld returned 1 exit status
configure: failed program was:
#line 76674 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid
Mein Problem ist jetzt zu finden, welche Lib ich aktivieren muss, damit das einwandfrei übersetzt wird....
Der "./configure"-Aufruf sieht so aus:
./configure \
--with-gd \
--with-bz2 \
--enable-bcmath \
--enable-calendar \
--enable-ftp \
--enable-sockets \
--enable-yp \
--enable-tokenizer \
--enable-sysvshm \
--enable-sysvsem \
--enable-sigchild \
--enable-zend-multibyte \
--enable-mbstring \
--enable-mbregex \
--enable-mbregex \
--with-t1lib \
--with-openssl \
--with-apxs2=/app/x/httpd-2.2.6/bin/apxs \
--enable-inline-optimization \
--with-config-file-path=/app/x/etc \
--prefix=/app/xphp-4.4.7 \
--with-pgsql=/app/x/pgsql-7.4.14 \
--enable-shared \
--enable-cli \
--with-jpeg-dir=/usr/lib \
--with-png-dir=/usr/lib \
--with-zlib-dir=/usr/lib \
--without-mysql
Hat da einer einen Hinweis....
Vielen Dank im Voraus...
MfG
Karl Heinz Marbaise
Lesezeichen