Bug #61859 [Com]: pdo fails on make

From: Date: Mon, 09 Sep 2013 16:57:35 +0000
Subject: Bug #61859 [Com]: pdo fails on make
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-181491@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=61859&edit=1

 ID:                 61859
 Comment by:         austin dot bischoff at gmail dot com
 Reported by:        gencer at cmail dot cm
 Summary:            pdo fails on make
 Status:             Open
 Type:               Bug
 Package:            Compile Failure
 Operating System:   CentOS 5.8 x86_64
 PHP Version:        5.4.1
 Block user comment: N
 Private report:     N

 New Comment:

I just had this issue on two separate CentOS release 6.4 (Final) servers trying to install and
compile php 5.4.19.

The ln -s solution worked for me but I just did "ln -s ./ext/pdo" in the root of the
extracted source files. Once I did 
this the compile and install completed as expected.


Previous Comments:
------------------------------------------------------------------------
[2013-03-22 04:39:29] mike at tetonapps dot com

I had this exact problem with version 5.4.13 when attempting to compile in 
Amazon Linux (which is basically CentOS 5, and I turned off php* in the yum repo 
config.)

I solved it more easily by simply by adding soft links so that I would not have 
to modify any files:
php-5.4.13/pdo/php_pdo.h points to php-5.4.13/ext/pdo/php_pdo.h
php-5.4.13/pdo/php_pdo_driver.h points to php-5.4.13/ext/pdo/php_pdo_driver.h

After adding these two symbolic links, PHP compiled and installed properly.

------------------------------------------------------------------------
[2012-08-21 08:28:40] paszczak000 at gmail dot com

Package glibc-2.12-1.80.el6_3.4.x86_64 already installed and latest version
Package gcc-4.4.6-4.el6.x86_64 already installed and latest version
Package glibc-devel-2.12-1.80.el6_3.4.x86_64 already installed and latest version
Package autoconf-2.63-5.1.el6.noarch already installed and latest version

Manually changing dirs helps, but this is workaround.

------------------------------------------------------------------------
[2012-08-21 08:24:50] gencer at cmail dot cm

@paszczak000

It is all because of GLIBC and GCC. Make sure that you have autoconf installed. Re unpack tar.gz and
recompile again. If this bug still exist manually change pdo/ with ext/pdo in .h files.

I hope this helps.

(yum install glibc gcc glibc-devel autoconf)

------------------------------------------------------------------------
[2012-08-21 07:45:09] paszczak000 at gmail dot com

The same result with: 5.4.6 on CentOS release 6.3 (Final).

------------------------------------------------------------------------
[2012-06-16 09:01:29] paszczak000 at gmail dot com

The same error I have on CentOS release 6.2 (Final) - 2.6.32-220.13.1.el6.centos.plus.x86_64.

./configure --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc
--datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec
--localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info
--cache-file=../config.cache --with-libdir=lib64 --with-config-file-path=/etc
--with-config-file-scan-dir=/etc/php.d --disable-debug --with-pic --disable-rpath --without-pear
--with-bz2 --with-curl --with-freetype-dir=/usr --with-gd --enable-gd-jis-conv
--enable-gd-native-ttf --with-gdbm --with-gmp --enable-mbstring --with-iconv --with-jpeg-dir=/usr
--with-pspell -with-zlib --with-zlib-dir=/usr/include --with-layout=GNU --enable-exif --enable-ftp
--enable-sockets --enable-sysvsem --enable-sysvshm --enable-sysvmsg --enable-wddx
--with-unixODBC=shared,/usr --enable-shmop --enable-calendar --without-sqlite3 --without-pdo-sqlite
--with-libxml-dir=/usr --with-mhash --with-mcrypt --with-apxs2 --disable-dba --without-unixODBC
--enable-json --with-mysql --with-mysqli --enable-soap --with-imap-ssl --with-imap --with-openssl
--with-kerberos --enable-bcmath --with-pdo-mysql --with-pear=/usr/lib/php --with-gettext

But version PHP 5.4.1 with the same options in compiling very well.

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=61859


-- 
Edit this bug report at https://bugs.php.net/bug.php?id=61859&edit=1


Thread (16 messages)

« previous php.bugs (#181491) next »