Bug #66013 [Com]: Solaris build failure

From: Date: Thu, 10 Dec 2020 18:40:37 +0000
Subject: Bug #66013 [Com]: Solaris build failure
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-231005@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66013&edit=1

 ID:                 66013
 Comment by:         glen dot r dot kriekenbeck at kp dot org
 Reported by:        Pete_Wall at symantec dot com
 Summary:            Solaris build failure
 Status:             Open
 Type:               Bug
 Package:            Compile Failure
 Operating System:   Solaris 10 (x86 and SPARC)
 PHP Version:        7
 Block user comment: N
 Private report:     N

 New Comment:

I'm sorry, missed some important details:

Version: php-7.3.25
Env: 
PATH=/opt/csw/bin:/usr/bin:/bin
CC="/opt/csw/bin/gcc"
CFLAGS="-std=gnu99 -fPIC -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
LDFLAGS="-L/opt/csw/lib -R/opt/csw/lib"
MAKE="/opt/csw/bin/gmake"
SED="/opt/csw/bin/gsed"

Configuration:
./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/lib
--with-apxs2=/opt/csw/bin/apxs --with-ldap=/opt/csw \
 --with-openssl=/opt/csw --with-openssl-dir=/opt/csw/ \
 --with-mysqli --with-pdo-mysql --with-pdo-mysql  --with-zlib --with-zlib-dir=/opt/csw
--with-libzip=/opt/csw \
 --with-iconv-dir=/opt/csw --with-pcre-dir=/opt/csw --with-libxml-dir=/opt/csw --with-curl=/opt/csw
--with-openssl \
 --with-webp-dir=/opt/csw --with-jpeg-dir=/opt/csw --with-xpm-dir=/opt/csw \
 --with-openssl-dir=/opt/csw/lib/ --with-gd --with-freetype-dir=/opt/csw --with-gnu-ld
--enable-shared --enable-mbstring \
 --enable-exif --enable-sockets --enable-soap --enable-zip  --enable-ftp --enable-mysqlnd
--disable-zend-signals --disable-static


Previous Comments:
------------------------------------------------------------------------
[2020-12-10 17:51:11] glen dot r dot kriekenbeck at kp dot org

On Solaris 10, using the OpenCSW gcc 4.9.0 toolchain and prerequisite open source libraries, I
successfully compiled ext/sockets/conversions.c and ext/sockets/sendrecvmsg.c by prepending:

#define _XOPEN_SOURCE 600
#define __EXTENSIONS__

to the top of each file.

------------------------------------------------------------------------
[2017-10-24 04:20:41] g dot fischer at ah-consulting dot net

yes, it still happens with php 7.

------------------------------------------------------------------------
[2017-09-21 15:53:24] cmb@php.net

Active support for PHP 5 has ended quite a while ago. Does this issue persist
with current PHP 7 versions?

------------------------------------------------------------------------
[2016-08-04 05:39:28] norm dot jacobs at oracle dot com

FWIW, _XPG4_2 is an internal implementation detail in Solaris and should not be used directly,
instead defining _XOPEN_SOURCE >=500 is a possible option.  See the standards(5) man page and/or
sys/feature_tests.h on Solaris for more detail.

------------------------------------------------------------------------
[2016-07-17 14:58:49] eugene at zhegan dot in

Still there in 5.6.21 / Solaris 11.2.

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=66013


--
Edit this bug report at https://bugs.php.net/bug.php?id=66013&edit=1


Thread (18 messages)

« previous php.bugs (#231005) next »