php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45723 'siginfo_t' has no member named 'si_fd' compilation error
Submitted: 2008-08-05 11:59 UTC Modified: 2008-08-05 15:12 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: Bjorn dot Wiberg at its dot uu dot se Assigned:
Status: Closed Package: Compile Failure
PHP Version: 5.3.0alpha1 OS: IBM AIX 5.3 5300-08-01-0819
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: Bjorn dot Wiberg at its dot uu dot se
New email:
PHP Version: OS:

 

 [2008-08-05 11:59 UTC] Bjorn dot Wiberg at its dot uu dot se
Description:
------------
Enabling pcntl on IBM AIX yields error "'siginfo_t' has no member named 'si_fd'".

Reproduce code:
---------------
#! /bin/sh
#
# Created by configure

LDFLAGS='-Wl,-bbigtoc' \
CC='gcc' \
'./configure' \
'--disable-fileinfo' \
'--enable-bcmath' \
'--enable-calendar' \
'--enable-cli' \
'--enable-dba' \
'--enable-dbase' \
'--enable-debug' \
'--enable-exif' \
'--enable-flatfile' \
'--enable-ftp' \
'--enable-gd-jis-conv' \
'--enable-gd-native-ttf' \
'--enable-inifile' \
'--enable-mbstring' \
'--enable-pcntl' \
'--enable-shmop' \
'--enable-soap' \
'--enable-sockets' \
'--enable-sqlite-utf8' \
'--enable-sysvmsg' \
'--enable-sysvsem' \
'--enable-sysvshm' \
'--enable-wddx' \
'--enable-zip' \
'--enable-zend-multibyte' \
'--prefix=/apache/php' \
'--with-apxs2=/apache/bin/apxs' \
'--with-bz2' \
'--with-cdb' \
'--with-curl' \
'--with-freetype-dir' \
'--with-gd' \
'--with-gdbm' \
'--with-gettext' \
'--with-jpeg-dir' \
'--with-ldap' \
'--with-libxml-dir=/usr/local' \
'--with-mime-magic' \
'--with-mysql=mysqlnd' \
'--with-mysqli=mysqlnd' \
'--with-openssl=/opt/freeware' \
'--with-pdo-mysql=mysqlnd' \
'--with-png-dir' \
'--with-xmlrpc' \
'--with-xpm-dir' \
'--with-xsl' \
'--with-zlib' \
'--with-zlib-dir' \
"$@"

Expected result:
----------------
Successful compilation.

Actual result:
--------------
---8<---8<---
 gcc -Iext/pcntl/ -I/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/pcntl/ -DPHP_ATOM_INC -I/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/include -I/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/main -I/home/bwiberg/rpm/BUILD/php-5.3.0alpha1 -I/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/ereg/regex -I/usr/local/include/libxml2 -I/opt/freeware/include -I/usr/local/include -I/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/date/lib -I/usr/X11R6/include -I/usr/include/freetype2 -I/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/mbstring/oniguruma -I/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/mbstring/libmbfl -I/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/mbstring/libmbfl/mbfl -I/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/sqlite3/libsqlite -I/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/TSRM -I/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/Zend -I/usr/include -g -fvisibility=hidden -O0 -Wall -c /home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/pcntl/pcntl.c  -DPIC -o ext/pcntl/.libs/pcntl.o
