php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59293 can't compile
Submitted: 2010-07-05 04:46 UTC Modified: 2010-07-06 03:22 UTC
From: marc dot bennewitz at giata dot de Assigned:
Status: Closed Package: stem (PECL)
PHP Version: 5.3.2 OS: SuSE Linux 11.2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: marc dot bennewitz at giata dot de
New email:
PHP Version: OS:

 

 [2010-07-05 04:46 UTC] marc dot bennewitz at giata dot de
Description:
------------
Compiling failed with some errors on PHP-5.2.x & 5.3.x.
I didn't tested < 5.2.

Reproduce code:
---------------
/usr/local/bin/phpize
Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626

./configure --with-php-config=/usr/local/bin/phpize --enable-stem --enable-stem-danish --enable-stem-dutch --enable-stem-english --enable-stem-french --enable-stem-finnish --enable-stem-german --enable-stem-hungarian --enable-stem-italian --enable-stem-norwegian --enable-stem-portuguese  --enable-stem-romanian --enable-stem-russian-unicode --enable-stem-spanish --enable-stem-swedish --enable-stem-turkish-unicode
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/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 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... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for PHP prefix... Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
checking for PHP includes... Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
checking for PHP extension directory... Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
checking for PHP installed headers prefix... Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
checking for gawk... gawk
checking whether to enable stem support... yes, shared
checking whether to compile Danish stemmer... yes
checking whether to compile Dutch stemmer... yes
checking whether to compile English (non Porter) stemmer... yes
checking whether to compile French stemmer... yes
checking whether to compile Finnish stemmer... yes
checking whether to compile German stemmer... yes
checking whether to compile Hungarian stemmer... yes
checking whether to compile Italian stemmer... yes
checking whether to compile Norwegian stemmer... yes
checking whether to compile Portuguese stemmer... yes
checking whether to compile Romanian stemmer... yes
checking whether to compile Russian stemmer... yes
checking whether to compile Russian (UTF8) stemmer... yes
checking whether to compile Spanish stemmer... yes
checking whether to compile Swedish stemmer... yes
checking whether to compile Turkish (UTF8) stemmer... yes
checking for ld used by cc... /usr/i586-suse-linux/bin/ld
checking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld... yes
checking for /usr/i586-suse-linux/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 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/i586-suse-linux/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

make
/bin/sh [snip]/stem-1.5.0/libtool --mode=compile cc  -I. -I[snip]/stem-1.5.0 -DPHP_ATOM_INC -I[snip]/stem-1.5.0/include -I[snip]/stem-1.5.0/main -I[snip]/stem-1.5.0 Configuring for: PHP Api Version: 20090626 Zend Module Api No: 20090626 Zend Extension Api No: 220090626  -DHAVE_CONFIG_H  -g -O2   -c [snip]/stem-1.5.0/stem.c -o stem.lo
mkdir .libs
 cc -I. -I[snip]/stem-1.5.0 -DPHP_ATOM_INC -I[snip]/stem-1.5.0/include -I[snip]/stem-1.5.0/main -I[snip]/stem-1.5.0 Configuring for: PHP Api Version: 20090626 Zend Module Api No: 20090626 Zend Extension Api No: 220090626 -DHAVE_CONFIG_H -g -O2 -c [snip]/stem-1.5.0/stem.c  -fPIC -DPIC -o .libs/stem.o
