Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 391141 - dev-lang/php-5.4.0_rc1 - ork/sapis-build/cli/ext/snmp/snmp.c:1174:10: error: request for member 'sa_family' in something not a structure or union
Summary: dev-lang/php-5.4.0_rc1 - ork/sapis-build/cli/ext/snmp/snmp.c:1174:10: error: ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-20 17:20 UTC by mondrillo
Modified: 2012-01-31 10:19 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (dev-lang:php-5.4.0_rc2:20111126-084847.log,455.13 KB, text/plain)
2011-11-26 09:12 UTC, Andrea Conti
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mondrillo 2011-11-20 17:20:12 UTC
/bin/sh /var/tmp/portage/dev-lang/php-5.4.0_rc1/work/sapis-build/cli/libtool --silent --preserve-dup-deps --mode=compile /var/tmp/portage/dev-lang/php-5.4.0_rc1/work/sapis-build/cli/meta_ccld  -Iext/simplexml/ -I/var/tmp/portage/dev-lang/php-5.4.0_rc1/work/sapis-build/cli/ext/simplexml/ -DPHP_ATOM_INC -I/var/tmp/portage/dev-lang/php-5.4.0_rc1/work/sapis-build/cli/include -I/var/tmp/portage/dev-lang/php-5.4.0_rc1/work/sapis-build/cli/main -I/var/tmp/portage/dev-lang/php-5.4.0_rc1/work/sapis-build/cli -I/var/tmp/portage/dev-lang/php-5.4.0_rc1/work/sapis-build/cli/ext/date/lib -I/var/tmp/portage/dev-lang/php-5.4.0_rc1/work/sapis-build/cli/ext/ereg/regex -I/usr/include/libxml2 -I/usr/include/freetype2 -I/var/tmp/portage/dev-lang/php-5.4.0_rc1/work/sapis-build/cli/ext/mbstring/libmbfl -I/var/tmp/portage/dev-lang/php-5.4.0_rc1/work/sapis-build/cli/ext/mbstring/libmbfl/mbfl -I/usr/include/mysql -I/usr/include/pspell -I/var/tmp/portage/dev-lang/php-5.4.0_rc1/work/sapis-build/cli/TSRM -I/var/tmp/portage/dev-lang/php-5.4.0_rc1/work/sapis-build/cli/Zend  -D_REENTRANT  -I/usr/include -march=native -O2 -pipe -pthread -DZTS -DZEND_SIGNALS  -c /var/tmp/portage/dev-lang/php-5.4.0_rc1/work/sapis-build/cli/ext/simplexml/sxe.c -o ext/simplexml/sxe.lo 
/bin/sh /var/tmp/portage/dev-lang/php-5.4.0_rc1/work/sapis-build/cli/libtool --silent --preserve-dup-deps --mode=compile /var/tmp/portage/dev-lang/php-5.4.0_rc1/work/sapis-build/cli/meta_ccld  -Iext/snmp/ -I/var/tmp/portage/dev-lang/php-5.4.0_rc1/work/sapis-build/cli/ext/snmp/ -DPHP_ATOM_INC -I/var/tmp/portage/dev-lang/php-5.4.0_rc1/work/sapis-build/cli/include -I/var/tmp/portage/dev-lang/php-5.4.0_rc1/work/sapis-build/cli/main -I/var/tmp/portage/dev-lang/php-5.4.0_rc1/work/sapis-build/cli -I/var/tmp/portage/dev-lang/php-5.4.0_rc1/work/sapis-build/cli/ext/date/lib -I/var/tmp/portage/dev-lang/php-5.4.0_rc1/work/sapis-build/cli/ext/ereg/regex -I/usr/include/libxml2 -I/usr/include/freetype2 -I/var/tmp/portage/dev-lang/php-5.4.0_rc1/work/sapis-build/cli/ext/mbstring/libmbfl -I/var/tmp/portage/dev-lang/php-5.4.0_rc1/work/sapis-build/cli/ext/mbstring/libmbfl/mbfl -I/usr/include/mysql -I/usr/include/pspell -I/var/tmp/portage/dev-lang/php-5.4.0_rc1/work/sapis-build/cli/TSRM -I/var/tmp/portage/dev-lang/php-5.4.0_rc1/work/sapis-build/cli/Zend  -D_REENTRANT  -I/usr/include -march=native -O2 -pipe -pthread -DZTS -DZEND_SIGNALS  -c /var/tmp/portage/dev-lang/php-5.4.0_rc1/work/sapis-build/cli/ext/snmp/snmp.c -o ext/snmp/snmp.lo 
/var/tmp/portage/dev-lang/php-5.4.0_rc1/work/sapis-build/cli/ext/snmp/snmp.c: In function 'php_snmp_error':
/var/tmp/portage/dev-lang/php-5.4.0_rc1/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_rc1/work/sapis-build/cli/Zend/zend_exceptions.h:44:48: note: expected 'void ***' but argument is of type 'char *'
/var/tmp/portage/dev-lang/php-5.4.0_rc1/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_rc1/work/sapis-build/cli/Zend/zend_exceptions.h:44:48: note: expected 'char *' but argument is of type 'void ***'
/var/tmp/portage/dev-lang/php-5.4.0_rc1/work/sapis-build/cli/ext/snmp/snmp.c: In function 'netsnmp_session_init':
/var/tmp/portage/dev-lang/php-5.4.0_rc1/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_rc1/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
 * ERROR: dev-lang/php-5.4.0_rc1 failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of 'emerge --info =dev-lang/php-5.4.0_rc1',
 * the complete build log and the output of 'emerge -pqv =dev-lang/php-5.4.0_rc1'.
 * The complete build log is located at '/var/tmp/portage/dev-lang/php-5.4.0_rc1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/php-5.4.0_rc1/temp/environment'.
 * S: '/var/tmp/portage/dev-lang/php-5.4.0_rc1/work/php-5.4.0RC1'

