#26386 [Opn]: Error while compiling bcompiler

From: Date: Mon, 24 Nov 2003 19:50:05 +0000
Subject: #26386 [Opn]: Error while compiling bcompiler
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-23839@lists.php.net to get a copy of this message
ID: 26386 User updated by: yvan dot taviaud at m4am dot net Reported By: yvan dot taviaud at m4am dot net Status: Open Bug Type: PECL related Operating System: Debian 2.4.22 PHP Version: 4CVS-2003-11-24 (stable) New Comment: I've just thought about testing the previous version, sothe 0.4, and the 0.4 works well (at least the library is compiled/loaded without error, not tried yet if the functions within work ;o) So my bug is only for the 0.5, I'll use the 0.4 for the moment. Thanks a lot for this great protection of code ! Previous Comments: ------------------------------------------------------------------------ [2003-11-24 13:50:34] yvan dot taviaud at m4am dot net Description: ------------ While making the bcompiler extensions using PEAR, I got the following warning message (tried to make it with the --enable-bcompiler while compiling PHP core, but same error still occurs, and the module .so as the same size) : running make : /bin/sh /var/tmp/pear-build-root/bcompiler-0.5/libtool --mode=compile gcc -I. -I/tmp/tmpIGYOQU/bcompiler-0.5 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/bcompiler-0.5/include -I/var/tmp/pear-build-root/bcompiler-0.5/main -I/tmp/tmpIGYOQU/bcompiler-0.5 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/Zend -I/usr/local/include/php/TSRM -DHAVE_CONFIG_H -g -O2 -prefer-pic -c /tmp/tmpIGYOQU/bcompiler-0.5/bcompiler.c -o bcompiler.lo mkdir .libs gcc -I. -I/tmp/tmpIGYOQU/bcompiler-0.5 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/bcompiler-0.5/include -I/var/tmp/pear-build-root/bcompiler-0.5/main -I/tmp/tmpIGYOQU/bcompiler-0.5 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/Zend -I/usr/local/include/php/TSRM -DHAVE_CONFIG_H -g -O2 -c /tmp/tmpIGYOQU/bcompiler-0.5/bcompiler.c -fPIC -DPIC -o .libs/bcompiler.o /tmp/tmpIGYOQU/bcompiler-0.5/bcompiler.c: In function `bcompiler_stream_bz2open_from_BZFILE': /tmp/tmpIGYOQU/bcompiler-0.5/bcompiler.c:953: warning: passing arg 1 of `_php_stream_alloc' from incompatible pointer type /bin/sh /var/tmp/pear-build-root/bcompiler-0.5/libtool --mode=link gcc -DPHP_ATOM_INC -I/var/tmp/pear-build-root/bcompiler-0.5/include -I/var/tmp/pear-build-root/bcompiler-0.5/main -I/tmp/tmpIGYOQU/bcompiler-0.5 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/Zend -I/usr/local/include/php/TSRM -DHAVE_CONFIG_H -g -O2 -o bcompiler.la -export-dynamic -avoid-version -prefer-pic -module -rpath /var/tmp/pear-build-root/bcompiler-0.5/modules bcompiler.lo -lbz2 gcc -shared .libs/bcompiler.o -lbz2 -Wl,-soname -Wl,bcompiler.so -o .libs/bcompiler.so creating bcompiler.la (cd .libs && rm -f bcompiler.la && ln -s ../bcompiler.la bcompiler.la) /bin/sh /var/tmp/pear-build-root/bcompiler-0.5/libtool --mode=install cp ./bcompiler.la /var/tmp/pear-build-root/bcompiler-0.5/modules cp ./.libs/bcompiler.so /var/tmp/pear-build-root/bcompiler-0.5/modules/bcompiler.so cp ./.libs/bcompiler.lai /var/tmp/pear-build-root/bcompiler-0.5/modules/bcompiler.la PATH="$PATH:/sbin" ldconfig -n /var/tmp/pear-build-root/bcompiler-0.5/modules And when I run PHP with this module, I get : Warning: bcompiler: unable to open stream in Unknown on line 0 Reproduce code: --------------- pear install bcompiler-0.5.tgz Expected result: ---------------- No errors during compiling ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=26386&edit=1

« previous php.pear.dev (#23839) next »