RE: Filestat.c erorrs when building php-5.3.3 on solaris

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



For the record, the problem appears to have been that the gcc version
was too old. It compiles with gcc 3.4.6 

  -Vicki Stanfield, RHCE, CISSP
Web Management Group
TSO-CS-WEB-TEAM@xxxxxxxx

Defense Finance and Accounting Service
Technical Services Organization - Corporate Services
Vicki.Stanfield.ctr@xxxxxxxx
(317)510-3375

-----Original Message-----
From: Tom Rogers [mailto:trogers@xxxxxxxxxx] 
Sent: Thursday, September 09, 2010 10:05 PM
To: STANFIELD, VICKI CTR DFAS
Cc: php-general@xxxxxxxxxxxxx
Subject: Re:  Filestat.c erorrs when building php-5.3.3 on solaris

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@xxxxxxxxxx] 
SVCD> Sent: Wednesday, September 08, 2010 10:06 PM
SVCD> To: Tom Rogers
SVCD> Cc: php-general@xxxxxxxxxxxxx
SVCD> Subject: Re:  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


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux