php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59426 Install php svn on CentOS x86_64 problem?
Submitted: 2010-09-16 18:58 UTC Modified: 2010-09-16 20:03 UTC
From: furosh at gmail dot com Assigned:
Status: Not a bug Package: svn (PECL)
PHP Version: 5.3.2 OS: Centos 5.5 x86_64
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: furosh at gmail dot com
New email:
PHP Version: OS:

 

 [2010-09-16 18:58 UTC] furosh at gmail dot com
Description:
------------
I recently installed this centos 5 machine and it had php 5.1.6. A website I'm moving requires php 5.2 or higher. Because I prefer to use a package manager rather than install from source for manageability and updates, I found a site that has instructions for upgrading centos php to 5.3 here: http://www.webtatic.com/blog/2009/06/php-530-on-centos-5/

I tried this and it worked fine. I also updated some additional php extensions by using: 'yum install php-gd php-pdo php-mysql php-ldap' etc.

All these extensions show up with: php -m or in info.php file.

However, I have to also place another web-application on this server and it requires the php extension:svn.so

I have followed all instructions from your site and everywhere else online but I keep getting errors repeatedly.

I also posted a question about this on: http://stackoverflow.com/questions/3730853/install-php-svn-on-centos-x86-64-problem

I have these modules: # php -m
[PHP Modules]
bz2
calendar
Core
ctype
curl
date
dom
ereg
exif
fileinfo
filter
ftp
gd
gettext
gmp
hash
iconv
json
ldap
libxml
mbstring
mysql
mysqli
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
readline
Reflection
session
shmop
SimpleXML
sockets
SPL
standard
tokenizer
wddx
xml
xmlreader
xmlwriter
xsl
zip
zlib

[Zend Modules]

# pecl -V
PEAR Version: 1.9.1
PHP Version: 5.3.3
Zend Engine Version: 2.3.0
Running on: Linux ala-tracedev 2.6.18-194.11.1.el5 #1 SMP Tue Aug 10 19:05:06 EDT 2010 x86_64

I tried installing the svn extension with the following:
I have tried this several different ways like so:
   1. 'pecl install svn'
   2. 'pecl download svn; pear install svn-1.0.0.tgz'
   3. 'pecl download svn; tar xvzf svn-1.0.0.tgz; cd svn-1.0.0; ' 'mv config.m4 config.m4.old; wget http://www.akbkhome.com/svn/pecl/svn/config.m4;' 'phpize;./configure;make clean;make install'
   4. *Because I'm on a CentOs x86_64. I also tried setting another suggestion that worked for someone else: 
       'phpize; ./configure --prefix=/usr --with-apr=/usr/bin/apr-1-config \ 
        --with-apxs=/usr/sbin/apxs LDFLAGS="-L/lib64" ; make clean; make install'
   5. 'pecl download svn; cd svn-1.0.0; phpize;./configure;make clean;make install'

But it keeps saying this Error:
================================
config.status: creating config.h
running: make
/bin/sh /var/tmp/pear-build-root/svn-1.0.0/libtool --mode=compile cc -I/usr/include/subversion-1  -I/usr/include/apr-1  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I. -I/var/tmp/svn -DPHP_ATOM_INC -I/var/tmp/pear-build-root/svn-1.0.0/include -I/var/tmp/pear-build-root/svn-1.0.0/main -I/var/tmp/svn -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/subversion-1 -I/usr/include/apr-1 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE  -DHAVE_CONFIG_H  -g -O2   -c /var/tmp/svn/svn.c -o svn.lo
mkdir .libs
 cc -I/usr/include/subversion-1 -I/usr/include/apr-1 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I. -I/var/tmp/svn -DPHP_ATOM_INC -I/var/tmp/pear-build-root/svn-1.0.0/include -I/var/tmp/pear-build-root/svn-1.0.0/main -I/var/tmp/svn -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/subversion-1 -I/usr/include/apr-1 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -DHAVE_CONFIG_H -g -O2 -c /var/tmp/svn/svn.c  -fPIC -DPIC -o .libs/svn.o
In file included from /usr/include/apr-1/apr_file_io.h:29,
                 from /usr/include/subversion-1/svn_client.h:34,
                 from /var/tmp/svn/php_svn.h:43,
                 from /var/tmp/svn/svn.c:33:
