php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34364 In this statement, "__getpgid" expects 1 arguments
Submitted: 2005-09-04 05:17 UTC Modified: 2005-10-12 01:00 UTC
Votes:3
Avg. Score:4.7 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:2 (100.0%)
From: wlgivens at southkc dot net Assigned:
Status: No Feedback Package: Compile Failure
PHP Version: 5.0.4 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-09-04 05:17 UTC] wlgivens at southkc dot net
Description:
------------
Receiving the error below on the following hardware/software:
AlphaPC 164SX
Redhat [Alpha]
Kernel-2.6.11.6
Compaq C 6.5.9
Binutils-2.19.0.x
Make-3.80

[root@jericho php-5.0.4]# /bin/sh /usr2/www/linux-related/programming/php-4x/php-5.0.4/libtool --silent --preserve-dup-deps --mode=compile ccache ccc  -Iext/posix/ -I/usr2/www/linux-related/programming/php-4x/php-5.0.4/ext/posix/ -DPHP_ATOM_INC -I/usr2/www/linux-related/programming/php-4x/php-5.0.4/include -I/usr2/www/linux-related/programming/php-4x/php-5.0.4/main -I/usr2/www/linux-related/programming/php-4x/php-5.0.4 -I/usr/include/libxml2 -I/usr/include/mysql -I/usr2/www/linux-related/programming/php-4x/php-5.0.4/TSRM -I/usr2/www/linux-related/programming/php-4x/php-5.0.4/Zend    -O -w -std -pipe -D_BSD_SOURCE   -c /usr2/www/linux-related/programming/php-4x/php-5.0.4/ext/posix/posix.c -o ext/posix/posix.lo
cc: Error: /usr2/www/linux-related/programming/php-4x/php-5.0.4/ext/posix/posix.c, line 338: In this statement, "__getpgid" expects 1 arguments, but 0 are supplied. (toofewargs)
       PHP_POSIX_RETURN_LONG_FUNC(getpgrp);

Reproduce code:
---------------
just simply run:

CC="ccache ccc" CXX="ccache cxx" \
       CFLAGS="-O5 -fast -w -arch ev56 -w -std -pipe -D_BSD_SOURCE" \
       CXXFLAGS="-O5 -fast -fast -arch ev56 -w -pipe\
       -std ansi -nousing_std -D__USE_STD_IOSTREAM" \
       ./configure \
       --prefix=/usr \
       --sysconfdir=/etc/X11 \
       --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

Expected result:
----------------
PHP to build/install, and everything would be alright in the world.

Actual result:
--------------
crash/burn

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-09-04 12:07 UTC] nlopess@php.net
from 'man getpgrp':
"This version of getpgrp() differs from past Berkeley versions by not taking a pid_t pid argument. This incompatibility is required by ISO/IEC 9945-1:1990 ``POSIX.1'')."

So this is not a PHP bug per-se. But we could check the function proto (0 or 1 parameter) in the configure script and pass the paramer if needed.
 [2005-09-05 00:11 UTC] sniper@php.net
and DO NOT try outsmart the configure with ANY environment variable like CFLAGS, etc. And NEVER EVER modify the generated  libtool!!!!


 [2005-10-04 21:53 UTC] wlgivens at southkc dot net
Well tried both the PHP-4.x CVS release and PHP-5.0.5 and the error persists. It seems that it would be a simple fix, a lot faster than fucking around on this board every other day trying to come up with excuses why it doesn't compile when the error says it all.

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);
--------^

Same error as when previous releases. Is there some patch to fix this error? How fucking hard is it to supply an 'argument'?
 [2005-10-05 00:09 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip


 [2005-10-12 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 01 22:01:36 2025 UTC