cc: Configuring: No such file or directory
cc: for:: No such file or directory
cc: PHP: No such file or directory
cc: Api: No such file or directory
cc: Version:: No such file or directory
cc: 20090626: No such file or directory
cc: Zend: No such file or directory
cc: Module: No such file or directory
cc: Api: No such file or directory
cc: No:: No such file or directory
cc: 20090626: No such file or directory
cc: Zend: No such file or directory
cc: Extension: No such file or directory
cc: Api: No such file or directory
cc: No:: No such file or directory
cc: 220090626: No such file or directory
[snip]/stem-1.5.0/stem.c:16:17: error: php.h: No such file or directory
[snip]/stem-1.5.0/stem.c:17:21: error: php_ini.h: No such file or directory
[snip]/stem-1.5.0/stem.c:18:31: error: ext/standard/info.h: No such file or directory
In file included from [snip]/stem-1.5.0/stem.c:19:
[snip]/stem-1.5.0/php_stem.h:15: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?stem_module_entry?
In file included from [snip]/stem-1.5.0/stem.c:19:
[snip]/stem-1.5.0/php_stem.h:35: warning: data definition has no type or storage class
[snip]/stem-1.5.0/php_stem.h:35: warning: parameter names (without types) in function declaration
[snip]/stem-1.5.0/php_stem.h:36: warning: data definition has no type or storage class
[snip]/stem-1.5.0/php_stem.h:36: warning: parameter names (without types) in function declaration
[snip]/stem-1.5.0/php_stem.h:37: warning: data definition has no type or storage class
[snip]/stem-1.5.0/php_stem.h:37: warning: parameter names (without types) in function declaration
In file included from [snip]/stem-1.5.0/stem.c:19:
[snip]/stem-1.5.0/php_stem.h:60: warning: data definition has no type or storage class
[snip]/stem-1.5.0/php_stem.h:60: warning: parameter names (without types) in function declaration
In file included from [snip]/stem-1.5.0/stem.c:19:
[snip]/stem-1.5.0/php_stem.h:65: warning: data definition has no type or storage class
[snip]/stem-1.5.0/php_stem.h:65: warning: parameter names (without types) in function declaration
In file included from [snip]/stem-1.5.0/stem.c:19:
[snip]/stem-1.5.0/php_stem.h:70: warning: data definition has no type or storage class
[snip]/stem-1.5.0/php_stem.h:70: warning: parameter names (without types) in function declaration
In file included from [snip]/stem-1.5.0/stem.c:19:
[snip]/stem-1.5.0/php_stem.h:75: warning: data definition has no type or storage class
[snip]/stem-1.5.0/php_stem.h:75: warning: parameter names (without types) in function declaration
In file included from [snip]/stem-1.5.0/stem.c:19:
[snip]/stem-1.5.0/php_stem.h:80: warning: data definition has no type or storage class
[snip]/stem-1.5.0/php_stem.h:80: warning: parameter names (without types) in function declaration
In file included from [snip]/stem-1.5.0/stem.c:19:
[snip]/stem-1.5.0/php_stem.h:85: warning: data definition has no type or storage class
[snip]/stem-1.5.0/php_stem.h:85: warning: parameter names (without types) in function declaration
In file included from [snip]/stem-1.5.0/stem.c:19:
[snip]/stem-1.5.0/php_stem.h:90: warning: data definition has no type or storage class
[snip]/stem-1.5.0/php_stem.h:90: warning: parameter names (without types) in function declaration
In file included from [snip]/stem-1.5.0/stem.c:19:
[snip]/stem-1.5.0/php_stem.h:95: warning: data definition has no type or storage class
[snip]/stem-1.5.0/php_stem.h:95: warning: parameter names (without types) in function declaration
In file included from [snip]/stem-1.5.0/stem.c:19:
[snip]/stem-1.5.0/php_stem.h:100: warning: data definition has no type or storage class
[snip]/stem-1.5.0/php_stem.h:100: warning: parameter names (without types) in function declaration
In file included from [snip]/stem-1.5.0/stem.c:19:
[snip]/stem-1.5.0/php_stem.h:105: warning: data definition has no type or storage class
[snip]/stem-1.5.0/php_stem.h:105: warning: parameter names (without types) in function declaration
In file included from [snip]/stem-1.5.0/stem.c:19:
[snip]/stem-1.5.0/php_stem.h:110: warning: data definition has no type or storage class
[snip]/stem-1.5.0/php_stem.h:110: warning: parameter names (without types) in function declaration
In file included from [snip]/stem-1.5.0/stem.c:19:
[snip]/stem-1.5.0/php_stem.h:115: warning: data definition has no type or storage class
[snip]/stem-1.5.0/php_stem.h:115: warning: parameter names (without types) in function declaration
In file included from [snip]/stem-1.5.0/stem.c:19:
[snip]/stem-1.5.0/php_stem.h:120: warning: data definition has no type or storage class
[snip]/stem-1.5.0/php_stem.h:120: warning: parameter names (without types) in function declaration
In file included from [snip]/stem-1.5.0/stem.c:19:
[snip]/stem-1.5.0/php_stem.h:125: warning: data definition has no type or storage class
[snip]/stem-1.5.0/php_stem.h:125: warning: parameter names (without types) in function declaration
In file included from [snip]/stem-1.5.0/stem.c:19:
[snip]/stem-1.5.0/php_stem.h:130: warning: data definition has no type or storage class
[snip]/stem-1.5.0/php_stem.h:130: warning: parameter names (without types) in function declaration
In file included from [snip]/stem-1.5.0/stem.c:19:
[snip]/stem-1.5.0/php_stem.h:135: warning: data definition has no type or storage class
[snip]/stem-1.5.0/php_stem.h:135: warning: parameter names (without types) in function declaration
[snip]/stem-1.5.0/php_stem.h:139: warning: data definition has no type or storage class
[snip]/stem-1.5.0/php_stem.h:139: warning: parameter names (without types) in function declaration
[snip]/stem-1.5.0/php_stem.h:140: warning: data definition has no type or storage class
[snip]/stem-1.5.0/php_stem.h:140: warning: parameter names (without types) in function declaration
[snip]/stem-1.5.0/php_stem.h:141: warning: data definition has no type or storage class
[snip]/stem-1.5.0/php_stem.h:141: warning: parameter names (without types) in function declaration
[snip]/stem-1.5.0/php_stem.h:142: warning: data definition has no type or storage class
[snip]/stem-1.5.0/php_stem.h:142: warning: parameter names (without types) in function declaration
[snip]/stem-1.5.0/php_stem.h:143: warning: data definition has no type or storage class
[snip]/stem-1.5.0/php_stem.h:143: warning: parameter names (without types) in function declaration
[snip]/stem-1.5.0/stem.c:23: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?stem_functions?
[snip]/stem-1.5.0/stem.c:98: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?stem_module_entry?
[snip]/stem-1.5.0/stem.c: In function ?ZEND_GET_MODULE?:
[snip]/stem-1.5.0/stem.c:118: error: expected declaration specifiers before ?PHP_MINIT_FUNCTION?
[snip]/stem-1.5.0/stem.c:148: error: expected declaration specifiers before ?PHP_MSHUTDOWN_FUNCTION?
[snip]/stem-1.5.0/stem.c:156: error: expected declaration specifiers before ?PHP_MINFO_FUNCTION?
[snip]/stem-1.5.0/stem.c:206: error: expected ?)? before ?long?
[snip]/stem-1.5.0/stem.c:350: error: expected declaration specifiers before ?PHP_FUNCTION?
[snip]/stem-1.5.0/stem.c:361: error: expected declaration specifiers before ?PHP_FUNCTION?
[snip]/stem-1.5.0/stem.c:449: error: expected declaration specifiers before ?PHP_FUNCTION?
[snip]/stem-1.5.0/stem.c:455: error: expected declaration specifiers before ?PHP_FUNCTION?
[snip]/stem-1.5.0/stem.c:462: error: expected declaration specifiers before ?PHP_FUNCTION?
[snip]/stem-1.5.0/stem.c:469: error: expected declaration specifiers before ?PHP_FUNCTION?
[snip]/stem-1.5.0/stem.c:476: error: expected declaration specifiers before ?PHP_FUNCTION?
[snip]/stem-1.5.0/stem.c:483: error: expected declaration specifiers before ?PHP_FUNCTION?
[snip]/stem-1.5.0/stem.c:490: error: expected declaration specifiers before ?PHP_FUNCTION?
[snip]/stem-1.5.0/stem.c:497: error: expected declaration specifiers before ?PHP_FUNCTION?
[snip]/stem-1.5.0/stem.c:504: error: expected declaration specifiers before ?PHP_FUNCTION?
[snip]/stem-1.5.0/stem.c:511: error: expected declaration specifiers before ?PHP_FUNCTION?
[snip]/stem-1.5.0/stem.c:518: error: expected declaration specifiers before ?PHP_FUNCTION?
[snip]/stem-1.5.0/stem.c:525: error: expected declaration specifiers before ?PHP_FUNCTION?
[snip]/stem-1.5.0/stem.c:532: error: expected declaration specifiers before ?PHP_FUNCTION?
[snip]/stem-1.5.0/stem.c:539: error: expected declaration specifiers before ?PHP_FUNCTION?
[snip]/stem-1.5.0/stem.c:546: error: expected declaration specifiers before ?PHP_FUNCTION?
[snip]/stem-1.5.0/stem.c:553: error: expected declaration specifiers before ?PHP_FUNCTION?
[snip]/stem-1.5.0/stem.c:560: error: expected declaration specifiers before ?PHP_FUNCTION?
[snip]/stem-1.5.0/stem.c:563: error: expected ?{? at end of input
make: *** [stem.lo] Error 1


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-07-05 11:05 UTC] ohill@php.net
Your PHP prefix is wrong, hence invalid compile flags get passed in.

I suspect your phpize environment.

Can you do "pecl install stem" successfully? Can you build other PECL modules successfully?

Look at "PHP Prefix".. should resolve to "/usr" or "/usr/local", and not "Configuring for:.... xxxxx"
 [2010-07-06 03:22 UTC] marc dot bennewitz at giata dot de
Shame on my head!

All works fine with "--with-php-config=/usr/local/bin/php-config"
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 09 23:01:27 2024 UTC