/usr/include/apr-1/apr_file_info.h:137: error: redefinition of typedef 'apr_ino_t'
/usr/include/apr-1/apr-x86_64.h:287: error: previous declaration of 'apr_ino_t' was here
/var/tmp/svn/svn.c: In function 'init_svn_client':
/var/tmp/svn/svn.c:350: warning: 'svn_client_get_simple_provider' is deprecated (declared at /usr/include/subversion-1/svn_client.h:161)
/var/tmp/svn/svn.c:353: warning: 'svn_client_get_username_provider' is deprecated (declared at /usr/include/subversion-1/svn_client.h:208)
/var/tmp/svn/svn.c:356: warning: 'svn_client_get_ssl_server_trust_prompt_provider' is deprecated (declared at /usr/include/subversion-1/svn_client.h:278)
/var/tmp/svn/svn.c:360: warning: 'svn_client_get_ssl_server_trust_file_provider' is deprecated (declared at /usr/include/subversion-1/svn_client.h:225)
/var/tmp/svn/svn.c:363: warning: 'svn_client_get_ssl_client_cert_file_provider' is deprecated (declared at /usr/include/subversion-1/svn_client.h:242)
/var/tmp/svn/svn.c:366: warning: 'svn_client_get_ssl_client_cert_pw_file_provider' is deprecated (declared at /usr/include/subversion-1/svn_client.h:259)
/var/tmp/svn/svn.c: In function 'zif_svn_import':
/var/tmp/svn/svn.c:493: warning: 'svn_client_import' is deprecated (declared at /usr/include/subversion-1/svn_client.h:1654)
/var/tmp/svn/svn.c: In function 'zif_svn_checkout':
/var/tmp/svn/svn.c:733: warning: 'svn_client_checkout2' is deprecated (declared at /usr/include/subversion-1/svn_client.h:1080)
/var/tmp/svn/svn.c: In function 'zif_svn_ls':
/var/tmp/svn/svn.c:879: warning: 'svn_client_ls2' is deprecated (declared at /usr/include/subversion-1/svn_client.h:4066)
/var/tmp/svn/svn.c:887: warning: 'svn_client_ls' is deprecated (declared at /usr/include/subversion-1/svn_client.h:4082)
/var/tmp/svn/svn.c: In function 'zif_svn_log':
/var/tmp/svn/svn.c:1101: warning: 'svn_client_log2' is deprecated (declared at /usr/include/subversion-1/svn_client.h:2037)
/var/tmp/svn/svn.c: In function 'zif_svn_diff':
/var/tmp/svn/svn.c:1259: warning: 'svn_client_diff3' is deprecated (declared at /usr/include/subversion-1/svn_client.h:2299)
/var/tmp/svn/svn.c: In function 'zif_svn_revert':
/var/tmp/svn/svn.c:1366: warning: 'svn_client_revert' is deprecated (declared at /usr/include/subversion-1/svn_client.h:3002)
/var/tmp/svn/svn.c: In function 'zif_svn_resolved':
/var/tmp/svn/svn.c:1408: warning: 'svn_client_resolved' is deprecated (declared at /usr/include/subversion-1/svn_client.h:3025)
/var/tmp/svn/svn.c: In function 'zif_svn_info':
/var/tmp/svn/svn.c:2010: warning: 'svn_client_info' is deprecated (declared at /usr/include/subversion-1/svn_client.h:4540)
/var/tmp/svn/svn.c: In function 'zif_svn_export':
/var/tmp/svn/svn.c:2074: warning: 'svn_client_export3' is deprecated (declared at /usr/include/subversion-1/svn_client.h:3892)
/var/tmp/svn/svn.c: In function 'zif_svn_switch':
/var/tmp/svn/svn.c:2124: warning: 'svn_client_switch' is deprecated (declared at /usr/include/subversion-1/svn_client.h:1290)
/var/tmp/svn/svn.c: In function 'zif_svn_copy':
/var/tmp/svn/svn.c:2177: warning: 'svn_client_copy2' is deprecated (declared at /usr/include/subversion-1/svn_client.h:3219)
/var/tmp/svn/svn.c: In function 'zif_svn_blame':
/var/tmp/svn/svn.c:2291: warning: 'svn_client_blame2' is deprecated (declared at /usr/include/subversion-1/svn_client.h:2160)
/var/tmp/svn/svn.c: In function 'zif_svn_delete':
/var/tmp/svn/svn.c:2340: warning: 'svn_client_delete2' is deprecated (declared at /usr/include/subversion-1/svn_client.h:1537)
/var/tmp/svn/svn.c: In function 'zif_svn_mkdir':
/var/tmp/svn/svn.c:2405: warning: 'svn_client_mkdir2' is deprecated (declared at /usr/include/subversion-1/svn_client.h:1451)
/var/tmp/svn/svn.c: In function 'zif_svn_move':
/var/tmp/svn/svn.c:2468: warning: 'svn_client_move3' is deprecated (declared at /usr/include/subversion-1/svn_client.h:3367)
/var/tmp/svn/svn.c: In function 'zif_svn_proplist':
/var/tmp/svn/svn.c:2532: warning: 'svn_client_proplist2' is deprecated (declared at /usr/include/subversion-1/svn_client.h:3760)
/var/tmp/svn/svn.c: In function 'zif_svn_propget':
/var/tmp/svn/svn.c:2607: warning: 'svn_client_propget2' is deprecated (declared at /usr/include/subversion-1/svn_client.h:3655)
/var/tmp/svn/svn.c: In function 'zif_svn_repos_recover':
/var/tmp/svn/svn.c:2720: warning: 'svn_repos_recover2' is deprecated (declared at /usr/include/subversion-1/svn_repos.h:376)
/var/tmp/svn/svn.c: In function 'zif_svn_commit':
/var/tmp/svn/svn.c:2848: warning: 'svn_client_commit3' is deprecated (declared at /usr/include/subversion-1/svn_client.h:1744)
/var/tmp/svn/svn.c: In function 'zif_svn_add':
/var/tmp/svn/svn.c:3012: warning: 'svn_client_add2' is deprecated (declared at /usr/include/subversion-1/svn_client.h:1377)
/var/tmp/svn/svn.c: In function 'zif_svn_status':
/var/tmp/svn/svn.c:3121: warning: 'svn_client_status2' is deprecated (declared at /usr/include/subversion-1/svn_client.h:1878)
/var/tmp/svn/svn.c: In function 'zif_svn_update':
/var/tmp/svn/svn.c:3185: warning: 'svn_client_update' is deprecated (declared at /usr/include/subversion-1/svn_client.h:1205)
/var/tmp/svn/svn.c: In function 'zif_svn_repos_fs_begin_txn_for_commit':
/var/tmp/svn/svn.c:3253: warning: 'svn_repos_fs_begin_txn_for_commit' is deprecated (declared at /usr/include/subversion-1/svn_repos.h:1664)
make: *** [svn.lo] Error 1
ERROR: `make' failed
[root@serv src]#



Expected result:
----------------
I would like to resolve what ever this error message is complaining about, but I'm not exactly sure what to do. 


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-09-16 20:03 UTC] alan at akbkhome dot com
Sorry, but your problem does not imply a bug in PECL itself.  For a
list of more appropriate places to ask for help using PECL, please
visit http://pecl.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PECL.

Ok, Please do not use CentOS, it is maintained by tiny group 
of 
people and most packages are years old...

Basically the APR lib is broken on the system.

the -Llib64 will not help as that is a linker option, you 
are 
getting a compile problem (it might help later if things 
fail 
to link)

This is the error 
/usr/include/apr-1/apr_file_info.h:137: error: redefinition 
of 
typedef 'apr_ino_t'

/usr/include/apr-1/apr-x86_64.h:287: error: previous 
declaration of 'apr_ino_t' was here

A few things to try..
make a copy apr-1 for backup.
- try modifying the apr-x86_64.h or apr_file_info.h and 
commenting out the line that is causing problems

Or
Install libapr from source... which might end up having to 
install apache + php again...

Or
Try downloading and extracting the libapr1-dev debian 
package 
extracting and copying a few of the files that cause 
problems 
into the /usr/include/apr-1/ directory.

Again, I can not re-iterate hard enough, unless you are 
charging by the hour for a centos installation (And someone 
else is stupid enough to pay for it...), it will cost you 
dearly....
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 10:01:29 2024 UTC