Gentoo Archives: gentoo-user

From: Nilesh Govindrajan <me@××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Problem installing PHP pdo
Date: Sun, 23 Dec 2012 03:44:36
Message-Id: 50D67DBB.70804@nileshgr.com
In Reply to: [gentoo-user] Problem installing PHP pdo by Mike Diehl
1 On Sunday 23 December 2012 07:25:30 AM IST, Mike Diehl wrote:
2 > Hi all,
3 >
4 > I'm not a PHP programmer, so I'm a bit out of my water. But, I'm
5 > trying to install the latest eGroupware and need to get PHP to support
6 > pdo database connectivigy.
7 >
8 > After a recent emerge --sync, I did a new emerge of php with
9 > --newuse... after adding pdo to my tags list.
10 >
11 > What I get is:
12 >
13 > ...running: make
14 > /bin/sh /root/tmp/pear/temp/pear-build-rootFqdFar/PDO-1.0.3/libtool
15 > --mode=compile cc -I. -I/root/tmp/pear/temp/PDO -DPHP_ATOM_INC
16 > -I/root/tmp/pear/temp/pear-build-rootFqdFar/PDO-1.0.3/include
17 > -I/root/tmp/pear/temp/pear-build-rootFqdFar/PDO-1.0.3/main
18 > -I/root/tmp/pear/temp/PDO -I/usr/lib/php5.3/include/php
19 > -I/usr/lib/php5.3/include/php/main -I/usr/lib/php5.3/include/php/TSRM
20 > -I/usr/lib/php5.3/include/php/Zend -I/usr/lib/php5.3/include/php/ext
21 > -I/usr/lib/php5.3/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2
22 > -c /root/tmp/pear/temp/PDO/pdo.c -o pdo.lo
23 > libtool: compile: cc -I. -I/root/tmp/pear/temp/PDO -DPHP_ATOM_INC
24 > -I/root/tmp/pear/temp/pear-build-rootFqdFar/PDO-1.0.3/include
25 > -I/root/tmp/pear/temp/pear-build-rootFqdFar/PDO-1.0.3/main
26 > -I/root/tmp/pear/temp/PDO -I/usr/lib/php5.3/include/php
27 > -I/usr/lib/php5.3/include/php/main -I/usr/lib/php5.3/include/php/TSRM
28 > -I/usr/lib/php5.3/include/php/Zend -I/usr/lib/php5.3/include/php/ext
29 > -I/usr/lib/php5.3/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c
30 > /root/tmp/pear/temp/PDO/pdo.c -fPIC -DPIC -o .libs/pdo.o
31 > /bin/sh /root/tmp/pear/temp/pear-build-rootFqdFar/PDO-1.0.3/libtool
32 > --mode=compile cc -I. -I/root/tmp/pear/temp/PDO -DPHP_ATOM_INC
33 > -I/root/tmp/pear/temp/pear-build-rootFqdFar/PDO-1.0.3/include
34 > -I/root/tmp/pear/temp/pear-build-rootFqdFar/PDO-1.0.3/main
35 > -I/root/tmp/pear/temp/PDO -I/usr/lib/php5.3/include/php
36 > -I/usr/lib/php5.3/include/php/main -I/usr/lib/php5.3/include/php/TSRM
37 > -I/usr/lib/php5.3/include/php/Zend -I/usr/lib/php5.3/include/php/ext
38 > -I/usr/lib/php5.3/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2
39 > -c /root/tmp/pear/temp/PDO/pdo_dbh.c -o pdo_dbh.lo
40 > libtool: compile: cc -I. -I/root/tmp/pear/temp/PDO -DPHP_ATOM_INC
41 > -I/root/tmp/pear/temp/pear-build-rootFqdFar/PDO-1.0.3/include
42 > -I/root/tmp/pear/temp/pear-build-rootFqdFar/PDO-1.0.3/main
43 > -I/root/tmp/pear/temp/PDO -I/usr/lib/php5.3/include/php
44 > -I/usr/lib/php5.3/include/php/main -I/usr/lib/php5.3/include/php/TSRM
45 > -I/usr/lib/php5.3/include/php/Zend -I/usr/lib/php5.3/include/php/ext
46 > -I/usr/lib/php5.3/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c
47 > /root/tmp/pear/temp/PDO/pdo_dbh.c -fPIC -DPIC -o .libs/pdo_dbh.o
48 > /root/tmp/pear/temp/PDO/pdo_dbh.c: In function 'pdo_stmt_instantiate':
49 > /root/tmp/pear/temp/PDO/pdo_dbh.c:410: error: 'zval' has no member
50 > named 'refcount'
51 > /root/tmp/pear/temp/PDO/pdo_dbh.c:411: error: 'zval' has no member
52 > named 'is_ref'
53 > /root/tmp/pear/temp/PDO/pdo_dbh.c: In function 'pdo_stmt_construct':
54 > /root/tmp/pear/temp/PDO/pdo_dbh.c:435: error: 'zend_fcall_info' has no
55 > member named 'object_pp'
56 > /root/tmp/pear/temp/PDO/pdo_dbh.c:458: error: 'zend_fcall_info_cache'
57 > has no member named 'object_pp'
58 > /root/tmp/pear/temp/PDO/pdo_dbh.c: In function 'zim_PDO_setAttribute':
59 > /root/tmp/pear/temp/PDO/pdo_dbh.c:752: error: 'zval' has no member
60 > named 'refcount'
61 > /root/tmp/pear/temp/PDO/pdo_dbh.c: In function 'zim_PDO_getAttribute':
62 > /root/tmp/pear/temp/PDO/pdo_dbh.c:818: error: 'zval' has no member
63 > named 'refcount'
64 > /root/tmp/pear/temp/PDO/pdo_dbh.c: In function 'pdo_hash_methods':
65 > /root/tmp/pear/temp/PDO/pdo_dbh.c:1122: warning: assignment discards
66 > qualifiers from pointer target type
67 > /root/tmp/pear/temp/PDO/pdo_dbh.c:1126: warning: assignment discards
68 > qualifiers from pointer target type
69 > make: *** [pdo_dbh.lo] Error 1
70 > ERROR: `make' failed
71 > ===========================================================================
72 >
73 >
74 > Any idea on how to fix this?
75 >
76 > Mike.
77 > ------------------------------------------------------------------------
78 >
79 > Take care and have fun,
80 > Mike Diehl.
81
82 Which GCC version? Did you do any GCC updates/etc?
83
84 --
85 Nilesh Govindarajan
86 http://nileshgr.com

Replies

Subject Author
Re: [gentoo-user] Problem installing PHP pdo Mike Diehl <mdiehl@××××××××.com>