Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 445896 - net-misc/tigervnc-1.2.0 fails to build
Summary: net-misc/tigervnc-1.2.0 fails to build
Status: RESOLVED DUPLICATE of bug 445452
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-12-04 08:44 UTC by Massimo Burcheri
Modified: 2012-12-07 16:50 UTC (History)
0 users

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


Attachments
add --disable-selective-werror (tigervnc-buildfix.patch,324 bytes, patch)
2012-12-04 11:17 UTC, Uroš Vampl
Details | Diff
int-to-pointer-cast_fix (1.2.0-int-to-pointer-cast_fix.patch,721 bytes, patch)
2012-12-07 16:50 UTC, and
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Massimo Burcheri 2012-12-04 08:44:28 UTC
vncExtInit.cc:1070:39: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
cc1plus: some warnings being treated as errors
make[3]: *** [libvnccommon_la-vncExtInit.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from ../../include/dixfontstr.h:28:0,
                 from vncHooks.cc:38:
../../include/dixfont.h: At global scope:
../../include/dixfont.h:149:61: warning: redundant redeclaration of 'int client_auth_generation(ClientPtr)' in same scope [-Wredundant-decls]
/usr/include/X11/fonts/fontproto.h:52:12: warning: previous declaration of 'int client_auth_generation(ClientPtr)' [-Wredundant-decls]
../../include/dixfont.h:151:49: warning: redundant redeclaration of 'void DeleteFontClientID(Font)' in same scope [-Wredundant-decls]
/usr/include/X11/fonts/fontproto.h:59:13: warning: previous declaration of 'void DeleteFontClientID(Font)' [-Wredundant-decls]
../../include/dixfont.h:153:65: warning: redundant redeclaration of '_FontResolution* GetClientResolutions(int*)' in same scope [-Wredundant-decls]
/usr/include/X11/fonts/font.h:147:26: warning: previous declaration of '_FontResolution* GetClientResolutions(int*)' [-Wredundant-decls]
../../include/dixfont.h:155:46: warning: redundant redeclaration of 'int GetDefaultPointSize()' in same scope [-Wredundant-decls]
/usr/include/X11/fonts/fontproto.h:44:12: warning: previous declaration of 'int GetDefaultPointSize()' [-Wredundant-decls]
../../include/dixfont.h:157:46: warning: redundant redeclaration of 'Font GetNewFontClientID()' in same scope [-Wredundant-decls]
/usr/include/X11/fonts/fontproto.h:60:13: warning: previous declaration of 'Font GetNewFontClientID()' [-Wredundant-decls]
../../include/dixfont.h:160:72: warning: redundant redeclaration of 'int init_fs_handlers(FontPathElementPtr, BlockHandlerProcPtr)' in same scope [-Wredundant-decls]
/usr/include/X11/fonts/fontproto.h:46:12: warning: previous declaration of 'int init_fs_handlers(FontPathElementPtr, BlockHandlerProcPtr)' [-Wredundant-decls]
../../include/dixfont.h:176:68: warning: redundant redeclaration of 'int RegisterFPEFunctions(NameCheckFunc, InitFpeFunc, FreeFpeFunc, ResetFpeFunc, OpenFontFunc, CloseFontFunc, ListFontsFunc, StartLfwiFunc, NextLfwiFunc, WakeupFpeFunc, ClientDiedFunc, LoadGlyphsFunc, StartLaFunc, NextLaFunc, SetPathFunc)' in same scope [-Wredundant-decls]
/usr/include/X11/fonts/fontproto.h:28:12: warning: previous declaration of 'int RegisterFPEFunctions(NameCheckFunc, InitFpeFunc, FreeFpeFunc, ResetFpeFunc, OpenFontFunc, CloseFontFunc, ListFontsFunc, StartLfwiFunc, NextLfwiFunc, WakeupFpeFunc, ClientDiedFunc, LoadGlyphsFunc, StartLaFunc, NextLaFunc, SetPathFunc)' [-Wredundant-decls]
../../include/dixfont.h:180:50: warning: redundant redeclaration of 'void remove_fs_handlers(FontPathElementPtr, BlockHandlerProcPtr, Bool)' in same scope [-Wredundant-decls]
/usr/include/X11/fonts/fontproto.h:48:13: warning: previous declaration of 'void remove_fs_handlers(FontPathElementPtr, BlockHandlerProcPtr, Bool)' [-Wredundant-decls]
../../include/dixfont.h:182:64: warning: redundant redeclaration of 'int StoreFontClientFont(FontPtr, Font)' in same scope [-Wredundant-decls]
/usr/include/X11/fonts/fontproto.h:61:12: warning: previous declaration of 'int StoreFontClientFont(FontPtr, Font)' [-Wredundant-decls]
make[3]: Leaving directory `/var/tmp/portage/net-misc/tigervnc-1.2.0/work/tigervnc-1.2.0/unix/xserver/hw/vnc'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/net-misc/tigervnc-1.2.0/work/tigervnc-1.2.0/unix/xserver/hw/vnc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-misc/tigervnc-1.2.0/work/tigervnc-1.2.0/unix/xserver/hw'
make: *** [all-recursive] Error 1
 * ERROR: net-misc/tigervnc-1.2.0 failed (compile phase): 

Reproducible: Always



Expected Results:  
If you add -Wno-error=int-to-pointer-cast to global CFLAGS (thanks to Gusar from forums) it can be emerged successfully.

$ emerge --info
Portage 2.1.11.31 (default/linux/amd64/10.0/desktop, gcc-4.6.3, glibc-2.15-r3, 3.5.7-gentoo x86_64)
=================================================================
System uname: Linux-3.5.7-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E6550_@_2.33GHz-with-gentoo-2.1
Timestamp of tree: Mon, 03 Dec 2012 00:45:01 +0000
ld GNU ld (GNU Binutils) 2.22
distcc 3.1 x86_64-pc-linux-gnu [enabled]
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.11.6
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo portage_padmburcheri1-linux kde-sunset science sunrise xfce-dev vmware mv bleeding-edge
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA Oracle-BCLA-JavaSE AdobeFlash-10.3"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask-write"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distcc distcc-pump distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="    http://ftp.halifax.rwth-aachen.de/gentoo     http://de-mirror.org/gentoo     http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror "
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en de"
MAKEOPTS="-j30"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /var/lib/layman/kde-sunset /var/lib/layman/science /var/lib/layman/sunrise /var/lib/layman/xfce-dev /var/lib/layman/vmware /var/lib/layman/mv /var/lib/layman/bleeding-edge"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb branding bzip2 cairo cdda cddb cdio cdr cli consolekit cracklib crypt cscope cups cxx dbus dri dts dvd dvdr emboss encode exif fam fat firefox flac fortran gdbm gif git gpm gtk hddtemp iconv id3 jpeg lcms ldap libnotify lm_sensors mad mercurial mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nfs nls nptl nsplugin ogg opengl openmp optimization pam pango pcre pdf png policykit ppds pppd qt3support qt4 rar readline sdl session spell sse sse2 sse3 ssl ssse3 startup-notification strong-optimization svg tcpd tiff truetype udev udisks unicode upower usb vim-pager vim-syntax vorbis wxwidgets x264 xcb xml xmp xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en de" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="intel" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Uroš Vampl 2012-12-04 11:17:49 UTC
Created attachment 331396 [details, diff]
add --disable-selective-werror

Fedora works around this by specifying --disable-selective-werror when configuring the server. The attached patch does the same to the Gentoo ebuild.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2012-12-04 15:23:34 UTC

*** This bug has been marked as a duplicate of bug 445452 ***
Comment 3 and 2012-12-07 16:50:08 UTC
Created attachment 331746 [details, diff]
int-to-pointer-cast_fix

this patch works for me (tm).