php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58882 pecl install build error solr_types.h
Submitted: 2009-10-06 21:05 UTC Modified: 2009-10-07 21:40 UTC
From: jason at xlntads dot com Assigned: iekpo (profile)
Status: Closed Package: solr (PECL)
PHP Version: 5.3.0 OS: Cent OS 5.3
Private report: No CVE-ID: None
 [2009-10-06 21:05 UTC] jason at xlntads dot com
Description:
------------
build failure

Reproduce code:
---------------
pecl install solr-beta

Actual result:
--------------
downloading solr-0.9.0.tgz ...
Starting to download solr-0.9.0.tgz (81,236 bytes)
...................done: 81,236 bytes
28 source files, building
WARNING: php_bin /opt/php2/bin/php appears to have a suffix 
2/bin/php, but config variable php_suffix does not match
running: phpize
Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
building in /var/tmp/pear-build-root/solr-0.9.0
running: /tmp/pear/download/solr-0.9.0/configure
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
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 cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -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... /opt/php2
checking for PHP includes... -I/opt/php2/include/php -
I/opt/php2/include/php/main -I/opt/php2/include/php/TSRM -
I/opt/php2/include/php/Zend -I/opt/php2/include/php/ext -
I/opt/php2/include/php/ext/date/lib
checking for PHP extension directory... 
/opt/php2/lib/20090626
checking for PHP installed headers prefix... 
/opt/php2/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... re2c
checking for re2c version... 0.13.5 (ok)
checking for gawk... gawk
checking for cURL support... yes, shared
checking for cURL in default path... found in /usr/local
checking for cURL 7.18.0 or greater... libcurl 7.19.6
checking whether to enable solr functions... yes, shared
checking libxml2 install dir... no
checking for xml2-config path... /usr/local/bin/xml2-config
checking whether libxml build works... yes
checking for ld used by cc... /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 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 cc 
object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc static flag  works... yes
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc 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
running: make
/bin/sh /tmp/pear-build-root/solr-0.9.0/libtool --
mode=compile cc  -I. -I/tmp/pear/download/solr-0.9.0 -
DPHP_ATOM_INC -I/tmp/pear-build-root/solr-0.9.0/include -
I/tmp/pear-build-root/solr-0.9.0/main -
I/tmp/pear/download/solr-0.9.0 -I/opt/php2/include/php -
I/opt/php2/include/php/main -I/opt/php2/include/php/TSRM -
I/opt/php2/include/php/Zend -I/opt/php2/include/php/ext -
I/opt/php2/include/php/ext/date/lib -I/usr/local/include -
I/usr/local/include/libxml2  -DHAVE_CONFIG_H  -g -O2   -c 
/tmp/pear/download/solr-0.9.0/php_solr.c -o php_solr.lo
mkdir .libs
 cc -I. -I/tmp/pear/download/solr-0.9.0 -DPHP_ATOM_INC -
I/tmp/pear-build-root/solr-0.9.0/include -I/tmp/pear-build-
root/solr-0.9.0/main -I/tmp/pear/download/solr-0.9.0 -
I/opt/php2/include/php -I/opt/php2/include/php/main -
I/opt/php2/include/php/TSRM -I/opt/php2/include/php/Zend -
I/opt/php2/include/php/ext -
I/opt/php2/include/php/ext/date/lib -I/usr/local/include -
I/usr/local/include/libxml2 -DHAVE_CONFIG_H -g -O2 -c 
/tmp/pear/download/solr-0.9.0/php_solr.c  -fPIC -DPIC -o 
.libs/php_solr.o
In file included from /tmp/pear/download/solr-
0.9.0/php_solr.h:76,
                 from /tmp/pear/download/solr-
0.9.0/php_solr.c:21:
/tmp/pear/download/solr-0.9.0/solr_types.h:139: warning: 
declaration does not declare anything
/tmp/pear/download/solr-0.9.0/php_solr.c: In function 
'zm_startup_solr':
/tmp/pear/download/solr-0.9.0/php_solr.c:800: error: 
'ts_allocate_dtor' undeclared (first use in this function)
/tmp/pear/download/solr-0.9.0/php_solr.c:800: error: (Each 
undeclared identifier is reported only once
/tmp/pear/download/solr-0.9.0/php_solr.c:800: error: for 
each function it appears in.)
/tmp/pear/download/solr-0.9.0/php_solr.c:800: error: 
expected ';' before 'php_solr_globals_dtor'
make: *** [php_solr.lo] Error 1
ERROR: `make' failed



#### configure line from php 5.3.0 install, if it helps ####


./configure \
--enable-pic \
--enable-inline-optimization \
--enable-pcntl \
--prefix=/opt/php2 \
--exec-prefix=/opt/php2 \
--bindir=/opt/php2/bin \
--sbindir=/opt/php2/sbin \
--sysconfdir=/opt/php2/etc \
--datadir=/opt/php2/share \
--includedir=/opt/php2/include \
--libdir=/opt/php2/lib \
--libexecdir=/opt/php2/libexec \
--localstatedir=/opt/php2/var \
--sharedstatedir=/opt/php2/com \
--mandir=/opt/php2/share/man \
--infodir=/opt/php2/share/info \
--cache-file=../config.cache \
--with-libdir=lib \
--with-config-file-path=/opt/php2/etc \
--with-config-file-scan-dir=/opt/php2/etc/php.d \
--disable-rpath \
--with-bz2 \
--with-exec-dir=/opt/php2/bin \
--with-freetype-dir=/usr \
--with-png-dir=/usr \
--enable-gd-native-ttf \
--with-iconv \
--with-jpeg-dir=/usr \
--with-openssl \
--with-libexpat-dir=/usr \
--with-zlib \
--with-layout=GNU \
--enable-exif \
--enable-sockets \
--enable-sysvsem \
--enable-sysvshm \
--enable-sysvmsg \
--enable-ucd-snmp-hack \
--with-mime-magic=/usr/share/file/magic.mime \
--with-libxml-dir=/usr \
--disable-dba \
--without-unixODBC \
--disable-xmlreader \
--disable-xmlwriter \
--with-gd \
--with-mysqli=mysqlnd \
--with-mysql=mysqlnd \
--enable-mbstring \
--with-mcrypt \
--with-curl \
--with-gmp \
--enable-bcmath \
--with-pcre-dir=/usr/local


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-10-07 00:05 UTC] iekpo@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PECL.

This observation is only reproducable in the release candidate 5.3.0RC4.

Please try upgrading to PHP 5.3.0.

5.3.0 has been available for about 3 months now.
 [2009-10-07 09:35 UTC] jason at xlntads dot com
whoops, I am on the current release, not RC4.  Hit the wrong 
select option. re-opening.
 [2009-10-07 21:40 UTC] iekpo@php.net
Thank you for your bug report. This issue has been fixed
in the latest released version of the package, which you can download at
http://pecl.php.net/get/solr

This has been fixed in release 0.9.1
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Nov 28 21:03:16 2021 UTC