Problem mit php4-pgsql

onegroup

Well-Known Member
Hallo, ich wollte postgresql installieren um es mit PHP zu nutzen.

Die DB 7.3.7 oder 7.4.5 wird auch installiert.

Nur PHP spielt nicht mit. Bei der Installation kommt folgender Fehler.


cc -I. -I/usr/ports/databases/php4-pgsql/work/php-4.3.8/ext/pgsql -DPHP_ATOM_INC -I/usr/ports/databases/php4-pgsql/work/php-4.3.8/ext/pgsql/include -I/usr/ports/databases/php4-pgsql/work/php-4.3.8/ext/pgsql/main -I/usr/ports/databases/php4-pgsql/work/php-4.3.8/ext/pgsql -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/Zend -I/usr/local/include/php/TSRM -I/usr/local/include -DHAVE_CONFIG_H -O -pipe -prefer-pic -c /usr/ports/databases/php4-pgsql/work/php-4.3.8/ext/pgsql/pgsql.c -fPIC -DPIC -o .libs/pgsql.lo
cc: unrecognized option `-prefer-pic'
/usr/ports/databases/php4-pgsql/work/php-4.3.8/ext/pgsql/pgsql.c:383: `OnUpdateInt' undeclared here (not in a function)
/usr/ports/databases/php4-pgsql/work/php-4.3.8/ext/pgsql/pgsql.c:383: initializer element is not constant
/usr/ports/databases/php4-pgsql/work/php-4.3.8/ext/pgsql/pgsql.c:383: (near initialization for `ini_entries[1].on_modify')
/usr/ports/databases/php4-pgsql/work/php-4.3.8/ext/pgsql/pgsql.c:384: `OnUpdateInt' undeclared here (not in a function)
/usr/ports/databases/php4-pgsql/work/php-4.3.8/ext/pgsql/pgsql.c:384: initializer element is not constant
/usr/ports/databases/php4-pgsql/work/php-4.3.8/ext/pgsql/pgsql.c:384: (near initialization for `ini_entries[2].on_modify')
*** Error code 1

Stop in /usr/ports/databases/php4-pgsql/work/php-4.3.8/ext/pgsql.
*** Error code 1

Stop in /usr/ports/databases/php4-pgsql.
*** Error code 1

Stop in /usr/ports/databases/php4-pgsql.




Was kann das sein?

Gruß

steffen
 
Hi!
Den Fehler kenn ich leider nicht.
Aber versuch mal die PHP extensions zu installieren. Dort wählst du einfach PostgreSQL 7.4.X aus und es sollte problemlos funktionieren.

mfg
 
mike schrieb:
Hi!
Den Fehler kenn ich leider nicht.
Aber versuch mal die PHP extensions zu installieren. Dort wählst du einfach PostgreSQL 7.4.X aus und es sollte problemlos funktionieren.

mfg


Geht leider nicht. Hab ich irgendwelche Abhängigkeiten vergessen?


===> php4-extensions-1.0 depends on file: /usr/local/lib/php/20020429/pgsql.so - not found
===> Verifying reinstall for /usr/local/lib/php/20020429/pgsql.so in /usr/ports/databases/php4-pgsql
===> Extracting for php4-pgsql-4.3.8_2
>> Checksum OK for php-4.3.8.tar.bz2.
===> Patching for php4-pgsql-4.3.8_2
===> php4-pgsql-4.3.8_2 depends on executable: phpize - found
===> php4-pgsql-4.3.8_2 depends on file: /usr/local/bin/automake15 - found
===> php4-pgsql-4.3.8_2 depends on file: /usr/local/bin/autoconf253 - found
===> php4-pgsql-4.3.8_2 depends on file: /usr/local/bin/libtool13 - found
===> php4-pgsql-4.3.8_2 depends on shared library: pq.3 - found
===> PHPizing for php4-pgsql-4.3.8_2
Configuring for:
PHP Api Version: 20031224
Zend Module Api No: 20040412
Zend Extension Api No: 220040412
autoheader253: `config.h.in' is created
===> Configuring for php4-pgsql-4.3.8_2
configure: WARNING: you should use --build, --host, --target
checking build system type... i386-portbld-freebsd4.9
checking host system type... i386-portbld-freebsd4.9
checking for i386-portbld-freebsd4.9-gcc... cc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking whether cc understands -c and -o together... yes
checking if compiler supports -R... yes
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/Zend -I/usr/local/include/php/TSRM
checking for PHP extension directory... /usr/local/lib/php/20040412
checking for re2c... exit 0;
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking for PostgreSQL support... yes, shared
checking for PQescapeString in -lpq... yes
checking for PQsetnonblocking in -lpq... yes
checking for PQcmdTuples in -lpq... yes
checking for PQoidValue in -lpq... yes
checking for PQclientEncoding in -lpq... yes
checking for pg_encoding_to_char in -lpq... yes
checking for i386-portbld-freebsd4.9-ranlib... no
checking for ranlib... ranlib
checking for ld used by GCC... /usr/libexec/elf/ld
checking if the linker (/usr/libexec/elf/ld) is GNU ld... yes
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
loading cache /dev/null within ltconfig
checking for object suffix... o
checking for executable suffix... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.lo... yes
checking if cc supports -fno-rtti -fno-exceptions ... yes
checking if cc static flag -static works... -static
checking if the linker (/usr/libexec/elf/ld) is GNU ld... yes
checking whether the linker (/usr/libexec/elf/ld) supports shared libraries... yes
checking command to parse /usr/bin/nm -B output... ok
checking how to hardcode library paths into programs... immediate
checking for /usr/libexec/elf/ld option to reload object files... -r
checking dynamic linker characteristics... freebsd4.9 ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for objdir... .libs
creating libtool
updating cache /dev/null
configure: creating ./config.status
config.status: creating config.h
===> Building for php4-pgsql-4.3.8_2
/bin/sh /usr/local/bin/libtool13 --mode=compile cc -I. -I/usr/ports/databases/php4-pgsql/work/php-4.3.8/ext/pgsql -DPHP_ATOM_INC -I/usr/ports/databases/php4-pgsql/work/php-4.3.8/ext/pgsql/include -I/usr/ports/databases/php4-pgsql/work/php-4.3.8/ext/pgsql/main -I/usr/ports/databases/php4-pgsql/work/php-4.3.8/ext/pgsql -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/Zend -I/usr/local/include/php/TSRM -I/usr/local/include -DHAVE_CONFIG_H -O -pipe -prefer-pic -c /usr/ports/databases/php4-pgsql/work/php-4.3.8/ext/pgsql/pgsql.c -o pgsql.lo
mkdir .libs
cc -I. -I/usr/ports/databases/php4-pgsql/work/php-4.3.8/ext/pgsql -DPHP_ATOM_INC -I/usr/ports/databases/php4-pgsql/work/php-4.3.8/ext/pgsql/include -I/usr/ports/databases/php4-pgsql/work/php-4.3.8/ext/pgsql/main -I/usr/ports/databases/php4-pgsql/work/php-4.3.8/ext/pgsql -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/Zend -I/usr/local/include/php/TSRM -I/usr/local/include -DHAVE_CONFIG_H -O -pipe -prefer-pic -c /usr/ports/databases/php4-pgsql/work/php-4.3.8/ext/pgsql/pgsql.c -fPIC -DPIC -o .libs/pgsql.lo
cc: unrecognized option `-prefer-pic'
/usr/ports/databases/php4-pgsql/work/php-4.3.8/ext/pgsql/pgsql.c:383: `OnUpdateInt' undeclared here (not in a function)
/usr/ports/databases/php4-pgsql/work/php-4.3.8/ext/pgsql/pgsql.c:383: initializer element is not constant
/usr/ports/databases/php4-pgsql/work/php-4.3.8/ext/pgsql/pgsql.c:383: (near initialization for `ini_entries[1].on_modify')
/usr/ports/databases/php4-pgsql/work/php-4.3.8/ext/pgsql/pgsql.c:384: `OnUpdateInt' undeclared here (not in a function)
/usr/ports/databases/php4-pgsql/work/php-4.3.8/ext/pgsql/pgsql.c:384: initializer element is not constant
/usr/ports/databases/php4-pgsql/work/php-4.3.8/ext/pgsql/pgsql.c:384: (near initialization for `ini_entries[2].on_modify')
*** Error code 1

Stop in /usr/ports/databases/php4-pgsql/work/php-4.3.8/ext/pgsql.
*** Error code 1

Stop in /usr/ports/databases/php4-pgsql.
*** Error code 1

Stop in /usr/ports/databases/php4-pgsql.
*** Error code 1

Stop in /usr/ports/lang/php4-extensions.
*** Error code 1

Stop in /usr/ports/lang/php4-extensions.
*** Error code 1

Stop in /usr/ports/lang/php4-extensions.
 
onegroup schrieb:
Geht leider nicht. Hab ich irgendwelche Abhängigkeiten vergessen?


===> php4-extensions-1.0 depends on file: /usr/local/lib/php/20020429/pgsql.so - not found
===> Verifying reinstall for /usr/local/lib/php/20020429/pgsql.so in /usr/ports/databases/php4-pgsql
===> Extracting for php4-pgsql-4.3.8_2
>> Checksum OK for php-4.3.8.tar.bz2.
===> Patching for php4-pgsql-4.3.8_2
===> php4-pgsql-4.3.8_2 depends on executable: phpize - found
===> php4-pgsql-4.3.8_2 depends on file: /usr/local/bin/automake15 - found
===> php4-pgsql-4.3.8_2 depends on file: /usr/local/bin/autoconf253 - found
===> php4-pgsql-4.3.8_2 depends on file: /usr/local/bin/libtool13 - found
===> php4-pgsql-4.3.8_2 depends on shared library: pq.3 - found
===> PHPizing for php4-pgsql-4.3.8_2
Configuring for:
PHP Api Version: 20031224
Zend Module Api No: 20040412
Zend Extension Api No: 220040412
autoheader253: `config.h.in' is created
===> Configuring for php4-pgsql-4.3.8_2
configure: WARNING: you should use --build, --host, --target
checking build system type... i386-portbld-freebsd4.9
checking host system type... i386-portbld-freebsd4.9
checking for i386-portbld-freebsd4.9-gcc... cc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking whether cc understands -c and -o together... yes
checking if compiler supports -R... yes
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/Zend -I/usr/local/include/php/TSRM
checking for PHP extension directory... /usr/local/lib/php/20040412
checking for re2c... exit 0;
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking for PostgreSQL support... yes, shared
checking for PQescapeString in -lpq... yes
checking for PQsetnonblocking in -lpq... yes
checking for PQcmdTuples in -lpq... yes
checking for PQoidValue in -lpq... yes
checking for PQclientEncoding in -lpq... yes
checking for pg_encoding_to_char in -lpq... yes
checking for i386-portbld-freebsd4.9-ranlib... no
checking for ranlib... ranlib
checking for ld used by GCC... /usr/libexec/elf/ld
checking if the linker (/usr/libexec/elf/ld) is GNU ld... yes
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
loading cache /dev/null within ltconfig
checking for object suffix... o
checking for executable suffix... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.lo... yes
checking if cc supports -fno-rtti -fno-exceptions ... yes
checking if cc static flag -static works... -static
checking if the linker (/usr/libexec/elf/ld) is GNU ld... yes
checking whether the linker (/usr/libexec/elf/ld) supports shared libraries... yes
checking command to parse /usr/bin/nm -B output... ok
checking how to hardcode library paths into programs... immediate
checking for /usr/libexec/elf/ld option to reload object files... -r
checking dynamic linker characteristics... freebsd4.9 ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for objdir... .libs
creating libtool
updating cache /dev/null
configure: creating ./config.status
config.status: creating config.h
===> Building for php4-pgsql-4.3.8_2
/bin/sh /usr/local/bin/libtool13 --mode=compile cc -I. -I/usr/ports/databases/php4-pgsql/work/php-4.3.8/ext/pgsql -DPHP_ATOM_INC -I/usr/ports/databases/php4-pgsql/work/php-4.3.8/ext/pgsql/include -I/usr/ports/databases/php4-pgsql/work/php-4.3.8/ext/pgsql/main -I/usr/ports/databases/php4-pgsql/work/php-4.3.8/ext/pgsql -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/Zend -I/usr/local/include/php/TSRM -I/usr/local/include -DHAVE_CONFIG_H -O -pipe -prefer-pic -c /usr/ports/databases/php4-pgsql/work/php-4.3.8/ext/pgsql/pgsql.c -o pgsql.lo
mkdir .libs
cc -I. -I/usr/ports/databases/php4-pgsql/work/php-4.3.8/ext/pgsql -DPHP_ATOM_INC -I/usr/ports/databases/php4-pgsql/work/php-4.3.8/ext/pgsql/include -I/usr/ports/databases/php4-pgsql/work/php-4.3.8/ext/pgsql/main -I/usr/ports/databases/php4-pgsql/work/php-4.3.8/ext/pgsql -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/Zend -I/usr/local/include/php/TSRM -I/usr/local/include -DHAVE_CONFIG_H -O -pipe -prefer-pic -c /usr/ports/databases/php4-pgsql/work/php-4.3.8/ext/pgsql/pgsql.c -fPIC -DPIC -o .libs/pgsql.lo
cc: unrecognized option `-prefer-pic'
/usr/ports/databases/php4-pgsql/work/php-4.3.8/ext/pgsql/pgsql.c:383: `OnUpdateInt' undeclared here (not in a function)
/usr/ports/databases/php4-pgsql/work/php-4.3.8/ext/pgsql/pgsql.c:383: initializer element is not constant
/usr/ports/databases/php4-pgsql/work/php-4.3.8/ext/pgsql/pgsql.c:383: (near initialization for `ini_entries[1].on_modify')
/usr/ports/databases/php4-pgsql/work/php-4.3.8/ext/pgsql/pgsql.c:384: `OnUpdateInt' undeclared here (not in a function)
/usr/ports/databases/php4-pgsql/work/php-4.3.8/ext/pgsql/pgsql.c:384: initializer element is not constant
/usr/ports/databases/php4-pgsql/work/php-4.3.8/ext/pgsql/pgsql.c:384: (near initialization for `ini_entries[2].on_modify')
*** Error code 1

Stop in /usr/ports/databases/php4-pgsql/work/php-4.3.8/ext/pgsql.
*** Error code 1

Stop in /usr/ports/databases/php4-pgsql.
*** Error code 1

Stop in /usr/ports/databases/php4-pgsql.
*** Error code 1

Stop in /usr/ports/lang/php4-extensions.
*** Error code 1

Stop in /usr/ports/lang/php4-extensions.
*** Error code 1

Stop in /usr/ports/lang/php4-extensions.




Habs gelöst.

Habe ja php4 und php5 laufen und er hat immer die php.h von php5 genommen.
 
Zurück
Oben