Bug #10716: ext/iconv doesn't find php.h
| From: | cynic@php.net | Date: | Mon, 07 May 2001 19:13:13 +0000 |
| Subject: | Bug #10716: ext/iconv doesn't find php.h | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-54297@lists.php.net to get a copy of this message | ||
From: cynic@php.net
Operating system: NT5 SP1
PHP version: 4.0 Latest CVS (2001-05-07)
PHP Bug Type: Compile Failure
Bug description: ext/iconv doesn't find php.h
this is driving me mad:
the project file for ext/iconv properly adds "../../main" to /I, but #include
"php.h" (and #include "php_ini.h") in ext/iconv/iconv.c fail. When I add /I
"(abs-path-to-main/)" it works. What's up?
Nevertheless, attempts to build this extension fail no matter what:
Deleting intermediate files and output files for project 'iconv - Win32 Release_TS'.
--------------------Configuration: iconv - Win32 Release_TS--------------------
Compiling...
iconv.c
D:\compile\php\php4-200105070945\ext\iconv\iconv.c(58) : error C2065: 'php_minit_iconv' :
undeclared identifier
D:\compile\php\php4-200105070945\ext\iconv\iconv.c(58) : error C2099: initializer is not a constant
D:\compile\php\php4-200105070945\ext\iconv\iconv.c(59) : error C2065:
'php_mshutdown_iconv' : undeclared identifier
D:\compile\php\php4-200105070945\ext\iconv\iconv.c(59) : error C2099: initializer is not a constant
D:\compile\php\php4-200105070945\ext\iconv\iconv.c(62) : error C2065: 'php_info_iconv' :
undeclared identifier
D:\compile\php\php4-200105070945\ext\iconv\iconv.c(62) : error C2099: initializer is not a constant
D:\compile\php\php4-200105070945\ext\iconv\iconv.c(63) : warning C4047: 'initializing' :
'int ' differs in levels of indirection from 'void *'
D:\compile\php\php4-200105070945\ext\iconv\iconv.c(63) : warning C4047: 'initializing' :
'void *' differs in levels of indirection from 'const int '
Error executing xicl6.exe.
php_iconv.dll - 6 error(s), 2 warning(s)
--
Edit Bug report at: http://bugs.php.net/?id=10716&edit=1