compiling PHP with --enable-maintainer-zts crypt_r( ) is unknown

From: Date: Thu, 29 Jan 2015 17:26:06 +0000
Subject: compiling PHP with --enable-maintainer-zts crypt_r( ) is unknown
Groups: php.general 
Request: Send a blank email to php-general+get-324320@lists.php.net to get a copy of this message
Hello i tried to build php 5.4.20 or 5.6.5 with ZTS support to use pthreads. But the build always stops with /usr/src/packages/BUILD/php-5.6.5/ext/standard/crypt.c: In function 'php_crypt': /usr/src/packages/BUILD/php-5.6.5/ext/standard/crypt.c:239:6: error: #error Data struct used by crypt_r() is unknown. Please report.
#    error Data struct used by crypt_r() is unknown. Please report.
^ /usr/src/packages/BUILD/php-5.6.5/ext/standard/crypt.c:241:3: warning: implicit declaration of function 'crypt_r' [-Wimplicit-function-declaration] crypt_res = crypt_r(password, salt, &buffer); ^ /usr/src/packages/BUILD/php-5.6.5/ext/standard/crypt.c:241:40: error: 'buffer' undeclared (first use in this function) crypt_res = crypt_r(password, salt, &buffer); ^ /usr/src/packages/BUILD/php-5.6.5/ext/standard/crypt.c:241:40: note: each undeclared identifier is reported only once for each function it appears in make: *** [ext/standard/crypt.lo] Fehler 1 my configure looks like this ./configure --prefix=/usr --datadir=/usr/share/php5 --mandir=/usr/share/man --bindir=/usr/bin --with-libdir=lib64 --includedir=/usr/include --sysconfdir=/etc/php5/apache2 --with-config-file-path=/etc/php5/apache2 --with-config-file-scan-dir=/etc/php5/conf.d --enable-libxml --enable-debug --enable-maintainer-zts --enable-session --with-pcre-regex=/usr --enable-xml --enable-simplexml --enable-spl --enable-filter --enable-inline-optimization --disable-rpath --disable-static --enable-shared --with-pic --with-gnu-ld --enable-re2c-cgoto --with-system-tzdata=/usr/share/zoneinfo --enable-hash --with-mhash --with-apxs2=/usr/sbin/apxs2 --disable-all in the end i wil only build the cli with pthread support to control the Banana PI Robot for my son. Best Regards Torsten

« previous php.general (#324320) next »