php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56829 Spread package does not compile
Submitted: 2006-02-07 22:50 UTC Modified: 2006-02-15 21:14 UTC
From: brianm at dealnews dot com Assigned: pajoye (profile)
Status: Closed Package: spread (PECL)
PHP Version: 5.1.1 OS: Gentoo Linux
Private report: No CVE-ID: None
 [2006-02-07 22:50 UTC] brianm at dealnews dot com
Description:
------------
I posted a bug about spread not installing properly here: 
http://pecl.php.net/bugs/bug.php?id=6721

I have moved forward and am trying to manually install the package.  However, the package does not compile.

For starters, I did not have the spread libs installed on my laptop and the configure script did not catch this.  It was not until I ran make that I got an error about that.  I would think that configure would need to check for the spread libraries.

After I installed the spread libs (via emerge on Gentoo), the package still does not compile.

Reproduce code:
---------------
# make
/bin/sh /root/spread-1.1/libtool --mode=compile gcc  -I. -I/root/spread-1.1 -DPHP_ATOM_INC -I/root/spread-1.1/include -I/root/spread-1.1/main -I/root/spread-1.1 -I/usr/lib/php5/include/php -I/usr/lib/php5/include/php/main -I/usr/lib/php5/include/php/TSRM -I/usr/lib/php5/include/php/Zend  -DHAVE_CONFIG_H  -g -O2   -c /root/spread-1.1/php_spread.c -o php_spread.lo
mkdir .libs
 gcc -I. -I/root/spread-1.1 -DPHP_ATOM_INC -I/root/spread-1.1/include -I/root/spread-1.1/main -I/root/spread-1.1 -I/usr/lib/php5/include/php -I/usr/lib/php5/include/php/main -I/usr/lib/php5/include/php/TSRM -I/usr/lib/php5/include/php/Zend -DHAVE_CONFIG_H -g -O2 -c /root/spread-1.1/php_spread.c  -fPIC -o .libs/php_spread.o
/root/spread-1.1/php_spread.c:38: error: `BYREF_NONE' undeclared here (not in a function)
/root/spread-1.1/php_spread.c:38: error: initializer element is not constant
/root/spread-1.1/php_spread.c:38: error: (near initialization for `a2_arg_force_ref[1]')
/root/spread-1.1/php_spread.c:38: error: `BYREF_FORCE' undeclared here (not in a function)
/root/spread-1.1/php_spread.c:38: error: initializer element is not constant
/root/spread-1.1/php_spread.c:38: error: (near initialization for `a2_arg_force_ref[2]')
/root/spread-1.1/php_spread.c: In function `zif_spread_receive':
/root/spread-1.1/php_spread.c:456: warning: passing arg 6 of `SP_receive' from incompatible pointer type
make: *** [php_spread.lo] Error 1


Expected result:
----------------
./configure would check for spread libs and the package should compile without error.

Actual result:
--------------
./configure does not detect that spread libs are not installed and the package does not compile after the libs are installed.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-02-15 21:14 UTC] pierre dot php at gmail dot com
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.


 [2007-08-27 06:51 UTC] neouf at net-leet dot com
I am running, on debian etch ( stable ) with php5 and i have the same problem.

root@godzilla7:/home/edd/spread-1.1# make
/bin/sh /home/edd/spread-1.1/libtool --mode=compile gcc  -I. -I/home/edd/spread-1.1 -DPHP_ATOM_INC -I/home/edd/spread-1.1/include -I/home/edd/spread-1.1/main -I/home/edd/spread-1.1 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /home/edd/spread-1.1/php_spread.c -o php_spread.lo
 gcc -I. -I/home/edd/spread-1.1 -DPHP_ATOM_INC -I/home/edd/spread-1.1/include -I/home/edd/spread-1.1/main -I/home/edd/spread-1.1 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/edd/spread-1.1/php_spread.c  -fPIC -DPIC -o .libs/php_spread.o
/home/edd/spread-1.1/php_spread.c:38: error: 'BYREF_NONE' undeclared here (not in a function)
/home/edd/spread-1.1/php_spread.c:38: error: 'BYREF_FORCE' undeclared here (not in a function)
/home/edd/spread-1.1/php_spread.c: In function 'zm_globals_ctor_spread':
/home/edd/spread-1.1/php_spread.c:131: warning: 'return' with a value, in function returning void
/home/edd/spread-1.1/php_spread.c: In function 'zm_globals_dtor_spread':
/home/edd/spread-1.1/php_spread.c:136: warning: 'return' with a value, in function returning void
/home/edd/spread-1.1/php_spread.c: In function 'zif_spread_receive':
/home/edd/spread-1.1/php_spread.c:456: warning: passing argument 6 of 'SP_receive' from incompatible pointer type
make: *** [php_spread.lo] Error 1


The archive on pecl is up to date ? Or only cvs ...

Ty
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 03:01:28 2024 UTC