From: "STANFIELD, VICKI CTR DFAS" on
I am trying to build php-5.3.3 and getting the following error:

/users/03333/php-5.3.3/TSRM -I/users/03333/php-5.3.3/Zend
-I/usr/local/include -g -O2 -DZTS -c
/users/03333/php-5.3.3/ext/standard/filestat.c -o
ext/standard/filestat.lo
/users/03333/php-5.3.3/ext/standard/filestat.c: In function
`php_do_chgrp':
/users/03333/php-5.3.3/ext/standard/filestat.c:416: error: too many
arguments to function `getgrnam_r'
/users/03333/php-5.3.3/ext/standard/filestat.c: In function
`php_do_chown':
/users/03333/php-5.3.3/ext/standard/filestat.c:517: error: too many
arguments to function `getpwnam_r'
make: *** [ext/standard/filestat.lo] Error 1

I have set my ORACLE_HOME, my PATH, and my LD_LIBRARY_PATH
And used the following configure command:

../configure --prefix=/app/php533 --with-apxs2=/app/apache2215/bin/apxs
--with-zlib --with-zlib-dir=/usr/lib --with-png-dir=/usr/include/libpng
--with-openssl=/shared_ro/openssl_098
--with-oci8=/shared_ro/users.oracle/11.1.0

I am using gmake 3.80. Can anyone give me a hint as to what I am doing
wrong in this build?

-Vicki Stanfield, RHCE, CISSP
From: Tom Rogers on
Hi,

Thursday, September 9, 2010, 2:07:50 AM, you wrote:
SVCD> I am trying to build php-5.3.3 and getting the following error:

SVCD> /users/03333/php-5.3.3/TSRM -I/users/03333/php-5.3.3/Zend
SVCD> -I/usr/local/include -g -O2 -DZTS -c
SVCD> /users/03333/php-5.3.3/ext/standard/filestat.c -o
SVCD> ext/standard/filestat.lo
SVCD> /users/03333/php-5.3.3/ext/standard/filestat.c: In function
SVCD> `php_do_chgrp':
SVCD> /users/03333/php-5.3.3/ext/standard/filestat.c:416: error: too many
SVCD> arguments to function `getgrnam_r'
SVCD> /users/03333/php-5.3.3/ext/standard/filestat.c: In function
SVCD> `php_do_chown':
SVCD> /users/03333/php-5.3.3/ext/standard/filestat.c:517: error: too many
SVCD> arguments to function `getpwnam_r'
SVCD> make: *** [ext/standard/filestat.lo] Error 1

SVCD> I have set my ORACLE_HOME, my PATH, and my LD_LIBRARY_PATH
SVCD> And used the following configure command:

SVCD> ./configure --prefix=/app/php533 --with-apxs2=/app/apache2215/bin/apxs
SVCD> --with-zlib --with-zlib-dir=/usr/lib
SVCD> --with-png-dir=/usr/include/libpng
SVCD> --with-openssl=/shared_ro/openssl_098
SVCD> --with-oci8=/shared_ro/users.oracle/11.1.0

SVCD> I am using gmake 3.80. Can anyone give me a hint as to what I am doing
SVCD> wrong in this build?

SVCD> -Vicki Stanfield, RHCE, CISSP


From the error message it would seem the operating system's
getpwnam_r() function is not POSIX compatible.
What system are you compiling on?

--
regards,
Tom

From: Tom Rogers on
Hi,

Thursday, September 9, 2010, 11:31:06 AM, you wrote:
TR> Hi,

TR> Thursday, September 9, 2010, 2:07:50 AM, you wrote:
SVCD>> I am trying to build php-5.3.3 and getting the following error:

