[PHP-BUG] Bug #62612 [NEW]: readline extension compilation fails with sapi/cli/cli.h: No such file
From: pgodel at gmail dot com Operating system: Centos 6 & Ubuntu 12.04 PHP version: 5.4.4 Package: Compile Failure Bug Type: Bug Bug description:readline extension compilation fails with sapi/cli/cli.h: No such file Description: Trying to compile the readline extension standalone. cd etx/readline phpize ./configure make It fails with: php-5.4.4/ext/readline/readline_cli.c:64:26: fatal error: sapi/cli/cli.h: No such file or directory If I make a symlink to the sapi directory, the compilation works: ln -s ../../sap make -- Edit bug report at https://bugs.php.net/bug.php?id=62612&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=62612&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=62612&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=62612&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=62612&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=62612&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=62612&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=62612&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=62612&r=needscript Try newer version: https://bugs.php.net/fix.php?id=62612&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=62612&r=support Expected behavior: https://bugs.php.net/fix.php?id=62612&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=62612&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=62612&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=62612&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=62612&r=php4 Daylight Savings:https://bugs.php.net/fix.php?id=62612&r=dst IIS Stability: https://bugs.php.net/fix.php?id=62612&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=62612&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=62612&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=62612&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=62612&r=mysqlcfg
Bug #62612 [Opn]: readline extension compilation fails with sapi/cli/cli.h: No such file
Edit report at https://bugs.php.net/bug.php?id=62612&edit=1 ID: 62612 User updated by:pgodel at gmail dot com Reported by:pgodel at gmail dot com Summary:readline extension compilation fails with sapi/cli/cli.h: No such file Status: Open Type: Bug Package:Compile Failure Operating System: Centos 6 & Ubuntu 12.04 PHP Version:5.4.4 Block user comment: N Private report: N New Comment: The symlink is: cd ext/readline/ ln -s ../../sapi Sorry about that. Previous Comments: [2012-07-19 15:56:31] pgodel at gmail dot com Description: Trying to compile the readline extension standalone. cd etx/readline phpize ./configure make It fails with: php-5.4.4/ext/readline/readline_cli.c:64:26: fatal error: sapi/cli/cli.h: No such file or directory If I make a symlink to the sapi directory, the compilation works: ln -s ../../sap make -- Edit this bug report at https://bugs.php.net/bug.php?id=62612&edit=1
Bug #62612 [Fbk->Opn]: readline extension compilation fails with sapi/cli/cli.h: No such file
Edit report at https://bugs.php.net/bug.php?id=62612&edit=1 ID: 62612 User updated by:pgodel at gmail dot com Reported by:pgodel at gmail dot com Summary:readline extension compilation fails with sapi/cli/cli.h: No such file -Status: Feedback +Status: Open Type: Bug Package:Compile Failure Operating System: Centos 6 & Ubuntu 12.04 PHP Version:5.4.4 Block user comment: N Private report: N New Comment: This is the main PHP configure line: ./configure --with-apxs2=/usr/bin/apxs2 \ --prefix=/usr/local/php54 \ --with-config-file-scan-dir=/etc/php54/conf.d \ --enable-bcmath --enable-ctype --enable-exif --enable-mbstring -- enable-ftp --enable-intl --enable-sockets --enable-sysvmsg --enable-pcntl -- with-bz2 --with-curl --with-gettext --with-gd --enable-gd-native-ttf --enable- exif --with-freetype-dir=/usr --with-jpeg-dir=/usr --with-t1lib=/usr --with- mcrypt --with-openssl --with-kerberos --with-iconv --with-xsl --with-xmlrpc -- with-zlib --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd \ And the when compiling the readline extension I just run: ./configure # from ext/readline Previous Comments: [2012-07-20 04:28:47] larue...@php.net can you paste your config steps out? thanks [2012-07-19 15:57:27] pgodel at gmail dot com The symlink is: cd ext/readline/ ln -s ../../sapi Sorry about that. [2012-07-19 15:56:31] pgodel at gmail dot com Description: Trying to compile the readline extension standalone. cd etx/readline phpize ./configure make It fails with: php-5.4.4/ext/readline/readline_cli.c:64:26: fatal error: sapi/cli/cli.h: No such file or directory If I make a symlink to the sapi directory, the compilation works: ln -s ../../sap make -- Edit this bug report at https://bugs.php.net/bug.php?id=62612&edit=1
Bug #62612 [Opn]: readline extension compilation fails with sapi/cli/cli.h: No such file
Edit report at https://bugs.php.net/bug.php?id=62612&edit=1 ID: 62612 User updated by:pgodel at gmail dot com Reported by:pgodel at gmail dot com Summary:readline extension compilation fails with sapi/cli/cli.h: No such file Status: Open Type: Bug Package:Compile Failure Operating System: Centos 6 & Ubuntu 12.04 PHP Version:5.4.4 Block user comment: N Private report: N New Comment: Usage: /usr/local/php54/bin/php-config [OPTION] Options: --prefix[/usr/local/php54] --includes [-I/usr/local/php54/include/php - I/usr/local/php54/include/php/main -I/usr/local/php54/include/php/TSRM - I/usr/local/php54/include/php/Zend -I/usr/local/php54/include/php/ext - I/usr/local/php54/include/php/ext/date/lib] --ldflags [ -L/usr/lib/x86_64-linux-gnu] --libs [-lcrypt -lexslt -lresolv -lcrypt -lrt -lmcrypt -lltdl - lstdc++ -lt1 -lfreetype -lpng -lz -ljpeg -lcurl -lbz2 -lz -lrt -lm -ldl -lnsl - lxml2 -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -lcurl -lxml2 - lssl -lcrypto -ldl -lm -licui18n -licuuc -licudata -ldl -lm -licuio -lxml2 - lcrypt -lxml2 -lxml2 -lxml2 -lxml2 -lxslt -lxml2 -lcrypt ] --extension-dir [/usr/local/php54/lib/php/extensions/no-debug-non-zts- 20100525] --include-dir [/usr/local/php54/include/php] --man-dir [/usr/local/php54/php/man] --php-binary[/usr/local/php54/bin/php] --php-sapis [ apache2handler cli cgi] --configure-options [--with-apxs2=/usr/bin/apxs2 --prefix=/usr/local/php54 -- with-config-file-scan-dir=/etc/php54/conf.d --enable-bcmath --enable-ctype -- enable-mbstring --enable-ftp --enable-intl --enable-sockets --enable-sysvmsg -- enable-pcntl --with-bz2 --with-curl --with-gettext --with-gd --enable-gd-native- ttf --enable-exif --with-freetype-dir=/usr --with-jpeg-dir=/usr --with- t1lib=/usr --with-mcrypt --with-openssl --with-kerberos --with-iconv --with-xsl --with-xmlrpc --with-zlib --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo- mysql=mysqlnd] --version [5.4.5] --vernum[50405] Previous Comments: [2012-07-20 15:57:59] larue...@php.net what does your /PATH_TO_PHP_BIN/php-config output? [2012-07-20 13:48:14] pgodel at gmail dot com This is the main PHP configure line: ./configure --with-apxs2=/usr/bin/apxs2 \ --prefix=/usr/local/php54 \ --with-config-file-scan-dir=/etc/php54/conf.d \ --enable-bcmath --enable-ctype --enable-exif --enable-mbstring -- enable-ftp --enable-intl --enable-sockets --enable-sysvmsg --enable-pcntl -- with-bz2 --with-curl --with-gettext --with-gd --enable-gd-native-ttf --enable- exif --with-freetype-dir=/usr --with-jpeg-dir=/usr --with-t1lib=/usr --with- mcrypt --with-openssl --with-kerberos --with-iconv --with-xsl --with-xmlrpc -- with-zlib --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd \ And the when compiling the readline extension I just run: ./configure # from ext/readline [2012-07-20 04:28:47] larue...@php.net can you paste your config steps out? thanks [2012-07-19 15:57:27] pgodel at gmail dot com The symlink is: cd ext/readline/ ln -s ../../sapi Sorry about that. [2012-07-19 15:56:31] pgodel at gmail dot com Description: Trying to compile the readline extension standalone. cd etx/readline phpize ./configure make It fails with: php-5.4.4/ext/readline/readline_cli.c:64:26: fatal error: sapi/cli/cli.h: No such file or directory If I make a symlink to the sapi directory, the compilation works: ln -s ../../sap make -- Edit this bug report at https://bugs.php.net/bug.php?id=62612&edit=1