Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
net-misc/tigervnc-1.2.0 fails to build
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1169
Location: PB, Germany

PostPosted: Mon Dec 03, 2012 12:06 pm    Post subject: net-misc/tigervnc-1.2.0 fails to build Reply with quote

Hi, what is wrong with net-misc/tigervnc-1.2.0 on amd64? It builts with default USE, but not with USE="server" which I need.
Is there any better vnc server?

Regards,
Massimo
Code:
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):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=net-misc/tigervnc-1.2.0'`,
 * the complete build log and the output of `emerge -pqv '=net-misc/tigervnc-1.2.0'`.
 * The complete build log is located at '/var/tmp/portage/net-misc/tigervnc-1.2.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-misc/tigervnc-1.2.0/temp/environment'.
 * Working directory: '/var/tmp/portage/net-misc/tigervnc-1.2.0/work/tigervnc-1.2.0/unix/xserver'
 * S: '/var/tmp/portage/net-misc/tigervnc-1.2.0/work/tigervnc-1.2.0'
!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="" JAVA_HOME="/etc/java-config-2/current-system-vm"
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info
Code:
$ 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

_________________
ppc:PowerBook5,8 15"(1440)-G4/1.67, 2G(dev.notes[pdf]) | amd64:Core2Duo,i5-3470 | amd64-prefix:OpenSuse@Core2Quad | Lila-Theme
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2633
Location: Slovenia

PostPosted: Mon Dec 03, 2012 12:38 pm    Post subject: Reply with quote

The problem is that "-Werror=int-to-pointer-cast" is added by the build system. This turns what used to be a warning into an error. A possible workaround is to insert "-Wno-error=int-to-pointer-cast" into CFLAGS at the right place. The other possibility is to fix the code, but no idea how to go about that.

Edit: Just found something interesting in the Fedora RPM spec file. Try this: open the ebuild, find the section where a whole bunch of stuff for the server is configured, add --disable-selective-werror there.
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1169
Location: PB, Germany

PostPosted: Tue Dec 04, 2012 8:48 am    Post subject: Reply with quote

Thank you, that worked. Maybe that CFLAG should be added to the ebuild? I filed a [bug 445896] for this.
_________________
ppc:PowerBook5,8 15"(1440)-G4/1.67, 2G(dev.notes[pdf]) | amd64:Core2Duo,i5-3470 | amd64-prefix:OpenSuse@Core2Quad | Lila-Theme
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2633
Location: Slovenia

PostPosted: Tue Dec 04, 2012 11:19 am    Post subject: Reply with quote

Thanks for opening a bug. I commented there, proposed a patch for the ebuild.
Back to top
View user's profile Send private message
Hu
Watchman
Watchman


Joined: 06 Mar 2007
Posts: 8592

PostPosted: Tue Dec 04, 2012 11:48 pm    Post subject: Reply with quote

Usually, that error indicates buggy code which will fail to execute correctly. The error should be fixed, not downgraded into a warning.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum