php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58210 Errors during make
Submitted: 2008-06-02 18:35 UTC Modified: 2008-06-03 06:29 UTC
From: alexk at clearspeed dot com Assigned:
Status: Closed Package: svn (PECL)
PHP Version: 5.2.6 OS: RHEL WS rel. 4 (Nahant Update 4)
Private report: No CVE-ID: None
 [2008-06-02 18:35 UTC] alexk at clearspeed dot com
Description:
------------
(Note: I am actually running PHP 5.2.6, but for some reason it doesn't appear in the list).

I decompress the tarball, run phpize and then ./configure (results shown in actual result section) in the source directory. These don't produce any fatal errors, so I assume they are ok, however i've provided the output anyway. However, when it comes to running make, it dies with make: *** [svn.lo] Error 1 (as shown in the actual result section). It seems to mostly be complaining about undeclared variables with a few syntax errors. Note that the same result is ascertained using pecl install svn-0.3.

For reference my PHP was configured as follows:

'./configure' '--with-apxs2=/usr/sbin/apxs' '--cache-file=test-results.log' '--enable-embed=shared' '--with-jpeg-dir=/usr/lib' '--with-png-dir=/usr/lib' '--with-ttf=/usr/lib' '--with-freetype-dir=/usr/include' '--enable-gd-native-ttf' '--with-gettext=/usr/lib/gettext' '--with-gmp=/usr/lib' '--with-imap=/usr/lib' '--with-gd=/usr/lib' '--enable-ftp' '--with-mysql=/usr/lib/mysql' '--with-mysqli=/usr/lib/mysql/mysql_config' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--enable-mbstring' '--with-ncurses=/usr/lib' '--with-readline=/usr/include' '--with-libxml-dir=/usr/include/libxml2' '--enable-soap' '--enable-sockets' '--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm' '--with-xsl=/usr/lib' '--enable-zip' '--with-pear' '--with-kerberos' '--with-imap-ssl'

Thanks in advance for any assistance you can provide with this.

Reproduce code:
---------------
$ tar -zxvf svn-0.3.tgz
$ cd svn-0.3
$ phpize
$ ./configure
$ make

Expected result:
----------------
A successful make.

Actual result:
--------------
[root@apoc svn-0.3]# phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519



[root@apoc svn-0.3]# ./configure
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 for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20060613
checking for PHP installed headers prefix... /usr/local/include/php
checking for re2c... no
configure: WARNING: You will need re2c 0.12.0 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for svn support... yes, shared
checking for specifying the location of apr for svn... yes, shared
checking for svn includes... -I/usr/include/subversion-1  -I/usr/include/apr-0  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE
checking for svn libraries... -lsvn_client-1  -lapr-0
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
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 dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no

creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h




[root@apoc svn-0.3]# make
/bin/sh /root/php/svn-0.3/libtool --mode=compile gcc -I/usr/include/subversion-1  -I/usr/include/apr-0  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I. -I/root/php/svn-0.3 -DPHP_ATOM_INC -I/root/php/svn-0.3/include -I/root/php/svn-0.3/main -I/root/php/svn-0.3 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/include/subversion-1 -I/usr/include/apr-0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE  -DHAVE_CONFIG_H  -g -O2   -c /root/php/svn-0.3/svn.c -o svn.lo
mkdir .libs
 gcc -I/usr/include/subversion-1 -I/usr/include/apr-0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I. -I/root/php/svn-0.3 -DPHP_ATOM_INC -I/root/php/svn-0.3/include -I/root/php/svn-0.3/main -I/root/php/svn-0.3 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/include/subversion-1 -I/usr/include/apr-0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -DHAVE_CONFIG_H -g -O2 -c /root/php/svn-0.3/svn.c  -fPIC -DPIC -o .libs/svn.o
/root/php/svn-0.3/svn.c: In function `zif_svn_checkout':
/root/php/svn-0.3/svn.c:676: warning: assignment makes pointer from integer without a cast
/root/php/svn-0.3/svn.c: In function `zif_svn_cat':
/root/php/svn-0.3/svn.c:740: warning: assignment makes pointer from integer without a cast
/root/php/svn-0.3/svn.c: In function `zif_svn_log':
/root/php/svn-0.3/svn.c:1022: warning: assignment makes pointer from integer without a cast
/root/php/svn-0.3/svn.c: At top level:
/root/php/svn-0.3/svn.c:1788: error: syntax error before '*' token
/root/php/svn-0.3/svn.c: In function `info_func':
/root/php/svn-0.3/svn.c:1789: error: `baton' undeclared (first use in this function)
/root/php/svn-0.3/svn.c:1789: error: (Each undeclared identifier is reported only once
/root/php/svn-0.3/svn.c:1789: error: for each function it appears in.)
/root/php/svn-0.3/svn.c:1796: error: `path' undeclared (first use in this function)
/root/php/svn-0.3/svn.c:1797: error: `info' undeclared (first use in this function)
/root/php/svn-0.3/svn.c:1810: error: `pool' undeclared (first use in this function)
/root/php/svn-0.3/svn.c: In function `zif_svn_info':
/root/php/svn-0.3/svn.c:1855: warning: assignment makes pointer from integer without a cast
/root/php/svn-0.3/svn.c: In function `zif_svn_export':
/root/php/svn-0.3/svn.c:1897: warning: assignment makes pointer from integer without a cast
/root/php/svn-0.3/svn.c: In function `zif_svn_copy':
/root/php/svn-0.3/svn.c:1961: error: `svn_commit_info_t' undeclared (first use in this function)
/root/php/svn-0.3/svn.c:1961: error: `info' undeclared (first use in this function)
/root/php/svn-0.3/svn.c:1984: warning: assignment makes pointer from integer without a cast
/root/php/svn-0.3/svn.c: In function `zif_svn_blame':
/root/php/svn-0.3/svn.c:2054: error: `svn_diff_file_options_t' undeclared (first use in this function)
/root/php/svn-0.3/svn.c:2054: error: syntax error before "diff_options"
/root/php/svn-0.3/svn.c:2081: error: `diff_options' undeclared (first use in this function)
/root/php/svn-0.3/svn.c:2081: error: `svn_diff_file_ignore_space_none' undeclared (first use in this function)
/root/php/svn-0.3/svn.c:2096: warning: assignment makes pointer from integer without a cast
/root/php/svn-0.3/svn.c: At top level:
/root/php/svn-0.3/svn.c:2335: error: syntax error before "svn_wc_status2_t"
/root/php/svn-0.3/svn.c: In function `php_svn_status_receiver':
/root/php/svn-0.3/svn.c:2337: error: `baton' undeclared (first use in this function)
/root/php/svn-0.3/svn.c:2344: error: `path' undeclared (first use in this function)
/root/php/svn-0.3/svn.c:2345: error: `status' undeclared (first use in this function)
/root/php/svn-0.3/svn.c: In function `zif_svn_status':
/root/php/svn-0.3/svn.c:2432: warning: assignment makes pointer from integer without a cast
/root/php/svn-0.3/svn.c: In function `zif_svn_fs_begin_txn2':
/root/php/svn-0.3/svn.c:2804: warning: assignment makes pointer from integer without a cast
make: *** [svn.lo] Error 1

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-06-02 18:56 UTC] scottmac@php.net
What version of the subversion do you have on your server?
 [2008-06-02 19:03 UTC] alexk at clearspeed dot com
[root@apoc svn-0.3]# svn --version
svn, version 1.1.4 (r13838)
   compiled Apr 12 2005, 16:01:59
 [2008-06-02 20:55 UTC] scottmac@php.net
The minimum version that we can build against is 1.3. In order 
to add new features we needed to sacrifice the older outdated 
API.
 [2008-06-02 21:16 UTC] scottmac@php.net
I've added code so that it will error out during configure.
 [2008-06-03 06:29 UTC] alexk at clearspeed dot com
svn, version 1.4.6 (r28521)
   compiled Jun  3 2008, 09:56:00

Upgraded my SVN. All worked fine this time. Thanks for your help.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Tue Jun 25 08:01:25 2019 UTC