Edit report at https://bugs.php.net/bug.php?id=62495&edit=1

 ID:                 62495
 Updated by:         tony2...@php.net
 Reported by:        maksim at woyager dot ru
 Summary:            Pinba extension compile errors
-Status:             Open
+Status:             Not a bug
 Type:               Bug
 Package:            Compile Failure
 Operating System:   Linux Debian
 PHP Version:        5.4.4
 Block user comment: N
 Private report:     N

 New Comment:

Pinba was never an officially supported extension, so use other channels to 
report bugs.


Previous Comments:
------------------------------------------------------------------------
[2012-07-06 13:39:54] maksim at woyager dot ru

Description:
------------
PHP Version 5.4.4
Linux localhost 2.6.32-5-amd64 #1 SMP Sun May 6 04:00:17 UTC 2012 x86_64
Configure Command       './configure' '--disable-all' '--enable-xmlwriter' 
'--enable-libxml' '--enable-simplexml' '--enable-xml' '--enable-xmlreader' 
'--enable-json' '--enable-session' '--enable-zip' '--with-curl' '--enable-ftp' 
'--with-openssl' '--with-iconv' '--with-jpeg-dir=/usr/local' 
'--with-png-dir=/usr/local' '--with-freetype-dir' '--with-zlib' 
'--enable-mbstring' '--enable-sockets' '--enable-ctype' '--enable-hash' 
'--enable-dom' '--enable-pcntl' '--with-ldap' '--enable-fpm' '--with-mssql' 
'--enable-soap' '--with-mysql' 

Trouble with compiling pinba.org's pinba php extension.

localhost:/home/woyager/pinba_extension-201112281455# make
/bin/bash /home/woyager/pinba_extension-201112281455/libtool --mode=compile g++ 
-DNDEBUG -I. -I/home/woyager/pinba_extension-201112281455 -DPHP_ATOM_INC 
-I/home/woyager/pinba_extension-201112281455/include 
-I/home/woyager/pinba_extension-201112281455/main 
-I/home/woyager/pinba_extension-201112281455 -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  -DHAVE_CONFIG_H  -g -O2   -c 
/home/woyager/pinba_extension-201112281455/pinba.cc -o pinba.lo
mkdir .libs
 g++ -DNDEBUG -I. -I/home/woyager/pinba_extension-201112281455 -DPHP_ATOM_INC 
-I/home/woyager/pinba_extension-201112281455/include 
-I/home/woyager/pinba_extension-201112281455/main 
-I/home/woyager/pinba_extension-201112281455 -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 -DHAVE_CONFIG_H -g -O2 -c 
/home/woyager/pinba_extension-201112281455/pinba.cc  -fPIC -DPIC -o 
.libs/pinba.o
/home/woyager/pinba_extension-201112281455/pinba.cc: In function ‘int 
php_pinba_key_compare(const void*, const void*)’:
/home/woyager/pinba_extension-201112281455/pinba.cc:585: error: invalid 
conversion from ‘const char*’ to ‘char*’
/home/woyager/pinba_extension-201112281455/pinba.cc:594: error: invalid 
conversion from ‘const char*’ to ‘char*’
/home/woyager/pinba_extension-201112281455/pinba.cc: In function ‘void 
zif_pinba_get_info(int, zval*, zval**, zval*, int)’:
/home/woyager/pinba_extension-201112281455/pinba.cc:1146: warning: deprecated 
conversion from string constant to ‘char*’
/home/woyager/pinba_extension-201112281455/pinba.cc:1152: warning: deprecated 
conversion from string constant to ‘char*’
/home/woyager/pinba_extension-201112281455/pinba.cc: At global scope:
/home/woyager/pinba_extension-201112281455/pinba.cc:1262: error: 
‘function_entry’ does not name a type
/home/woyager/pinba_extension-201112281455/pinba.cc:1367: warning: deprecated 
conversion from string constant to ‘char*’
/home/woyager/pinba_extension-201112281455/pinba.cc:1367: warning: deprecated 
conversion from string constant to ‘char*’
/home/woyager/pinba_extension-201112281455/pinba.cc:1367: warning: deprecated 
conversion from string constant to ‘char*’
/home/woyager/pinba_extension-201112281455/pinba.cc: In function ‘int 
zm_activate_pinba(int, int)’:
/home/woyager/pinba_extension-201112281455/pinba.cc:1461: error: 
‘output_globals’ was not declared in this scope
/home/woyager/pinba_extension-201112281455/pinba.cc: In function ‘int 
zm_deactivate_pinba(int, int)’:
/home/woyager/pinba_extension-201112281455/pinba.cc:1475: error: 
‘output_globals’ was not declared in this scope
/home/woyager/pinba_extension-201112281455/pinba.cc: At global scope:
/home/woyager/pinba_extension-201112281455/pinba.cc:1512: error: 
‘pinba_functions’ was not declared in this scope
/home/woyager/pinba_extension-201112281455/pinba.cc:1522: error: too many 
initializers for ‘zend_module_entry’
make: *** [pinba.lo] Ошибка 1

Configure out

localhost:/home/woyager/pinba_extension-201112281455# ./configure 
--with-pinba=/usr --with-php-config=/usr/local/bin/php-config
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
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 ISO C89... 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... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-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-20100525
checking for PHP installed headers prefix... /usr/local/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 Pinba support... yes, shared
checking for Google Protocol Buffers files in /usr... found
checking for Google Protobuf compiler... /usr/bin/protoc
checking for Google Protobuf version... 2.3.0
checking for library containing pthread_once... -lpthread
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
configure: WARNING: Regenerating protocol code
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 recognize 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 how to run the C++ preprocessor... g++ -E
checking the maximum length of command line arguments... 1572864
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 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 static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) 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
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared 
libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared 
libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
(cached) (cached) checking how to hardcode library paths into programs... 
immediate
configure: creating ./config.status
config.status: creating config.h
config.status: config.h is unchanged


Test script:
---------------
phpize
./configure --with-pinba=/usr --with-php-config=/usr/local/bin/php-config
make

Expected result:
----------------
Extension compiled

Actual result:
--------------
Error on compile time


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=62495&edit=1

Reply via email to