Makefile:193: recipe for target 'suhosin.lo' failed

Desavil

Verified User
Joined
Jan 6, 2016
Messages
20
Hello,

I have a problem with new clean DirectAdmin installation.
I chose this option:
Would you like the default settings of apache 2.4 and php 5.6 cli? (y/n): y
And: suhosin install - yes

There was an error during installation:
Code:
/usr/local/php70/include/php/Zend/zend_hash.h:154:30: note: declared here
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^
/usr/local/directadmin/custombuild/suhosin-0.9.38/suhosin.c:1206:42: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type
   if (zend_hash_find(EG(ini_directives), "suhosin.rand.seedingkey", sizeof("suhosin.rand.seedingkey"), (void **) &i)==SUCCESS) {
                                          ^
In file included from /usr/local/php70/include/php/Zend/zend.h:36:0,
                 from /usr/local/php70/include/php/main/php.h:35,
                 from /usr/local/directadmin/custombuild/suhosin-0.9.38/suhosin.c:26:
/usr/local/php70/include/php/Zend/zend_hash.h:154:30: note: expected 'struct zend_string *' but argument is of type 'char *'
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^
/usr/local/directadmin/custombuild/suhosin-0.9.38/suhosin.c:1206:7: error: too many arguments to function 'zend_hash_find'
   if (zend_hash_find(EG(ini_directives), "suhosin.rand.seedingkey", sizeof("suhosin.rand.seedingkey"), (void **) &i)==SUCCESS) {
       ^
In file included from /usr/local/php70/include/php/Zend/zend.h:36:0,
                 from /usr/local/php70/include/php/main/php.h:35,
                 from /usr/local/directadmin/custombuild/suhosin-0.9.38/suhosin.c:26:
/usr/local/php70/include/php/Zend/zend_hash.h:154:30: note: declared here
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^
Makefile:193: recipe for target 'suhosin.lo' failed
make: *** [suhosin.lo] Error 1
*******************************************
*******************************************

Cannot find /usr/local/bin/php
Please recompile php with custombuild, eg:
cd /usr/local/directadmin/custombuild
./build all d

This appears to be a 64-bit system.
a common cause of http/php compile failures is mentioned here:
http://help.directadmin.com/item.php?id=213

*******************************************
*******************************************

OS: Debian 8.2, 64 bit
PHP Versions: 5.6 and 7.0 with php-fpm

How can I fix it, keeping suhosin?
 
Thanks for your reply.
So I am giving up with PHP 7.

I have last question. Is this configuration is good for shared hosting?
Code:
#PHP Settings
php1_release=5.6
php1_mode=php-fpm
php2_release=5.5
php2_mode=php-fpm
opcache=yes
htscanner=no
php_ini=no
php_timezone=Europe/Warsaw
php_ini_type=production
ioncube=yes
zend=yes
suhosin=yes
x_mail_header=yes

#MySQL Settings
mysql=5.6
mariadb=10.0
mysql_inst=no
mysql_backup=yes
mysql_backup_dir=/usr/local/directadmin/custombuild/mysql_backups
mysql_force_compile=no

#WEB Server Settings
webserver=nginx_apache
litespeed_serialno=trial
modsecurity=yes
modsecurity_ruleset=comodo
apache_ver=2.4
apache_mpm=auto
mod_ruid2=no
userdir_access=no
harden_symlinks_patch=yes
use_hostname_for_alias=no
redirect_host=srv1.99e.pl
redirect_host_https=no

#WEB Applications Settings
phpmyadmin=yes
phpmyadmin_ver=4
squirrelmail=no
roundcube=yes
webapps_inbox_prefix=no

#ClamAV-related Settings
clamav=yes
clamav_exim=yes
modsecurity_uploadscan=yes
proftpd_uploadscan=yes
pureftpd_uploadscan=yes
suhosin_php_uploadscan=yes

#Mail Settings
exim=yes
eximconf=no
eximconf_release=4.4
blockcracking=yes
easy_spam_fighter=yes
spamassassin=yes
sa_update=daily
dovecot=yes
dovecot_conf=yes
pigeonhole=yes

#FTP Settings
ftpd=proftpd

#Statistics Settings
awstats=no
webalizer=yes

#CustomBuild Settings
custombuild=2.0
autover=yes
bold=yes
clean=yes
cleanapache=yes
clean_old_tarballs=yes
clean_old_webapps=yes
downloadserver=files22.directadmin.com

#Cronjob Settings
cron=yes
cron_frequency=weekly
[email protected]
notifications=yes
da_autoupdate=no
updates=no
webapps_updates=yes

#CloudLinux Settings
cloudlinux=no
cagefs=no

#Advanced Settings
autoconf=yes
automake=yes
libtool=yes
curl=yes
new_pcre=no

I understand that after the clean DirectAdmin installation, I go to the directory: /usr/local/directadmin/custombuild, next I run the command: ./build options, next, I introduce changes to their: options.conf, next I run: ./build update_data, ./build versions and last: ./build update_versions

Am I doing it right?
 
I think PHP 7.0 is not yet supported by suhosin.

PHP 7.0 is not supported from what I found online.

I'm using Custombuild with two PHP versions (5.6 & 7.0) and had to disable suhosin on both. It would be great if Custombuild included options for php1/2_suhosin=yes/no
 
Back
Top