sektioneins / suhosin

SUHOSIN [수호신] for PHP 5.x - The PHP security extension.
https://www.suhosin.org
Other
471 stars 71 forks source link

/suhosin.c:35:10: fatal error: 'php_logos.h' file not found #117

Open pinnaclesystemsgroup opened 6 years ago

pinnaclesystemsgroup commented 6 years ago

Hello

I have used this PHP security tool on RHEL and CENTOS but never built it from scratch on OSX. The issue is a missing 'php_logos.h' header file according to the build output ---

sudo phpize Password: Configuring for: PHP Api Version: 20121113 Zend Module Api No: 20121212 Zend Extension Api No: 220121212 ➜ suhosin-0.9.33 git:(newsite) ✗ ./configure checking for grep that handles long lines and -e... /usr/local/bin/ggrep checking for egrep... /usr/local/bin/ggrep -E checking for a sed that does not truncate output... /usr/local/bin/gsed checking for cc... cc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no 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... x86_64-apple-darwin13.4.0 checking host system type... x86_64-apple-darwin13.4.0 checking target system type... x86_64-apple-darwin13.4.0 checking for PHP prefix... /usr/local/Cellar/php55/5.5.38_12 checking for PHP includes... -I/usr/local/Cellar/php55/5.5.38_12/include/php -I/usr/local/Cellar/php55/5.5.38_12/include/php/main -I/usr/local/Cellar/php55/5.5.38_12/include/php/TSRM -I/usr/local/Cellar/php55/5.5.38_12/include/php/Zend -I/usr/local/Cellar/php55/5.5.38_12/include/php/ext -I/usr/local/Cellar/php55/5.5.38_12/include/php/ext/date/lib checking for PHP extension directory... /usr/local/Cellar/php55/5.5.38_12/lib/php/extensions/no-debug-non-zts-20121212 checking for PHP installed headers prefix... /usr/local/Cellar/php55/5.5.38_12/include/php checking if debug is enabled... no checking if zts is enabled... no checking for re2c... re2c checking for re2c version... 1.0.3 (ok) checking for gawk... gawk checking whether to enable suhosin support... yes, shared checking for ld used by cc... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm 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... 196608 checking command to parse /usr/bin/nm output from cc object... ok checking for objdir... .libs checking for ar... ar checking for ranlib... ranlib checking for strip... strip checking for dsymutil... dsymutil checking for nmedit... nmedit checking for -single_module linker flag... yes checking for -exported_symbols_list linker flag... yes checking if cc supports -fno-rtti -fno-exceptions... yes checking for cc option to produce PIC... -fno-common checking if cc PIC flag -fno-common works... yes checking if cc static flag -static works... no checking if cc supports -c -o file.o... yes checking whether the cc linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin13.4.0 dyld 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 config.status: config.h is unchanged ➜ suhosin-0.9.33 git:(newsite) ✗ make /bin/sh /Users/..../suhosin/suhosin-0.9.33/libtool --mode=compile cc -I. -I/Users/..../suhosin/suhosin-0.9.33 -DPHP_ATOM_INC -I/Users/..../suhosin/suhosin-0.9.33/include -I/Users/..../suhosin/suhosin-0.9.33/main -I/Users/..../suhosin/suhosin-0.9.33 -I/usr/local/Cellar/php55/5.5.38_12/include/php -I/usr/local/Cellar/php55/5.5.38_12/include/php/main -I/usr/local/Cellar/php55/5.5.38_12/include/php/TSRM -I/usr/local/Cellar/php55/5.5.38_12/include/php/Zend -I/usr/local/Cellar/php55/5.5.38_12/include/php/ext -I/usr/local/Cellar/php55/5.5.38_12/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /Users/..../suhosin/suhosin-0.9.33/suhosin.c -o suhosin.lo mkdir .libs cc -I. -I/Users/..../suhosin/suhosin-0.9.33 -DPHP_ATOM_INC -I/Users/..../suhosin/suhosin-0.9.33/include -I/Users/..../suhosin/suhosin-0.9.33/main -I/Users/..../suhosin/suhosin-0.9.33 -I/usr/local/Cellar/php55/5.5.38_12/include/php -I/usr/local/Cellar/php55/5.5.38_12/include/php/main -I/usr/local/Cellar/php55/5.5.38_12/include/php/TSRM -I/usr/local/Cellar/php55/5.5.38_12/include/php/Zend -I/usr/local/Cellar/php55/5.5.38_12/include/php/ext -I/usr/local/Cellar/php55/5.5.38_12/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /Users/..../suhosin/suhosin-0.9.33/suhosin.c -fno-common -DPIC -o .libs/suhosin.o /Users/..../suhosin/suhosin-0.9.33/suhosin.c:35:10: fatal error: 'php_logos.h' file not found

include "php_logos.h"

     ^

1 error generated. make: *** [suhosin.lo] Error 1

bef commented 6 years ago

Please install a current version of Suhosin, e.g.

#> git clone https://github.com/sektioneins/suhosin.git
#> cd suhosin
#> phpize
#> ./configure
#> make
#> make install