From:             wlgivens at southkc dot net
Operating system: RedHat [Alpha Linux]
PHP version:      5.0.5
PHP Bug Type:     Compile Failure
Bug description:  In this statement, "__getpgid" expects 1 arguments

Description:
------------
Receiving the following error on build:

cc: Error:
/usr2/www/linux-related/programming/php-5x/php-5.0.5/ext/posix/posix.c,
line 349: In this statement, "__getpgid" expects 1 arguments, but 0 are
supplied. (toofewargs)
        PHP_POSIX_RETURN_LONG_FUNC(getpgrp);
--------^
make: *** [ext/posix/posix.lo] Error 1


Reproduce code:
---------------
#endif
/* }}} */

/* {{{ proto int posix_getpgrp(void)
   Get current process group id (POSIX.1, 4.3.1) */
PHP_FUNCTION(posix_getpgrp)
{
        PHP_POSIX_RETURN_LONG_FUNC(getpgrp); */OFFENDING LINE */
}
/* }}} */

/* {{{ proto int posix_setsid(void)
   Create session and set process group id (POSIX.1, 4.3.2) */
#ifdef HAVE_SETSID
PHP_FUNCTION(posix_setsid)


Expected result:
----------------
to build and be on my way... I also noticed that PHP has some issues when
it comes to loading modules but thats another, more detailed bug report...
Merry Xmas

Actual result:
--------------
Run the following commands:

CC="ccache ccc" CXX="ccache cxx" \
        CFLAGS="-O5 -arch ev56 -w -std -pipe -D_BSD_SOURCE" \
        CXXFLAGS="-O5 -arch ev56 -w -pipe -std ansi -D__USE_STD_IOSTREAM"
\
        ./configure \
        --prefix=/usr \
        --sysconfdir=/etc \
        --build=alphapca56-alpha-linux-gnu \
        --enable-shared \
        --with-apxs2=/usr/apache2/bin/apxs \
        --with-apache2=shared,/usr/apache2 \
        --with-mysql \
        --with-gettext \
        --with-openssl-dir=/usr \
        --with-jpeg-dir=/usr \
        --with-png-dir=/usr \
        --with-freetype-dir=/usr \
        --enable-exif \
        --with-openssl=shared,/usr \
        --with-pgsql=shared,/usr \
        --with-mnogosearch=shared,/usr \
        --without-snmp

sed -e 's/wl=""/wl="-Wl,"/g' libtool > TMP
mv TMP libtool
chmod 755 libtool

make > MAKE_LOG 2>&1 &
tail -f MAKE_LOG

*spare me the fucking comments concerning CFLAGS and LIBTOOl editing. IF
you wrote STANDARD ANSI CODE I wouldn't have the error. I am so tired of
people trying to find any thing else they can to blame this error on. If
it has NOTHING to do with the error [too few arguements,] please DON'T
respond.

-- 
Edit bug report at http://bugs.php.net/?id=34738&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=34738&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=34738&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=34738&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=34738&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=34738&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=34738&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=34738&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=34738&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=34738&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=34738&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=34738&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=34738&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=34738&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=34738&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=34738&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=34738&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=34738&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=34738&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=34738&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=34738&r=mysqlcfg

Reply via email to