SVCD>> /users/03333/php-5.3.3/TSRM -I/users/03333/php-5.3.3/Zend
SVCD>> -I/usr/local/include -g -O2 -DZTS -c
SVCD>> /users/03333/php-5.3.3/ext/standard/filestat.c -o
SVCD>> ext/standard/filestat.lo
SVCD>> /users/03333/php-5.3.3/ext/standard/filestat.c: In function
SVCD>> `php_do_chgrp':
SVCD>> /users/03333/php-5.3.3/ext/standard/filestat.c:416: error: too many
SVCD>> arguments to function `getgrnam_r'
SVCD>> /users/03333/php-5.3.3/ext/standard/filestat.c: In function
SVCD>> `php_do_chown':
SVCD>> /users/03333/php-5.3.3/ext/standard/filestat.c:517: error: too many
SVCD>> arguments to function `getpwnam_r'
SVCD>> make: *** [ext/standard/filestat.lo] Error 1

SVCD>> I have set my ORACLE_HOME, my PATH, and my LD_LIBRARY_PATH
SVCD>> And used the following configure command:

SVCD>> ./configure --prefix=/app/php533 --with-apxs2=/app/apache2215/bin/apxs
SVCD>> --with-zlib --with-zlib-dir=/usr/lib
SVCD>> --with-png-dir=/usr/include/libpng
SVCD>> --with-openssl=/shared_ro/openssl_098
SVCD>> --with-oci8=/shared_ro/users.oracle/11.1.0

SVCD>> I am using gmake 3.80. Can anyone give me a hint as to what I am doing
SVCD>> wrong in this build?

SVCD>> -Vicki Stanfield, RHCE, CISSP


TR> From the error message it would seem the operating system's
TR> getpwnam_r() function is not POSIX compatible.
TR> What system are you compiling on?

TR> --
TR> regards,
TR> Tom



It would seem you need to add -D_POSIX_PTHREAD_SEMANTICS to the cc
flags to get the right function.

--
regards,
Tom

From: "STANFIELD, VICKI CTR DFAS" on
Ok, I tried removing the --disable-posix and adding --with-tsrm-pthreads
to the configure options.
The resulting configure looks like this:

CC='/usr/local/bin/gcc' \
'./configure' \
'--prefix=/app/php533' \
'--enable-shared' \
'--with-tsrm-pthreads' \
'--with-gnu-ld' \
'--with-apxs2=/app/apache2216/bin/apxs' \
'--with-zlib' \
'--with-zlib-dir=/usr/lib' \
'--with-png-dir=/usr/include/libpng' \
'--with-openssl=/shared_ro/openssl_098' \
'--with-oci8=/shared_ro/users.oracle/11.1.0'

Now I get this:

/users/03333/php-5.3.3/ext/posix/posix.c: In function
`zif_posix_getgrnam':
/users/03333/php-5.3.3/ext/posix/posix.c:1017: error: too many arguments
to function `getgrnam_r'
/users/03333/php-5.3.3/ext/posix/posix.c: In function
`zif_posix_getgrgid':
/users/03333/php-5.3.3/ext/posix/posix.c:1067: error: too many arguments
to function `getgrgid_r'
/users/03333/php-5.3.3/ext/posix/posix.c:1067: warning: assignment makes
integer from pointer without a cast
/users/03333/php-5.3.3/ext/posix/posix.c: In function
`zif_posix_getpwnam':
/users/03333/php-5.3.3/ext/posix/posix.c:1136: error: too many arguments
to function `getpwnam_r'
/users/03333/php-5.3.3/ext/posix/posix.c: In function
`zif_posix_getpwuid':
/users/03333/php-5.3.3/ext/posix/posix.c:1184: error: too many arguments
to function `getpwuid_r'
/users/03333/php-5.3.3/ext/posix/posix.c:1184: warning: assignment makes
integer from pointer without a cast
gmake: *** [ext/posix/posix.lo] Error 1

Do I need to add the -D_POSIX_PTHREAD_SEMANTICS in the makefile or
configure.in somewhere? Can you point me in the right direction?

-Vicki Stanfield, RHCE, CISSP

-----Original Message-----
From: Tom Rogers [mailto:trogers(a)kwikin.com]
Sent: Wednesday, September 08, 2010 10:06 PM
To: Tom Rogers
Cc: php-general(a)lists.php.net
Subject: Re: [PHP] Filestat.c erorrs when building php-5.3.3 on solaris

