>>> emerge (1 of 1) dev-php5/pecl-pdo-pgsql-1.0.1 to / >>> checksums files ;-) pecl-pdo-pgsql-1.0.1.ebuild >>> checksums files ;-) files/digest-pecl-pdo-pgsql-1.0.1 >>> checksums src_uri ;-) PDO_PGSQL-1.0.1.tgz * * Using dev-lang/php-5.0.5-r4 * >>> Unpacking source... >>> Unpacking PDO_PGSQL-1.0.1.tgz to /var/tmp/portage/pecl-pdo-pgsql-1.0.1/work tar: A lone zero block at 115 >>> Source unpacked. >>> Compiling source in /var/tmp/portage/pecl-pdo-pgsql-1.0.1/work/PDO_PGSQL-1.0.1 ... Configuring for: PHP Api Version: 20031224 Zend Module Api No: 20041030 Zend Extension Api No: 220040412 checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for gcc... gcc checking for C compiler default output file name... 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 gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking whether gcc and cc understand -c and -o together... yes checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking for PHP prefix... /usr/lib/php5 checking for PHP includes... -I/usr/lib/php5/include/php -I/usr/lib/php5/include/php/main -I/usr/lib/php5/include/php/TSRM -I/usr/lib/php5/include/php/Zend checking for PHP extension directory... /usr/lib/php5/lib/php/extensions/no-debug-zts-20041030 checking for re2c... exit 0; checking for gawk... gawk checking for PostgreSQL support for PDO... yes, shared checking for pg_config... /usr/bin/pg_config checking for openssl dependencies... yes 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 PQparameterStatus in -lpq... yes checking for PQprotocolVersion in -lpq... yes checking for PQtransactionStatus in -lpq... yes checking for PQunescapeBytea in -lpq... yes checking for PQExecParams in -lpq... no checking for PQresultErrorField in -lpq... yes checking for pg_encoding_to_char in -lpq... yes checking for PQprepare in -lpq... yes checking for PDO includes... checking for PDO includes... /usr/lib/php5/include/php/ext checking for ld used by GCC... /usr/i686-pc-linux-gnu/bin/ld checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes checking for /usr/i686-pc-linux-gnu/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking for a sed that does not truncate output... /bin/sed checking whether ln -s works... yes checking how to recognise dependent libraries... pass_all checking command to parse /usr/bin/nm -B output... ok checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for ranlib... ranlib checking for strip... strip checking for objdir... .libs checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.lo... yes checking if gcc supports -fno-rtti -fno-exceptions... no checking whether the linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking dynamic linker characteristics... GNU/Linux ld.so checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking whether -lc should be explicitly linked in... no creating libtool configure: creating ./config.status config.status: creating config.h /bin/sh /var/tmp/portage/pecl-pdo-pgsql-1.0.1/work/PDO_PGSQL-1.0.1/libtool --mode=compile gcc -I/usr/lib/php5/include/php/ext -I. -I/var/tmp/portage/pecl-pdo-pgsql-1.0.1/work/PDO_PGSQL-1.0.1 -DPHP_ATOM_INC -I/var/tmp/portage/pecl-pdo-pgsql-1.0.1/work/PDO_PGSQL-1.0.1/include -I/var/tmp/portage/pecl-pdo-pgsql-1.0.1/work/PDO_PGSQL-1.0.1/main -I/var/tmp/portage/pecl-pdo-pgsql-1.0.1/work/PDO_PGSQL-1.0.1 -I/usr/lib/php5/include/php -I/usr/lib/php5/include/php/main -I/usr/lib/php5/include/php/TSRM -I/usr/lib/php5/include/php/Zend -DHAVE_CONFIG_H -march=athlon-tbird -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -falign-functions=4 -maccumulate-outgoing-args -c /var/tmp/portage/pecl-pdo-pgsql-1.0.1/work/PDO_PGSQL-1.0.1/pdo_pgsql.c -o pdo_pgsql.lo /bin/sh /var/tmp/portage/pecl-pdo-pgsql-1.0.1/work/PDO_PGSQL-1.0.1/libtool --mode=compile gcc -I/usr/lib/php5/include/php/ext -I. -I/var/tmp/portage/pecl-pdo-pgsql-1.0.1/work/PDO_PGSQL-1.0.1 -DPHP_ATOM_INC -I/var/tmp/portage/pecl-pdo-pgsql-1.0.1/work/PDO_PGSQL-1.0.1/include -I/var/tmp/portage/pecl-pdo-pgsql-1.0.1/work/PDO_PGSQL-1.0.1/main -I/var/tmp/portage/pecl-pdo-pgsql-1.0.1/work/PDO_PGSQL-1.0.1 -I/usr/lib/php5/include/php -I/usr/lib/php5/include/php/main -I/usr/lib/php5/include/php/TSRM -I/usr/lib/php5/include/php/Zend -DHAVE_CONFIG_H -march=athlon-tbird -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -falign-functions=4 -maccumulate-outgoing-args -c /var/tmp/portage/pecl-pdo-pgsql-1.0.1/work/PDO_PGSQL-1.0.1/pgsql_driver.c -o pgsql_driver.lo mkdir .libs gcc -I/usr/lib/php5/include/php/ext -I. -I/var/tmp/portage/pecl-pdo-pgsql-1.0.1/work/PDO_PGSQL-1.0.1 -DPHP_ATOM_INC -I/var/tmp/portage/pecl-pdo-pgsql-1.0.1/work/PDO_PGSQL-1.0.1/include -I/var/tmp/portage/pecl-pdo-pgsql-1.0.1/work/PDO_PGSQL-1.0.1/main -I/var/tmp/portage/pecl-pdo-pgsql-1.0.1/work/PDO_PGSQL-1.0.1 -I/usr/lib/php5/include/php -I/usr/lib/php5/include/php/main -I/usr/lib/php5/include/php/TSRM -I/usr/lib/php5/include/php/Zend -DHAVE_CONFIG_H -march=athlon-tbird -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -falign-functions=4 -maccumulate-outgoing-args -c /var/tmp/portage/pecl-pdo-pgsql-1.0.1/work/PDO_PGSQL-1.0.1/pdo_pgsql.c -fPIC -o .libs/pdo_pgsql.o gcc -I/usr/lib/php5/include/php/ext -I. -I/var/tmp/portage/pecl-pdo-pgsql-1.0.1/work/PDO_PGSQL-1.0.1 -DPHP_ATOM_INC -I/var/tmp/portage/pecl-pdo-pgsql-1.0.1/work/PDO_PGSQL-1.0.1/include -I/var/tmp/portage/pecl-pdo-pgsql-1.0.1/work/PDO_PGSQL-1.0.1/main -I/var/tmp/portage/pecl-pdo-pgsql-1.0.1/work/PDO_PGSQL-1.0.1 -I/usr/lib/php5/include/php -I/usr/lib/php5/include/php/main -I/usr/lib/php5/include/php/TSRM -I/usr/lib/php5/include/php/Zend -DHAVE_CONFIG_H -march=athlon-tbird -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -falign-functions=4 -maccumulate-outgoing-args -c /var/tmp/portage/pecl-pdo-pgsql-1.0.1/work/PDO_PGSQL-1.0.1/pgsql_driver.c -fPIC -o .libs/pgsql_driver.o /bin/sh /var/tmp/portage/pecl-pdo-pgsql-1.0.1/work/PDO_PGSQL-1.0.1/libtool --mode=compile gcc -I/usr/lib/php5/include/php/ext -I. -I/var/tmp/portage/pecl-pdo-pgsql-1.0.1/work/PDO_PGSQL-1.0.1 -DPHP_ATOM_INC -I/var/tmp/portage/pecl-pdo-pgsql-1.0.1/work/PDO_PGSQL-1.0.1/include -I/var/tmp/portage/pecl-pdo-pgsql-1.0.1/work/PDO_PGSQL-1.0.1/main -I/var/tmp/portage/pecl-pdo-pgsql-1.0.1/work/PDO_PGSQL-1.0.1 -I/usr/lib/php5/include/php -I/usr/lib/php5/include/php/main -I/usr/lib/php5/include/php/TSRM -I/usr/lib/php5/include/php/Zend -DHAVE_CONFIG_H -march=athlon-tbird -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -falign-functions=4 -maccumulate-outgoing-args -c /var/tmp/portage/pecl-pdo-pgsql-1.0.1/work/PDO_PGSQL-1.0.1/pgsql_statement.c -o pgsql_statement.lo /var/tmp/portage/pecl-pdo-pgsql-1.0.1/work/PDO_PGSQL-1.0.1/pgsql_driver.c: In function `pgsql_lob_close': /var/tmp/portage/pecl-pdo-pgsql-1.0.1/work/PDO_PGSQL-1.0.1/pgsql_driver.c:135: error: parse error before "void" make: *** [pgsql_driver.lo] Error 1 make: *** Waiting for unfinished jobs.... gcc -I/usr/lib/php5/include/php/ext -I. -I/var/tmp/portage/pecl-pdo-pgsql-1.0.1/work/PDO_PGSQL-1.0.1 -DPHP_ATOM_INC -I/var/tmp/portage/pecl-pdo-pgsql-1.0.1/work/PDO_PGSQL-1.0.1/include -I/var/tmp/portage/pecl-pdo-pgsql-1.0.1/work/PDO_PGSQL-1.0.1/main -I/var/tmp/portage/pecl-pdo-pgsql-1.0.1/work/PDO_PGSQL-1.0.1 -I/usr/lib/php5/include/php -I/usr/lib/php5/include/php/main -I/usr/lib/php5/include/php/TSRM -I/usr/lib/php5/include/php/Zend -DHAVE_CONFIG_H -march=athlon-tbird -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -falign-functions=4 -maccumulate-outgoing-args -c /var/tmp/portage/pecl-pdo-pgsql-1.0.1/work/PDO_PGSQL-1.0.1/pgsql_statement.c -fPIC -o .libs/pgsql_statement.o !!! ERROR: dev-php5/pecl-pdo-pgsql-1.0.1 failed. !!! Function php-ext-source-r1_src_compile, Line 45, Exitcode 2 !!! Unable to make code !!! If you need support, post the topmost build error, NOT this status message.
Created attachment 75633 [details] emerge --info
Have tried multiple times; always the same outcome. Removed any related build files from /var/tmp/portage. Revdep-rebuild has been successful multiple times. Still fails to compile with same error.
I cannot reproduce this.
*** Bug 118055 has been marked as a duplicate of this bug. ***
This has been reported upstream w/ php-5.0.5 - http://bugs.php.net/bug.php?id=35718 Reopening.
Created attachment 76643 [details, diff] TSRM fixup Patch from upstream to fix a typo that prevents this package from compiling cleanly. http://cvs.php.net/viewcvs.cgi/pecl/pdo_pgsql/pgsql_driver.c?r1=1.53.2.7&r2=1.53.2.8 I haven't tested to see if the code works properly, but it does compile cleanly.
Created attachment 76644 [details] pecl-pdo-pgsql-1.0.1.ebuild ebuild with patch included.
The patch was added to dev-php5/pecl-pdo-pgsql-1.0.1, hopefully fixing this as I wasn't able to reproduce it myself. emerge sync in a couple of hours and try emerging pecl-pdo-pgsql again. Best regards, CHTEKK.