Edit report at https://bugs.php.net/bug.php?id=60585&edit=1

 ID:                 60585
 Comment by:         morusec at hotmail dot com
 Reported by:        sknizek at cyberport dot de
 Summary:            php build fails with USE flag snmp
 Status:             Open
 Type:               Bug
 Package:            SNMP related
 Operating System:   Gentoo Linux
 PHP Version:        5.4.0RC3
 Block user comment: N
 Private report:     N

 New Comment:

Same issue with 5.4.3_rc5, just can't compile php with snmp use flag. (net-snmp 
5.3.4)


/var/tmp/portage/dev-lang/php-5.4.0_rc5/work/sapis-build/cli/ext/snmp/snmp.c: 
In function 'php_snmp_error':
/var/tmp/portage/dev-lang/php-5.4.0_rc5/work/sapis-build/cli/ext/snmp/snmp.c:536:3:
 warning: passing 
argument 3 of 'zend_throw_exception_ex' from incompatible pointer type
/var/tmp/portage/dev-lang/php-5.4.0_rc5/work/sapis-build/cli/Zend/zend_exceptions.h:44:17:
 note: expected 
'void ***' but argument is of type 'char *'
/var/tmp/portage/dev-lang/php-5.4.0_rc5/work/sapis-build/cli/ext/snmp/snmp.c:536:3:
 warning: passing 
argument 4 of 'zend_throw_exception_ex' from incompatible pointer type
/var/tmp/portage/dev-lang/php-5.4.0_rc5/work/sapis-build/cli/Zend/zend_exceptions.h:44:17:
 note: expected 
'char *' but argument is of type 'void ***'
/var/tmp/portage/dev-lang/php-5.4.0_rc5/work/sapis-build/cli/ext/snmp/snmp.c: 
In function 
'netsnmp_session_init':
/var/tmp/portage/dev-lang/php-5.4.0_rc5/work/sapis-build/cli/ext/snmp/snmp.c:1174:10:
 error: request for 
member 'sa_family' in something not a structure or union
/var/tmp/portage/dev-lang/php-5.4.0_rc5/work/sapis-build/cli/ext/snmp/snmp.c:1178:3:
 error: incompatible 
type for argument 1 of 'inet_ntoa'
/usr/include/arpa/inet.h:54:14: note: expected 'struct in_addr' but argument is 
of type 'struct sockaddr **'
make: *** [ext/snmp/snmp.lo] Error 1


Previous Comments:
------------------------------------------------------------------------
[2011-12-21 13:44:37] sknizek at cyberport dot de

Description:
------------
I try to build php5.4.0rc3 on Gentoo with following USE flags:

bcmath bzip2 cgi cli crypt ctype curl fileinfo filter ftp gd gdbm hash iconv 
json mhash mysql mysqli nls pdo phar posix readline session simplexml snmp* 
sockets sqlite3 ssl threads tokenizer truetype unicode xml xmlreader xmlrpc 
xmlwriter zlib -apache2 -berkdb -calendar -cdb -cjk -curlwrappers -debug -doc 
-embed -enchant -exif -firebird -flatfile -fpm (-frontbase) -gmp -imap -inifile 
-intl -iodbc -ipv6 -kerberos -kolab -ldap -ldap-sasl -libedit -mssql -mysqlnd 
-oci8-instant-client -odbc -pcntl -pic -postgres -qdbm -recode -sharedmem -soap 
-spell (-sybase-ct) -sysvipc -tidy -wddx -xpm -xsl -zip

but it fails. As soon as I remove the snmp USE flag, the build works.
Versions:
 - net-snmp: 5.4.3
 - Net-SNMP: 6.0.1

Expected result:
----------------
php build with snmp support

Actual result:
--------------
/var/tmp/portage/dev-lang/php-5.4.0_rc3/work/sapis-build/cli/ext/snmp/snmp.c: 
In function 'php_snmp_error':
/var/tmp/portage/dev-lang/php-5.4.0_rc3/work/sapis-build/cli/ext/snmp/snmp.c:536:3:
 warning: passing argument 3 of 'zend_throw_exception_ex' from incompatible 
pointer type
/var/tmp/portage/dev-lang/php-5.4.0_rc3/work/sapis-build/cli/Zend/zend_exceptions.h:44:17:
 note: expected 'void ***' but argument is of type 'char *'
/var/tmp/portage/dev-lang/php-5.4.0_rc3/work/sapis-build/cli/ext/snmp/snmp.c:536:3:
 warning: passing argument 4 of 'zend_throw_exception_ex' from incompatible 
pointer type
/var/tmp/portage/dev-lang/php-5.4.0_rc3/work/sapis-build/cli/Zend/zend_exceptions.h:44:17:
 note: expected 'char *' but argument is of type 'void ***'
/var/tmp/portage/dev-lang/php-5.4.0_rc3/work/sapis-build/cli/ext/snmp/snmp.c: 
In function 'netsnmp_session_init':
/var/tmp/portage/dev-lang/php-5.4.0_rc3/work/sapis-build/cli/ext/snmp/snmp.c:1174:10:
 error: request for member 'sa_family' in something not a structure or union
/var/tmp/portage/dev-lang/php-5.4.0_rc3/work/sapis-build/cli/ext/snmp/snmp.c:1178:3:
 error: incompatible type for argument 1 of 'inet_ntoa'
/usr/include/arpa/inet.h:54:14: note: expected 'struct in_addr' but argument is 
of type 'struct sockaddr **'
make: *** [ext/snmp/snmp.lo] Fehler 1
make: *** Warte auf noch nicht beendete Prozesse...


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=60585&edit=1

Reply via email to