Bug #67229 [Com]: make failed

From: Date: Sat, 03 Jan 2015 20:56:31 +0000
Subject: Bug #67229 [Com]: make failed
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-189631@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=67229&edit=1 ID: 67229 Comment by: thomas at espix dot net Reported by: skatta33 at hotmail dot com Summary: make failed Status: Closed Type: Bug Package: Compile Failure Operating System: solaris 10 sparc PHP Version: 5.5.12 Block user comment: N Private report: N New Comment: bump! I faced this as well under solaris 11 with php-5.6.4 Previous Comments: ------------------------------------------------------------------------ [2014-10-21 04:05:07] schulz at adi dot com This should not be closed. Php does not build on Solaris as distributed. You have to google for the error message to find this information. And you have to use -std=gnu99. -std=c99 does not work. Also, this bug is in php 5.6.2 as well as php 5.5.18. ------------------------------------------------------------------------ [2014-08-28 12:35:11] tripivceta at hotmail dot com This is a bug in configure, as it does not check for GCC 4.x and consequently does not add the "-std=c99" switch to the CFLAGS variable in the Makefile. This is still an issue in the latest PHP 5.5.16 (as of this writing). Why was this closed without a fix to the build engine??? ------------------------------------------------------------------------ [2014-05-15 18:50:32] skatta33 at hotmail dot com Hi, I got fix for my problem. I used CFLAGS with --std=gnu99 to the configure option and make was compiled with out any problem. Here is my new configure options; #CC=/usr/local/gcc4/bin/gcc CFLAGS="-std=gnu99" ./configure --with-apxs2=/usr/local/apache/bin/apxs --with-curl=/usr/local/bin --with-openssl=/usr/local/ssl --without-pear Thanks, Srinivas ------------------------------------------------------------------------ [2014-05-07 21:28:15] skatta33 at hotmail dot com Description: ------------ Hi, make is failed for following configuration for php 5.5.12 on solaris 10 sparc and gcc 4.8.2; Here is the error information; ----------------------------------------------------------------------------- In file included from /usr/include/stdio.h:21:0, from /var/tmp/php-5.5.12/ext/sqlite3/libsqlite/sqlite3.c:8253: /usr/local/gcc4/lib/gcc/sparc-sun-solaris2.10/4.8.2/include-fixed/sys/feature_tests.h:345:2: error: #error "Compiler or options invalid; UNIX 03 and POSIX.1-2001 applications require the use of c99" #error "Compiler or options invalid; UNIX 03 and POSIX.1-2001 applications \ ^ Makefile:572: recipe for target 'ext/sqlite3/libsqlite/sqlite3.lo' failed make: *** [ext/sqlite3/libsqlite/sqlite3.lo] Error 1 ----------------------------------------------------------------------------- Here is the operating system information; ------------------------------------------------------------- SunOS hq1-webdmz-s1 5.10 Generic_150400-05 sun4v sparc sun4v ------------------------------------------------------------- Here is the gcc version; ------------------------------------------------------------------------------- Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/local/gcc4/libexec/gcc/sparc-sun-solaris2.10/4.8.2/lto-wrapper Target: sparc-sun-solaris2.10 Configured with: ./configure --without-gnu-as --with-as=/usr/ccs/bin/as --without-gnu-ld --with-ld=/usr/ccs/bin/ld --enable-shared --enable-languages=c,c++,fortran,objc --prefix=/usr/local/gcc4 --with-gmp=/usr/local --with-mpfr=/usr/local --with-mpc=/usr/local Thread model: posix gcc version 4.8.2 (GCC) ------------------------------------------------------------------------------- Here is the make information; ---------------------------------------------------------- GNU Make 4.0 Built for sparc-sun-solaris2.10 ---------------------------------------------------------- Here is configure information; ----------------------------------------------------------------------------- CC=/usr/local/gcc4/bin/gcc ./configure --with-apxs2=/usr/local/apache/bin/apxs --with-curl=/usr/local/bin --with-openssl=/usr/local/ssl ------------------------------------------------------------------------------ Please advice me How I can fix the make failed; Please let me know,If You have any questions or concerns. Thanks, Srinivas ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=67229&edit=1

« previous php.bugs (#189631) next »