[Pkg-php-pecl] Bug#849954: php-pecl-http: Fails to build from source on big-endian targets

John Paul Adrian Glaubitz glaubitz at physik.fu-berlin.de
Mon Jan 2 16:18:41 UTC 2017


Source: php-pecl-http
Version: 3.1.0+2.6.0-3
Severity: serious
Justification: fails to build from source

Hi!

php-pecl-http currently fails to build from source on big-endian targets:

/bin/bash /«BUILDDIR»/php-pecl-http-3.1.0+2.6.0/build-7.0/libtool --mode=compile cc  -I. -I/«BUILDDIR»/php-pecl-http-3.1.0+2.6.0/build-7.0 -DPHP_ATOM_INC -I/«BUILDDIR»/php-pecl-http-3.1.0+2.6.0/build-7.0/include -I/«BUILDDIR»/php-pecl-http-3.1.0+2.6.0/build-7.0/main -I/«BUILDDIR»/php-pecl-http-3.1.0+2.6.0/build-7.0 -I/usr/include/php/20151012 -I/usr/include/php/20151012/main -I/usr/include/php/20151012/TSRM -I/usr/include/php/20151012/Zend -I/usr/include/php/20151012/ext -I/usr/include/php/20151012/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/php/20151012/ext/raphf -I/usr/include/php/20151012/ext/propro -I/«BUILDDIR»/php-pecl-http-3.1.0+2.6.0/build-7.0/src  -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_CONFIG_H  -g -O2 -fdebug-prefix-map=/«BUILDDIR»/php-pecl-http-3.1.0+2.6.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pedantic   -c /«BUILDDIR»/php-pecl-http-3.1.0+2.6.0/build-7.0/src/php_http_etag.c -o src/php_http_etag.lo 
libtool: compile:  cc -I. -I/«BUILDDIR»/php-pecl-http-3.1.0+2.6.0/build-7.0 -DPHP_ATOM_INC -I/«BUILDDIR»/php-pecl-http-3.1.0+2.6.0/build-7.0/include -I/«BUILDDIR»/php-pecl-http-3.1.0+2.6.0/build-7.0/main -I/«BUILDDIR»/php-pecl-http-3.1.0+2.6.0/build-7.0 -I/usr/include/php/20151012 -I/usr/include/php/20151012/main -I/usr/include/php/20151012/TSRM -I/usr/include/php/20151012/Zend -I/usr/include/php/20151012/ext -I/usr/include/php/20151012/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/php/20151012/ext/raphf -I/usr/include/php/20151012/ext/propro -I/«BUILDDIR»/php-pecl-http-3.1.0+2.6.0/build-7.0/src -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_CONFIG_H -g -O2 -fdebug-prefix-map=/«BUILDDIR»/php-pecl-http-3.1.0+2.6.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pedantic -c /«BUILDDIR»/php-pecl-http-3.1.0+2.6.0/build-7.0/src/php_http_etag.c  -fPIC -DPIC -o src/.libs/php_http_etag.o
In file included from /«BUILDDIR»/php-pecl-http-3.1.0+2.6.0/build-7.0/src/php_http_etag.c:13:0:
/«BUILDDIR»/php-pecl-http-3.1.0+2.6.0/build-7.0/src/php_http_api.h:120:37: warning: ISO C does not allow extra ';' outside of a function [-Wpedantic]
 ZEND_EXTERN_MODULE_GLOBALS(php_http);
                                     ^
/«BUILDDIR»/php-pecl-http-3.1.0+2.6.0/build-7.0/src/php_http_etag.c: In function 'php_http_etag_finish':
/«BUILDDIR»/php-pecl-http-3.1.0+2.6.0/build-7.0/src/php_http_etag.c:63:20: error: #if with no expression
 #if WORDS_BIGENDIAN
                    ^
Makefile:242: recipe for target 'src/php_http_etag.lo' failed
make[2]: *** [src/php_http_etag.lo] Error 1

The "#if" is wrong. What the author probably intended to write was "#ifdef"
as "#if" always requires an expression to test.

Thanks,
Adrian

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz at debian.org
`. `'   Freie Universitaet Berlin - glaubitz at physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913


More information about the Pkg-php-pecl mailing list