Hi,

Thursday, September 9, 2010, 11:31:06 AM, you wrote:
TR> Hi,

TR> Thursday, September 9, 2010, 2:07:50 AM, you wrote:
SVCD>> I am trying to build php-5.3.3 and getting the following error:

SVCD>> /users/03333/php-5.3.3/TSRM -I/users/03333/php-5.3.3/Zend
SVCD>> -I/usr/local/include -g -O2 -DZTS -c
SVCD>> /users/03333/php-5.3.3/ext/standard/filestat.c -o
SVCD>> ext/standard/filestat.lo
SVCD>> /users/03333/php-5.3.3/ext/standard/filestat.c: In function
SVCD>> `php_do_chgrp':
SVCD>> /users/03333/php-5.3.3/ext/standard/filestat.c:416: error: too
many
SVCD>> arguments to function `getgrnam_r'
SVCD>> /users/03333/php-5.3.3/ext/standard/filestat.c: In function
SVCD>> `php_do_chown':
SVCD>> /users/03333/php-5.3.3/ext/standard/filestat.c:517: error: too
many
SVCD>> arguments to function `getpwnam_r'
SVCD>> make: *** [ext/standard/filestat.lo] Error 1

SVCD>> I have set my ORACLE_HOME, my PATH, and my LD_LIBRARY_PATH
SVCD>> And used the following configure command:

SVCD>> ./configure --prefix=/app/php533
--with-apxs2=/app/apache2215/bin/apxs
SVCD>> --with-zlib --with-zlib-dir=/usr/lib
SVCD>> --with-png-dir=/usr/include/libpng
SVCD>> --with-openssl=/shared_ro/openssl_098
SVCD>> --with-oci8=/shared_ro/users.oracle/11.1.0

SVCD>> I am using gmake 3.80. Can anyone give me a hint as to what I am
doing
SVCD>> wrong in this build?

SVCD>> -Vicki Stanfield, RHCE, CISSP


TR> From the error message it would seem the operating
system's
TR> getpwnam_r() function is not POSIX compatible.
TR> What system are you compiling on?

TR> --
TR> regards,
TR> Tom



It would seem you need to add -D_POSIX_PTHREAD_SEMANTICS to the cc
flags to get the right function.

--
regards,
Tom

From: Tom Rogers on
Hi,

Friday, September 10, 2010, 2:49:36 AM, you wrote:
SVCD> Ok, I tried removing the --disable-posix and adding --with-tsrm-pthreads
SVCD> to the configure options.
SVCD> The resulting configure looks like this:

SVCD> CC='/usr/local/bin/gcc' \
SVCD> './configure' \
SVCD> '--prefix=/app/php533' \
SVCD> '--enable-shared' \
SVCD> '--with-tsrm-pthreads' \
SVCD> '--with-gnu-ld' \
SVCD> '--with-apxs2=/app/apache2216/bin/apxs' \
SVCD> '--with-zlib' \
SVCD> '--with-zlib-dir=/usr/lib' \
SVCD> '--with-png-dir=/usr/include/libpng' \
SVCD> '--with-openssl=/shared_ro/openssl_098' \
SVCD> '--with-oci8=/shared_ro/users.oracle/11.1.0'

SVCD> Now I get this:

