From:             
Operating system: Gentoo Linux
PHP version:      5.4.0RC3
Package:          SNMP related
Bug Type:         Bug
Bug description:php build fails with USE flag snmp

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 bug report at https://bugs.php.net/bug.php?id=60585&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=60585&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=60585&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=60585&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=60585&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=60585&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=60585&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=60585&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=60585&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=60585&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=60585&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=60585&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=60585&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=60585&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=60585&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=60585&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=60585&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=60585&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=60585&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=60585&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=60585&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=60585&r=mysqlcfg

Reply via email to