php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34738 In this statement, "__getpgid" expects 1 arguments
Submitted: 2005-10-04 22:08 UTC Modified: 2005-10-04 22:21 UTC
From: wlgivens at southkc dot net Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5.0.5 OS: RedHat [Alpha Linux]
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: wlgivens at southkc dot net
New email:
PHP Version: OS:

 

 [2005-10-04 22:08 UTC] wlgivens at southkc dot net
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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-10-04 22:21 UTC] tony2001@php.net
There is no need to open yet another one report.
Add details to the original one.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Dec 01 02:00:01 2025 UTC