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

 ID:                 60585
 Updated by:         lytbo...@php.net
 Reported by:        sknizek at cyberport dot de
 Summary:            php build fails with USE flag snmp when IPv6 support
                     is disabled
-Status:             Assigned
+Status:             Feedback
 Type:               Bug
 Package:            SNMP related
 Operating System:   Gentoo Linux
 PHP Version:        5.4.0RC3
 Assigned To:        lytboris
 Block user comment: N
 Private report:     N

 New Comment:

Please try using this snapshot:

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

  http://windows.php.net/snapshots/




Previous Comments:
------------------------------------------------------------------------
[2012-01-13 18:46:26] lytbo...@php.net

Automatic comment from SVN on behalf of lytboris
Revision: http://svn.php.net/viewvc/?view=revision&revision=322214
Log: merge from trunk:
Fixed bug #60585 (php build fails with USE flag snmp when IPv6 support is 
disabled
Fixed bug #60749 (SNMP module should not strip non-standard SNMP port from 
hostname

------------------------------------------------------------------------
[2012-01-13 18:33:51] lytbo...@php.net

Automatic comment from SVN on behalf of lytboris
Revision: http://svn.php.net/viewvc/?view=revision&revision=322213
Log: Fixed bug #60585 (php build fails with USE flag snmp when IPv6 support is 
disabled)
Fixed bug #60749 (SNMP module should not strip non-standard SNMP port from 
hostname)
Fixed ipv6 test skipto if IPv6 support is disabled

------------------------------------------------------------------------
[2012-01-08 22:18:02] morusec at hotmail dot com

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

------------------------------------------------------------------------
[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