Ticket #180 (new defect)

Opened 2 years ago

Last modified 9 months ago

make error

Reported by: lendy Assigned to: somebody
Priority: minor Milestone: 0.9.6
Component: eAccelerator Version: 0.9.5
Keywords: php_var.h Cc:

Description

shm.c

#include "standard/php_var.h"

may be path error!

Change History

09/22/06 06:48:56 changed by lendy

[root@localhost php-5.1.6]# make /bin/sh /usr/src/php-5.1.6/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/eaccelerator/ -I/usr/src/php-5.1.6/ext/eaccelerator/ -DPHP_ATOM_INC -I/usr/src/php-5.1.6/include -I/usr/src/php-5.1.6/main -I/usr/src/php-5.1.6 -I/usr/local/libxml2/include/libxml2 -I/usr/local/include -I/usr/src/php-5.1.6/ext/date/lib -I/usr/local/ssl/include -I/usr/local/modules/jpeg6/include -I/usr/local/modules/freetype/include -I/usr/local/modules/freetype/include/freetype2 -I/usr/local/gd2/include -I/usr/src/php-5.1.6/ext/mbstring/oniguruma -I/usr/src/php-5.1.6/ext/mbstring/libmbfl -I/usr/src/php-5.1.6/ext/mbstring/libmbfl/mbfl -I/usr/local/mysql/include/mysql -I/usr/src/php-5.1.6/TSRM -I/usr/src/php-5.1.6/Zend -I/usr/include -g -O2 -prefer-non-pic -c /usr/src/php-5.1.6/ext/eaccelerator/shm.c -o ext/eaccelerator/shm.lo /usr/src/php-5.1.6/ext/eaccelerator/shm.c: In function `zif_eaccelerator_put': /usr/src/php-5.1.6/ext/eaccelerator/shm.c:112: error: `php_serialize_data_t' undeclared (first use in this function) /usr/src/php-5.1.6/ext/eaccelerator/shm.c:112: error: (Each undeclared identifier is reported only once /usr/src/php-5.1.6/ext/eaccelerator/shm.c:112: error: for each function it appears in.) /usr/src/php-5.1.6/ext/eaccelerator/shm.c:112: error: syntax error before "var_hash" /usr/src/php-5.1.6/ext/eaccelerator/shm.c:113: error: `smart_str' undeclared (first use in this function) /usr/src/php-5.1.6/ext/eaccelerator/shm.c:116: error: `var_hash' undeclared (first use in this function) /usr/src/php-5.1.6/ext/eaccelerator/shm.c:117: error: `buf' undeclared (first use in this function) /usr/src/php-5.1.6/ext/eaccelerator/shm.c: At top level: /usr/src/php-5.1.6/ext/eaccelerator/shm.c:126: error: syntax error before "else" /usr/src/php-5.1.6/ext/eaccelerator/shm.c:131: error: syntax error before '->' token /usr/src/php-5.1.6/ext/eaccelerator/shm.c:133: error: syntax error before '->' token /usr/src/php-5.1.6/ext/eaccelerator/shm.c: In function `zif_eaccelerator_get': /usr/src/php-5.1.6/ext/eaccelerator/shm.c:151: error: `php_unserialize_data_t' undeclared (first use in this function) /usr/src/php-5.1.6/ext/eaccelerator/shm.c:151: error: syntax error before "var_hash" /usr/src/php-5.1.6/ext/eaccelerator/shm.c:154: error: `var_hash' undeclared (first use in this function) make: *** [ext/eaccelerator/shm.lo] Error 1

09/22/06 09:12:11 changed by lendy

  • milestone changed from 0.9.5 to 0.9.6.

11/08/06 15:23:41 changed by bart

  • priority changed from major to minor.

I think you are trying to compile eAccelerator for a new php version but didn't run phpize from the version. So the makefile is still using the old sources. The include path really works, the phpize script makes sure that the root source dir and the ext, main and Zend subdirectories are in the include path.

11/06/07 22:31:38 changed by MaZderMind

I saw this when compiling under windows using VC++. In the VC-project-file the ext-path is missing.