"Nilesh Govindrajan" <m...@nileshgr.com> wrote:
> On Sunday 23 December 2012 07:25:30 AM IST, Mike Diehl wrote:
>> Hi all,
>>
>> I'm not a PHP programmer, so I'm a bit out of my water.  But, I'm
>> trying to install the latest eGroupware and need to get PHP to support
>> pdo database connectivigy.
>>
>> After a recent emerge --sync, I did a new emerge of php with
>> --newuse... after adding pdo to my tags list.
>>
>> What I get is:
>>
>> ...running: make
>> /bin/sh /root/tmp/pear/temp/pear-build-rootFqdFar/PDO-1.0.3/libtool
>> --mode=compile cc  -I. -I/root/tmp/pear/temp/PDO -DPHP_ATOM_INC
>> -I/root/tmp/pear/temp/pear-build-rootFqdFar/PDO-1.0.3/include
>> -I/root/tmp/pear/temp/pear-build-rootFqdFar/PDO-1.0.3/main
>> -I/root/tmp/pear/temp/PDO -I/usr/lib/php5.3/include/php
>> -I/usr/lib/php5.3/include/php/main -I/usr/lib/php5.3/include/php/TSRM
>> -I/usr/lib/php5.3/include/php/Zend -I/usr/lib/php5.3/include/php/ext
>> -I/usr/lib/php5.3/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2
>> -c /root/tmp/pear/temp/PDO/pdo.c -o pdo.lo
>> libtool: compile:  cc -I. -I/root/tmp/pear/temp/PDO -DPHP_ATOM_INC
>> -I/root/tmp/pear/temp/pear-build-rootFqdFar/PDO-1.0.3/include
>> -I/root/tmp/pear/temp/pear-build-rootFqdFar/PDO-1.0.3/main
>> -I/root/tmp/pear/temp/PDO -I/usr/lib/php5.3/include/php
>> -I/usr/lib/php5.3/include/php/main -I/usr/lib/php5.3/include/php/TSRM
>> -I/usr/lib/php5.3/include/php/Zend -I/usr/lib/php5.3/include/php/ext
>> -I/usr/lib/php5.3/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c
>> /root/tmp/pear/temp/PDO/pdo.c  -fPIC -DPIC -o .libs/pdo.o
>> /bin/sh /root/tmp/pear/temp/pear-build-rootFqdFar/PDO-1.0.3/libtool
>> --mode=compile cc  -I. -I/root/tmp/pear/temp/PDO -DPHP_ATOM_INC
>> -I/root/tmp/pear/temp/pear-build-rootFqdFar/PDO-1.0.3/include
>> -I/root/tmp/pear/temp/pear-build-rootFqdFar/PDO-1.0.3/main
>> -I/root/tmp/pear/temp/PDO -I/usr/lib/php5.3/include/php
>> -I/usr/lib/php5.3/include/php/main -I/usr/lib/php5.3/include/php/TSRM
>> -I/usr/lib/php5.3/include/php/Zend -I/usr/lib/php5.3/include/php/ext
>> -I/usr/lib/php5.3/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2
>> -c /root/tmp/pear/temp/PDO/pdo_dbh.c -o pdo_dbh.lo
>> libtool: compile:  cc -I. -I/root/tmp/pear/temp/PDO -DPHP_ATOM_INC
>> -I/root/tmp/pear/temp/pear-build-rootFqdFar/PDO-1.0.3/include
>> -I/root/tmp/pear/temp/pear-build-rootFqdFar/PDO-1.0.3/main
>> -I/root/tmp/pear/temp/PDO -I/usr/lib/php5.3/include/php
>> -I/usr/lib/php5.3/include/php/main -I/usr/lib/php5.3/include/php/TSRM
>> -I/usr/lib/php5.3/include/php/Zend -I/usr/lib/php5.3/include/php/ext
>> -I/usr/lib/php5.3/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c
>> /root/tmp/pear/temp/PDO/pdo_dbh.c  -fPIC -DPIC -o .libs/pdo_dbh.o
>> /root/tmp/pear/temp/PDO/pdo_dbh.c: In function 'pdo_stmt_instantiate':
>> /root/tmp/pear/temp/PDO/pdo_dbh.c:410: error: 'zval' has no member
>> named 'refcount'
>> /root/tmp/pear/temp/PDO/pdo_dbh.c:411: error: 'zval' has no member
>> named 'is_ref'
>> /root/tmp/pear/temp/PDO/pdo_dbh.c: In function 'pdo_stmt_construct':
>> /root/tmp/pear/temp/PDO/pdo_dbh.c:435: error: 'zend_fcall_info' has no
>> member named 'object_pp'
>> /root/tmp/pear/temp/PDO/pdo_dbh.c:458: error: 'zend_fcall_info_cache'
>> has no member named 'object_pp'
>> /root/tmp/pear/temp/PDO/pdo_dbh.c: In function 'zim_PDO_setAttribute':
>> /root/tmp/pear/temp/PDO/pdo_dbh.c:752: error: 'zval' has no member
>> named 'refcount'
>> /root/tmp/pear/temp/PDO/pdo_dbh.c: In function 'zim_PDO_getAttribute':
>> /root/tmp/pear/temp/PDO/pdo_dbh.c:818: error: 'zval' has no member
>> named 'refcount'
>> /root/tmp/pear/temp/PDO/pdo_dbh.c: In function 'pdo_hash_methods':
>> /root/tmp/pear/temp/PDO/pdo_dbh.c:1122: warning: assignment discards
>> qualifiers from pointer target type
>> /root/tmp/pear/temp/PDO/pdo_dbh.c:1126: warning: assignment discards
>> qualifiers from pointer target type
>> make: *** [pdo_dbh.lo] Error 1
>> ERROR: `make' failed
>>
===========================================================================
>>
>>
>> Any idea on how to fix this?
>>
>> Mike.
>> ------------------------------------------------------------------------
>>
>> Take care and have fun,
>> Mike Diehl.
> 
> Which GCC version? Did you do any GCC updates/etc?

Using built-in specs.
Target: i686-pc-linux-gnu
Configured with:
/var/tmp/portage/sys-devel/gcc-4.4.5/work/gcc-4.4.5/configure --prefix=/usr
--bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.4.5
--includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.4.5/include
--datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.4.5
--mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.4.5/man
--infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.4.5/info
--with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.4.5/include/g++-v4
--host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec
--disable-fixed-point --without-ppl --without-cloog --enable-nls
--without-included-gettext --with-system-zlib --disable-werror
--enable-secureplt --disable-multilib --enable-libmudflap --disable-libssp
--enable-libgomp
--with-python-dir=/share/gcc-data/i686-pc-linux-gnu/4.4.5/python
--enable-checking=release --disable-libgcj --with-arch=i686
--enable-languages=c,c++,fortran --enable-shared --enable-threads=posix
--enable-__cxa_atexit --enable-clocale=gnu
--with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.4.5 p1.2,
pie-0.4.5'
Thread model: posix
gcc version 4.4.5 (Gentoo 4.4.5 p1.2, pie-0.4.5)


Mike.

--

Take care and have fun,
Mike Diehl.



Reply via email to