SVCD> /users/03333/php-5.3.3/ext/posix/posix.c: In function
SVCD> `zif_posix_getgrnam':
SVCD> /users/03333/php-5.3.3/ext/posix/posix.c:1017: error: too many arguments
SVCD> to function `getgrnam_r'
SVCD> /users/03333/php-5.3.3/ext/posix/posix.c: In function
SVCD> `zif_posix_getgrgid':
SVCD> /users/03333/php-5.3.3/ext/posix/posix.c:1067: error: too many arguments
SVCD> to function `getgrgid_r'
SVCD> /users/03333/php-5.3.3/ext/posix/posix.c:1067: warning: assignment makes
SVCD> integer from pointer without a cast
SVCD> /users/03333/php-5.3.3/ext/posix/posix.c: In function
SVCD> `zif_posix_getpwnam':
SVCD> /users/03333/php-5.3.3/ext/posix/posix.c:1136: error: too many arguments
SVCD> to function `getpwnam_r'
SVCD> /users/03333/php-5.3.3/ext/posix/posix.c: In function
SVCD> `zif_posix_getpwuid':
SVCD> /users/03333/php-5.3.3/ext/posix/posix.c:1184: error: too many arguments
SVCD> to function `getpwuid_r'
SVCD> /users/03333/php-5.3.3/ext/posix/posix.c:1184: warning: assignment makes
SVCD> integer from pointer without a cast
SVCD> gmake: *** [ext/posix/posix.lo] Error 1

SVCD> Do I need to add the -D_POSIX_PTHREAD_SEMANTICS in the makefile or
SVCD> configure.in somewhere? Can you point me in the right direction?

SVCD> -Vicki Stanfield, RHCE, CISSP

SVCD> -----Original Message-----
SVCD> From: Tom Rogers [mailto:trogers(a)kwikin.com]
SVCD> Sent: Wednesday, September 08, 2010 10:06 PM
SVCD> To: Tom Rogers
SVCD> Cc: php-general(a)lists.php.net
SVCD> Subject: Re: [PHP] Filestat.c erorrs when building php-5.3.3 on solaris

SVCD> Hi,

SVCD> Thursday, September 9, 2010, 11:31:06 AM, you wrote:
TR>> Hi,

TR>> Thursday, September 9, 2010, 2:07:50 AM, you wrote:
SVCD>>> I am trying to build php-5.3.3 and getting the following error:

SVCD>>> /users/03333/php-5.3.3/TSRM -I/users/03333/php-5.3.3/Zend
SVCD>>> -I/usr/local/include -g -O2 -DZTS -c
SVCD>>> /users/03333/php-5.3.3/ext/standard/filestat.c -o
SVCD>>> ext/standard/filestat.lo
SVCD>>> /users/03333/php-5.3.3/ext/standard/filestat.c: In function
SVCD>>> `php_do_chgrp':
SVCD>>> /users/03333/php-5.3.3/ext/standard/filestat.c:416: error: too
SVCD> many
SVCD>>> arguments to function `getgrnam_r'
SVCD>>> /users/03333/php-5.3.3/ext/standard/filestat.c: In function
SVCD>>> `php_do_chown':
SVCD>>> /users/03333/php-5.3.3/ext/standard/filestat.c:517: error: too
SVCD> many
SVCD>>> arguments to function `getpwnam_r'
SVCD>>> make: *** [ext/standard/filestat.lo] Error 1

SVCD>>> I have set my ORACLE_HOME, my PATH, and my LD_LIBRARY_PATH
SVCD>>> And used the following configure command:

SVCD>>> ./configure --prefix=/app/php533
SVCD> --with-apxs2=/app/apache2215/bin/apxs
SVCD>>> --with-zlib --with-zlib-dir=/usr/lib
SVCD>>> --with-png-dir=/usr/include/libpng
SVCD>>> --with-openssl=/shared_ro/openssl_098
SVCD>>> --with-oci8=/shared_ro/users.oracle/11.1.0

SVCD>>> I am using gmake 3.80. Can anyone give me a hint as to what I am
SVCD> doing
SVCD>>> wrong in this build?

SVCD>>> -Vicki Stanfield, RHCE, CISSP


TR>> From the error message it would seem the operating
SVCD> system's
TR>> getpwnam_r() function is not POSIX compatible.
TR>> What system are you compiling on?

TR>> --
TR>> regards,
TR>> Tom



SVCD> It would seem you need to add -D_POSIX_PTHREAD_SEMANTICS to the cc
SVCD> flags to get the right function.

SVCD> --
SVCD> regards,
SVCD> Tom



That should get added automatically when you run configure if it
recognizes that the system is solaris.

Try adding --host=solaris to configure and see if that helps

--
regards,
Tom