Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 127067 - configure error with pecl-pdo-* when using dev-lang/php-5.1.2
Summary: configure error with pecl-pdo-* when using dev-lang/php-5.1.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PHP Bugs
URL: http://pecl.php.net/bugs/bug.php?id=6545
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-21 03:31 UTC by Alexander 'E-Razor' Krause
Modified: 2006-03-21 08:23 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild for pdo-sqlite when using php-5.1.2 (+pdo-external) (pecl-pdo-sqlite-1.0-r2.ebuild,1.17 KB, text/plain)
2006-03-21 04:25 UTC, Alexander 'E-Razor' Krause
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander 'E-Razor' Krause 2006-03-21 03:31:42 UTC
Portage 2.1_pre6-r5 (uclibc/x86/2005.1, gcc-3.4.5, uclibc-0.9.28-r0, 2.6.15-gentoo-r7 i686)
=================================================================
System uname: 2.6.15-gentoo-r7 i686 unknown
Gentoo Base System version 1.12.0_pre16
dev-lang/python:     2.3.4-r1, 2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i586-pc-linux-uclibc"
CFLAGS="-march=pentium-mmx -Os -pipe -fomit-frame-pointer"
CHOST="i586-pc-linux-uclibc"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=pentium-mmx -Os -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer nodoc noinfo noman sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/overlays/erazor-zone.de"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 bitmap-fonts dri minimal ncurses readline truetype-fonts type1-fonts uclibc zlib elibc_uclibc kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
Comment 1 Alexander 'E-Razor' Krause 2006-03-21 03:36:40 UTC
Calculating dependencies... done!
>>> Emerging (1 of 1) dev-php5/pecl-pdo-sqlite-1.0 to /
>>> checksums files   ;-) pecl-pdo-sqlite-1.0.ebuild
>>> checksums files   ;-) files/digest-pecl-pdo-sqlite-1.0
>>> checksums src_uri ;-) PDO_SQLITE-1.0.tgz
 *
 * Using dev-lang/php-5.1.2
 *
>>> Unpacking source...
>>> Unpacking PDO_SQLITE-1.0.tgz to /var/tmp/portage/pecl-pdo-sqlite-1.0/work
A lone zero block at 7226
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/pecl-pdo-sqlite-1.0/work/PDO_SQLITE-1.0 ...
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20050922
Zend Extension Api No:   220051025
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
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 build system type... i686-pc-linux-uclibc
checking host system type... i686-pc-linux-uclibc
checking target system type... i686-pc-linux-uclibc
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 -I/usr/lib/php5/include/php/ext
checking for PHP extension directory... /usr/lib/php5/lib/php/extensions/no-debug-non-zts-20050922
checking for PHP installed headers prefix... /usr/lib/php5/include/php
checking for re2c... no
configure: WARNING: You will need re2c 0.9.11 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for sqlite 3 driver for PDO... yes, shared
checking for PDO includes... checking for PDO includes... /usr/lib/php5/include/php/ext
checking how to run the C preprocessor... gcc -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 for char *... yes
checking size of char *... 4
checking for usleep... yes
checking for nanosleep... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
configure: error:
You've configured extension pdo_sqlite, which depends on extension pdo,
but you've either not enabled pdo, or have disabled it.


!!! ERROR: dev-php5/pecl-pdo-sqlite-1.0 failed.
Call stack:
  ebuild.sh, line 1565:   Called dyn_compile
  ebuild.sh, line 974:   Called src_compile
  ebuild.sh, line 1280:   Called php-ext-pecl-r1_src_compile
  php-ext-pecl-r1.eclass, line 39:   Called php-ext-source-r1_src_compile

!!! Unable to configure code to compile
!!! If you need support, post the topmost build error, and the call stack if relevant.




adding my_conf="--with-pdo-sqlite=/usr" to src_compile would be good too, to allow dynamic linking against sqlite
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-03-21 03:51:54 UTC
Well, this is upstream pecl-pdo bug with php-5.1.2 only, we already reported it but upstream just ignores it, apparently :/

http://pecl.php.net/bugs/bug.php?id=6545
Comment 3 Alexander 'E-Razor' Krause 2006-03-21 04:25:28 UTC
Created attachment 82760 [details]
ebuild for pdo-sqlite when using php-5.1.2 (+pdo-external)

i suppose it's not working for other php-versions.
Comment 4 Alexander 'E-Razor' Krause 2006-03-21 04:27:02 UTC
(In reply to comment #3)
> Created an attachment (id=82760) [edit]
> ebuild for pdo-sqlite when using php-5.1.2 (+pdo-external)
> 
> i suppose it's not working for other php-versions.
> 

Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-03-21 04:33:01 UTC
This issue affects *all* PDO extensions, so the above patch is incorrect. 

Please, don't close bugs until they are fixed in portage. We have a patch for this issue in php overlay (basically just removes the broken code added into php-5.1.2), the patch just didn't make it into portage yet. 
Comment 6 Luca Longinotti (RETIRED) gentoo-dev 2006-03-21 07:23:45 UTC
The patch is in Portage since 5.1.2 is, it gets correctly applied (watch out for php5.1.2-php_add_extension_dep.patch when it applies the various patches) et all.
I also was able to build pecl-pdo, pecl-pdo-odbc and pecl-pdo-sqlite without problems, so PDO and it's drivers should now work... Please try doing the following: emerge --sync to update you Portage tree, update any checkout of overlays you may have around and be sure there are no PHP ebuilds/eclasses that interfere in them, and purge your distfiles directory ( rm -Rf /usr/portage/distfiles/* ). After all that it should work correctly, here it does, you probably have some old ebuilds or some stale file around.
Best regards, CHTEKK.
Comment 7 Alexander 'E-Razor' Krause 2006-03-21 08:23:53 UTC
you're right my php-5.1.2 was a bit off-topic.

it works after emerge --sync; emerge dev-lang/php pecl-pdo

thanks again!