/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/pcntl/pcntl.c:180: warning: visibility attribute not supported in this configuration; ignored
/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/pcntl/pcntl.c:197: warning: visibility attribute not supported in this configuration; ignored
/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/pcntl/pcntl.c: In function 'php_register_signal_constants':
/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/pcntl/pcntl.c:351: warning: visibility attribute not supported in this configuration; ignored
/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/pcntl/pcntl.c: In function 'zm_activate_pcntl':
/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/pcntl/pcntl.c:363: warning: visibility attribute not supported in this configuration; ignored
/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/pcntl/pcntl.c: In function 'zm_startup_pcntl':
/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/pcntl/pcntl.c:371: warning: visibility attribute not supported in this configuration; ignored
/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/pcntl/pcntl.c: In function 'zm_shutdown_pcntl':
/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/pcntl/pcntl.c:376: warning: visibility attribute not supported in this configuration; ignored
/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/pcntl/pcntl.c: In function 'zm_deactivate_pcntl':
/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/pcntl/pcntl.c:396: warning: visibility attribute not supported in this configuration; ignored
/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/pcntl/pcntl.c: In function 'zm_info_pcntl':
/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/pcntl/pcntl.c:403: warning: visibility attribute not supported in this configuration; ignored
/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/pcntl/pcntl.c: In function 'zif_pcntl_fork':
/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/pcntl/pcntl.c:417: warning: visibility attribute not supported in this configuration; ignored
/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/pcntl/pcntl.c: In function 'zif_pcntl_alarm':
/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/pcntl/pcntl.c:430: warning: visibility attribute not supported in this configuration; ignored
/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/pcntl/pcntl.c: In function 'zif_pcntl_waitpid':
/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/pcntl/pcntl.c:454: warning: visibility attribute not supported in this configuration; ignored
/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/pcntl/pcntl.c: In function 'zif_pcntl_wait':
/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/pcntl/pcntl.c:485: warning: visibility attribute not supported in this configuration; ignored
/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/pcntl/pcntl.c: In function 'zif_pcntl_wifexited':
/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/pcntl/pcntl.c:503: warning: visibility attribute not supported in this configuration; ignored
/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/pcntl/pcntl.c: In function 'zif_pcntl_wifstopped':
/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/pcntl/pcntl.c:521: warning: visibility attribute not supported in this configuration; ignored
/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/pcntl/pcntl.c: In function 'zif_pcntl_wifsignaled':
/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/pcntl/pcntl.c:539: warning: visibility attribute not supported in this configuration; ignored
/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/pcntl/pcntl.c: In function 'zif_pcntl_wexitstatus':
/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/pcntl/pcntl.c:559: warning: visibility attribute not supported in this configuration; ignored
/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/pcntl/pcntl.c: In function 'zif_pcntl_wtermsig':
/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/pcntl/pcntl.c:577: warning: visibility attribute not supported in this configuration; ignored
/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/pcntl/pcntl.c: In function 'zif_pcntl_wstopsig':
/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/pcntl/pcntl.c:595: warning: visibility attribute not supported in this configuration; ignored
/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/pcntl/pcntl.c: In function 'zif_pcntl_exec':
/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/pcntl/pcntl.c:690: warning: visibility attribute not supported in this configuration; ignored
/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/pcntl/pcntl.c: In function 'zif_pcntl_signal':
/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/pcntl/pcntl.c:747: warning: visibility attribute not supported in this configuration; ignored
/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/pcntl/pcntl.c: In function 'zif_pcntl_signal_dispatch':
/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/pcntl/pcntl.c:756: warning: visibility attribute not supported in this configuration; ignored
/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/pcntl/pcntl.c: In function 'zif_pcntl_sigprocmask':
/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/pcntl/pcntl.c:799: warning: visibility attribute not supported in this configuration; ignored
/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/pcntl/pcntl.c: In function 'pcntl_sigwaitinfo':
/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/pcntl/pcntl.c:886: error: 'siginfo_t' has no member named 'si_fd'
make: *** [ext/pcntl/pcntl.lo] Error 1
---8<---8<---

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-08-05 12:13 UTC] jani@php.net
Does ANYTHING work on that antique OS? Feel free to provide patches. You're propably the only person using AIX and PHP..
 [2008-08-05 13:45 UTC] Bjorn dot Wiberg at its dot uu dot se
Attaching patch below. The si_fd member simply does not exist in siginfo_t on AIX, so skipping it. Couldn't find any more references to it in the code, nor in any include or sys/include files on the system.

(Also couldn't find any info on pcntl_sigwaitinfo() in the PHP documentation for pcntl functions -- documentation issue?)

Best regards,
Björn


diff -cr php-5.3.0alpha1/ext/pcntl/pcntl.c php-5.3.0alpha1-my/ext/pcntl/pcntl.c
*** php-5.3.0alpha1/ext/pcntl/pcntl.c   2008-07-29 18:59:10.000000000 +0200
--- php-5.3.0alpha1-my/ext/pcntl/pcntl.c        2008-08-05 15:23:48.000000000 +0200
***************
*** 883,889 ****
--- 883,894 ----
  #ifdef SIGPOLL
                        case SIGPOLL:
                                add_assoc_long_ex(user_siginfo, "band", sizeof("band"), siginfo.si_band);
+ 
+ /* AIX: No si_fd member of siginfo_t in <sys/signal.h>; see http://bugs.php.net/bug.php?id=45723 */
+ #ifndef _AIX
                                add_assoc_long_ex(user_siginfo, "fd",   sizeof("fd"),   siginfo.si_fd);
+ #endif
+ 
                                break;
  #endif
                        EMPTY_SWITCH_DEFAULT_CASE();
 [2008-08-05 13:52 UTC] jani@php.net
New stuff. Actually this should be tested during configure.
 [2008-08-05 15:12 UTC] jani@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 07 20:01:32 2024 UTC