Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 326761

Summary: app-emulation/open-vm-tools-0.0.20100320.243334 builds with -Werror
Product: Gentoo Linux Reporter: Chris Lieb <chris.lieb.hotmail+gentoo>
Component: New packagesAssignee: Gentoo VMWare Bug Squashers [disabled] <vmware+disabled>
Status: RESOLVED DUPLICATE    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 260867    

Description Chris Lieb 2010-07-03 18:26:46 UTC
After upgrading from libpng-1.2* to libpng-1.4*, I did a revdep-rebuild to rebuild all packages that linked against libpng-1.2*.  The only package that failed was open-vm-tools, which used a deprecated function of libpng.  This would not be a problem except open-vm-tools defaults to building with -Werror, turning the warning into a build-halting error.



Reproducible: Always

Steps to Reproduce:
1. Uninstall libpng-1.2* and install libpng-1.4*
2. Try to emerge app-emulation/open-vm-tools-0.0.20100320.243334


Actual Results:  
Watch the emerge end with an error caused by a warning about using a deprecated function that is treated as an error

Expected Results:  
The emerge completes without a hitch.

================================================================================
Build error
================================================================================

libtool: compile:  i686-pc-linux-gnu-gcc -DPACKAGE_NAME=\"open-vm-tools\" -DPACKAGE_TARNAME=\"open-vm-tools\" -DPACKAGE_VERSION=\"2010.03.20\" "-DPACKAGE_STRING=\"open-vm-tools 2010.03.20\"" -DPACKAGE_BUGREPORT=\"open-vm-tools-devel@lists.sourceforge.net\" -DPACKAGE=\"open-vm-tools\" -DVERSION=\"2010.03.20\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_ECVT=1 -DHAVE_FCVT=1 -DHAVE_CRYPT_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_WCHAR_H=1 -DHAVE_SYS_IO_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_SYSINFO_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_USER_H=1 -DHAVE_SYS_VFS_H=1 -DHAVE_UNWIND_H=1 -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 -DHAVE_STRUCT_STAT_ST_RDEV=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_LSEEK=1 -I. -I/var/tmp/portage/app-emulation/open-vm-tools-0.0.20100320.243334/work/open-vm-tools-2010.03.20-243334/lib/include -I/var/tmp/portage/app-emulation/open-vm-tools-0.0.20100320.243334/work/open-vm-tools-2010.03.20-243334/lib/include -DUSING_AUTOCONF=1 -DOPEN_VM_TOOLS -DVMX86_TOOLS -DNO_CORE_ICU -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -DGLIBC_VERSION_21 -DGLIBC_VERSION_22 -DGLIBC_VERSION_23 -I/usr/include/libpng14 -I/usr/include -O2 -march=native -pipe -Wall -Werror -Wno-pointer-sign -Wno-unused-value -fno-strict-aliasing -Wno-unknown-pragmas -Wno-uninitialized -MT imageUtilPng.lo -MD -MP -MF .deps/imageUtilPng.Tpo -c imageUtilPng.c  -fPIC -DPIC -o .libs/imageUtilPng.o
cc1: warnings being treated as errors
imageUtilPng.c: In function âImageUtil_ReadPNGBufferâ:
imageUtilPng.c:139: error: âjmpbufâ is deprecated (declared at /usr/include/libpng14/png.h:1096)
imageUtilPng.c: In function âImageUtil_ConstructPNGBufferâ:
imageUtilPng.c:353: error: âjmpbufâ is deprecated (declared at /usr/include/libpng14/png.h:1096)
make[2]: *** [imageUtilPng.lo] Error 1
make[2]: Leaving directory `/var/tmp/portage/app-emulation/open-vm-tools-0.0.20100320.243334/work/open-vm-tools-2010.03.20-243334/lib/image'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-emulation/open-vm-tools-0.0.20100320.243334/work/open-vm-tools-2010.03.20-243334/lib'
make: *** [all-recursive] Error 1
 * ERROR: app-emulation/open-vm-tools-0.0.20100320.243334 failed:
 *   failed to compile
 *
 * Call stack:
 *     ebuild.sh, line  48:  Called src_compile
 *   environment, line 2748:  Called die
 * The specific snippet of code:
 *       emake || die "failed to compile"

================================================================================
emerge --info
================================================================================

Portage 2.2_rc67 (default/linux/x86/10.0/desktop, gcc-4.4.3, glibc-2.11.2-r0, 2.6.34-gentoo-r1 i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.34-gentoo-r1-i686-Intel-R-_Core-TM-2_Duo_CPU_T7700_@_2.40GHz-with-gentoo-1.12.13
Timestamp of tree: Sat, 03 Jul 2010 15:30:16 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.5-r2, 3.1.2-r3
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.34
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="/ assume-digests buildpkg ccache collision-protect distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_US"
MAKEOPTS="-j2"
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/layman/wirelay /usr/local/portage/private"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="/ X a52 aac acl acpi aim alsa apache2 apm arts audiofile bash-completion berkdb bluetooth branding bzip bzip2 cairo cddb cdparanoia cdr cgi clamav cli consolekit cracklib crpyt crypt cups curl curlwrappers cxx dbm dbus dbx dga directfb dri dts dv dvd dvdr dvdread emacs emboss encode enscript esd exif expat fam fastcgi fbcon ffmpeg firefox flac fortran ftp gd gdbm gif glut gnutls gphoto2 gpm graphviz gstreamer gtk hal htmlhandbook iconv imagemagick imap imlib innodb ipv6 jabber java javascript jbig jpeg jpeg2k junit kde lame latex lcms ldap libnotify libww lzo mad matroska mbox mhash mikmod mime mmx mng modules mono mozilla mp3 mp4 mpeg mplayer msn mudflap musepack musicbrainz mysql mysqli ncurses networkmanager nls nptl nptlonly nsplugin ocaml offensive ogg openal opengl openmp oscar oss pam pango pcntl pcre pdf perl php plasma plotutils png portaudio posix ppds pppd python qt qt3support qt4 quicktime readline recode reflection rss ruby samba sasl sdl semantic-desktop session sharedext shorten simplexml slang sndfile snmp soap sockets socks5 speex spell spl sqlite sse sse2 ssl startup-notification subversion svg symlink sysfs syslog sysvipc taglib tcl tcpd tetex theora threads tidy tiff tokenizer truetype type1 unicode usb v4l v4l2 vcd vhosts vorbis wavpack win32codecs wmf x264 x86 xattr xcb xcomposite xine xinetd xml xmlrpc xorg xpm xscreensaver xsl xulrunner xv xvid yahoo zeroconf 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 authn_alias authn_anon authn_dbm /  authn_default authn_file authz_dbm authz_default authz_default /        authz_groupfile authz_host authz_owner authz_user autoindex cache /     dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter /     file_cache filter headers include info log_config logio mem_cache /     mime mime_magic negotiation rewrite setenvif speling status /  unique_id userdir usertrack vhost_alias asis auth_digest authn_dbd /     cern_meta charset_lite dbd dumpio ident imagemap log_forensic proxy /   proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http version" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse vmmouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vmware fbdev vesa vga" 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, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

app-emulation/open-vm-tools-0.0.20100320.243334 was built with the following:
USE="X fuse pic unity xinerama -doc -icu"
Comment 1 Vadim Kuznetsov (RETIRED) gentoo-dev 2010-07-03 21:21:31 UTC

*** This bug has been marked as a duplicate of bug 260878 ***
Comment 2 Marko Weber Bürgermeister 2010-08-25 12:10:23 UTC
(In reply to comment #1)
> 
> *** This bug has been marked as a duplicate of bug 260878 ***
> 

i get on my gentoo-server following messages 

make[1]: Entering directory `/usr/src/linux-2.6.35'
make[1]: warning: jobserver unavailable: using -j1.  Add `+' to parent make rule.
  CC [M]  /var/tmp/portage/app-emulation/open-vm-tools-kmod-0.0.20100616.268169/work/open-vm-tools-2010.06.16-268169/modules/linux/vmxnet/vmxnet.o
/var/tmp/portage/app-emulation/open-vm-tools-kmod-0.0.20100616.268169/work/open-vm-tools-2010.06.16-268169/modules/linux/vmxnet/vmxnet.c: In function 'vmxnet_load_multicast':
/var/tmp/portage/app-emulation/open-vm-tools-kmod-0.0.20100616.268169/work/open-vm-tools-2010.06.16-268169/modules/linux/vmxnet/vmxnet.c:2954: error: 'struct net_device' has no member named 'mc_list'
/var/tmp/portage/app-emulation/open-vm-tools-kmod-0.0.20100616.268169/work/open-vm-tools-2010.06.16-268169/modules/linux/vmxnet/vmxnet.c:2964: error: 'struct net_device' has no member named 'mc_count'
/var/tmp/portage/app-emulation/open-vm-tools-kmod-0.0.20100616.268169/work/open-vm-tools-2010.06.16-268169/modules/linux/vmxnet/vmxnet.c:2965: error: dereferencing pointer to incomplete type
/var/tmp/portage/app-emulation/open-vm-tools-kmod-0.0.20100616.268169/work/open-vm-tools-2010.06.16-268169/modules/linux/vmxnet/vmxnet.c:2966: error: dereferencing pointer to incomplete type
make[2]: *** [/var/tmp/portage/app-emulation/open-vm-tools-kmod-0.0.20100616.268169/work/open-vm-tools-2010.06.16-268169/modules/linux/vmxnet/vmxnet.o] Error 1
make[1]: *** [_module_/var/tmp/portage/app-emulation/open-vm-tools-kmod-0.0.20100616.268169/work/open-vm-tools-2010.06.16-268169/modules/linux/vmxnet] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.35'
make: *** [vmxnet.ko] Error 2
 * ERROR: app-emulation/open-vm-tools-kmod-0.0.20100616.268169 failed:
 *   Unable to emake HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS=   auto-build HEADER_DIR=/usr/src/linux/include BUILD_DIR=/usr/src/linux OVT_SOURCE_DIR=/var/tmp/portage/app-emulation/open-vm-tools-kmod-0.0.20100616.268169/work/open-vm-tools-2010.06.16-268169
 * 
 * Call stack:
 *     ebuild.sh, line   54:  Called src_compile
 *   environment, line 3492:  Called linux-mod_src_compile
 *   environment, line 2688:  Called die
 * The specific snippet of code:
 *               eval "emake HOSTCC=\"$(tc-getBUILD_CC)\"                                               CROSS_COMPILE=${CHOST}-                                                 LDFLAGS=\"$(get_abi_LDFLAGS)\"                                             ${BUILD_FIXES}                                          ${BUILD_PARAMS}                                   ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
 * 
 * If you need support, post the output of 'emerge --info =app-emulation/open-vm-tools-kmod-0.0.20100616.268169',
 * the complete build log and the output of 'emerge -pqv =app-emulation/open-vm-tools-kmod-0.0.20100616.268169'.
 * The complete build log is located at '/var/tmp/portage/app-emulation/open-vm-tools-kmod-0.0.20100616.268169/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/open-vm-tools-kmod-0.0.20100616.268169/temp/environment'.
 * S: '/var/tmp/portage/app-emulation/open-vm-tools-kmod-0.0.20100616.268169/work/open-vm-tools-2010.06.16-268169'