Reproducible: Always

Actual Results:  
not compile


emerge --info
Portage 2.1.10.36 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.13-r4, 3.0.6-gentoo x86_64)
=================================================================
System uname: Linux-3.0.6-gentoo-x86_64-AMD_Athlon-tm-_64_Processor_3000+-with-gentoo-2.1
Timestamp of tree: Sat, 19 Nov 2011 22:30:02 +0000
ccache version 3.1.6 [enabled]
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.1.4-r3, 3.2.2
dev-util/ccache:          3.1.6
dev-util/cmake:           2.8.6-r3
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs ccache distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://gentoo-euetib.upc.es/mirror/gentoo/ ftp://ftp.udc.es/gentoo/ http://ftp.udc.es/gentoo/ rsync://ftp.udc.es/gentoo/"
LANG="es_ES.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="es"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac accessibility acpi alsa amd64 amr apm audio automount bash-completion bluetooth brasero bzip2 cairo cdda cddb cdio cdr cleartype cli consolekit cups curl dbus dga disk-partition divx4linux dri dts dvd dvdr dvdread encode evo exif ffmpeg flac fontconfig fortran gb gd gdu gif gnome gnutls gphoto2 gpm gstreamer gtk gtk2 gvfstranscode hal iconv imlib java jpeg lame mad maildir matroska mikmod mime mmap mmx mng mod mp3 mp4 mpeg multilib musepack nautilus ncurses network networkmanager nls nptl nptlonly nsplugin offensive ogg opengl pam perl php plotutils png policykit posix pulseaudio python qt3support quicktime readline samba sdl sharedmem slang sockets spell sse sse2 ssl svg theora threads tiff truetype tsmuxer udev unicode usb v4l v4l2 vcd video vlc vorbis wav wmf x264 xcb xine xml xorg xpm xulrunner xv xvid zlib" ALSA_CARDS="V8237" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="vhost_alias alias autoindex filter headers imagemap include info log_config mem_cache mime mime_magic negotiation userdir cache authz_host dir" CAMERAS="*" ELIBC="glibc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LINGUAS="es" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18 jruby" SANE_BACKENDS="snapscan epson" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2011-11-22 15:41:48 UTC
Please attach the entire build log to this bug report.
Comment 2 Andrea Conti 2011-11-26 09:09:11 UTC
I'm having the same problem on x86, with both 5.4.0_rc1 and 5.4.0_rc2. Only happens when building with +snmp.

infra ~ # emerge --info
Portage 2.1.10.37 (default/linux/x86/10.0/server, gcc-4.5.3, glibc-2.12.2-r0, 2.6.38-gentoo-r6 i686)
=================================================================
System uname: Linux-2.6.38-gentoo-r6-i686-Intel-R-_Xeon-R-_CPU_X3360_@_2.83GHz-with-gentoo-2.1
Timestamp of tree: Fri, 25 Nov 2011 23:15:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
ccache version 3.1.6 [enabled]
app-shells/bash:          4.2_p20
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/ccache:          3.1.6
dev-util/cmake:           2.8.6-r3
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.6
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.11.1-r1
sys-devel/binutils:       2.22
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo agr-fm-portage agr-fm-portage_shared
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA dlj-1.1"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/libexec/bacula /usr/share/gnupg/qualified.txt /var/www/localhost/htdocs/roundcube/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS=" --quiet-build=n"
FEATURES="assume-digests binpkg-logs buildpkg ccache distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage-packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage-shared"
SYNC="rsync://portage.agr.fm/gentoo-portage"
USE="acl bzip2 cli cracklib crypt cxx dri fortran iconv jpeg logrotate mmx modules mudflap ncurses nls nptl nptlonly openmp pam pcre perl png pppd python readline session sse sse2 sse4_1 ssl ssse3 sysfs tcl tcpd truetype unicode x86 xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_default authn_file authz_default authz_groupfile authz_host a uthz_owner authz_user autoindex dav dav_fs dav_lock deflate dir env expires ext_filter filter headers ident include log_config logio mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so vhost_alias" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Andrea Conti 2011-11-26 09:12:17 UTC
Created attachment 293797 [details]
build log
Comment 4 Andrea Conti 2011-12-10 09:18:00 UTC
bug is still there in 5.4.0_rc3
Comment 5 Ole Markus With (RETIRED) gentoo-dev 2011-12-11 09:29:52 UTC
For bugs with RCs, please make sure you file an upstream bug and attach to this issue. Hopefully it can be fixed before a final release.
Comment 6 mondrillo 2011-12-26 08:52:44 UTC
while public last release, I can update my system masking 4.0* versions
for do that edit this file a put this line

/etc/portage/package.mask

>dev-lang/php-5.3.9_rc3
Comment 7 Ole Markus With (RETIRED) gentoo-dev 2012-01-31 09:17:21 UTC
I am unable to reproduce this with RC6. Could you confirm whether this bug is still present or not?
Comment 8 Andrea Conti 2012-01-31 09:40:41 UTC
rc6 is fine here.
Comment 9 Ole Markus With (RETIRED) gentoo-dev 2012-01-31 10:19:43 UTC
Cool. Closing then.