Bug #67229 [Opn->Csd]: make failed

From: Date: Thu, 15 May 2014 18:50:32 +0000
Subject: Bug #67229 [Opn->Csd]: make failed
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-185834@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
 User updated by:    skatta33 at hotmail dot com
 Reported by:        skatta33 at hotmail dot com
 Summary:            make failed
-Status:             Open
+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:

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


Previous Comments:
------------------------------------------------------------------------
[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


Thread (15 messages)

« previous php.bugs (#185834) next »