Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 242350 - emerge net-misc/vnc-4.1.2-r5 failed
Summary: emerge net-misc/vnc-4.1.2-r5 failed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Raúl Porcel (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-16 16:14 UTC by gapon
Modified: 2009-01-04 20:02 UTC (History)
2 users (show)

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


Attachments
build log (build.log,574.03 KB, text/plain)
2008-10-16 16:15 UTC, gapon
Details
Patch vnc ebuild to select xorg-x11 opengl tokens during build (vnc-4.1.2-r5.epatch,1.34 KB, patch)
2009-01-04 19:28 UTC, Eric Bosch
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description gapon 2008-10-16 16:14:33 UTC
I will attach the build.log.

Reproducible: Always

Actual Results:  
rensize.c: In function ‘__glXImageSize’:
rensize.c:227: error: ‘GL_DEPTH_STENCIL_MESA’ undeclared (first use in this function)
rensize.c:227: error: (Each undeclared identifier is reported only once
rensize.c:227: error: for each function it appears in.)
rensize.c:266: error: ‘GL_UNSIGNED_SHORT_15_1_MESA’ undeclared (first use in this function)
rensize.c:267: error: ‘GL_UNSIGNED_SHORT_1_15_REV_MESA’ undeclared (first use in this function)
rensize.c:281: error: ‘GL_UNSIGNED_INT_24_8_MESA’ undeclared (first use in this function)
rensize.c:282: error: ‘GL_UNSIGNED_INT_8_24_REV_MESA’ undeclared (first use in this function)
libtool: compile:  i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../hw/xfree86/os-support -I../hw/xfree86/os-support/bus -I../hw
/xfree86/common -I../hw/xfree86/dri -I../hw/xfree86/dri2 -I../mi -DHAVE_DIX_CONFIG_H -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-pr
ototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I/usr/include/freety
pe2 -I/usr/include/pixman-1 -I/usr/kerberos/include -I../include -I../include -I../Xext -I../damageext -I../xfixes -I../Xi -I../mi -I../mie
xt/shadow -I../miext/damage -I../render -I../randr -I../fb -I/usr/include/drm -I/usr/include/X11/dri -DXFree86Server -O2 -march=prescott -p
ipe -MT single2.lo -MD -MP -MF .deps/single2.Tpo -c single2.c  -fPIC -DPIC -o .libs/single2.o
make[1]: *** [rensize.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
libtool: compile:  i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../hw/xfree86/os-support -I../hw/xfree86/os-support/bus -I../hw
/xfree86/common -I../hw/xfree86/dri -I../hw/xfree86/dri2 -I../mi -DHAVE_DIX_CONFIG_H -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-pr
ototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I/usr/include/freety
pe2 -I/usr/include/pixman-1 -I/usr/kerberos/include -I../include -I../include -I../Xext -I../damageext -I../xfixes -I../Xi -I../mi -I../mie
xt/shadow -I../miext/damage -I../render -I../randr -I../fb -I/usr/include/drm -I/usr/include/X11/dri -DXFree86Server -O2 -march=prescott -p
ipe -MT single2swap.lo -MD -MP -MF .deps/single2swap.Tpo -c single2swap.c  -fPIC -DPIC -o .libs/single2swap.o
mv -f .deps/single2swap.Tpo .deps/single2swap.Plo
mv -f .deps/single2.Tpo .deps/single2.Plo
make[1]: Leaving directory `/var/tmp/portage/net-misc/vnc-4.1.2-r5/work/vnc-4_1_2-unixsrc/unix/xorg-x11-server-source/glx'
make: *** [all-recursive] Error 1



gapon@cattie ~ $ emerge --info
Portage 2.2_rc12 (default/linux/x86/2008.0/desktop, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.26-gentoo-r2 i686)
=================================================================                                            
System uname: Linux-2.6.26-gentoo-r2-i686-Genuine_Intel-R-_CPU_T2600_@_2.16GHz-with-glibc2.0                 
Timestamp of tree: Thu, 16 Oct 2008 14:00:01 +0000                                                           
app-shells/bash:     3.2_p39                                                                                 
dev-java/java-config: 1.3.7, 2.1.6-r1                                                                        
dev-lang/python:     2.4.4-r15, 2.5.2-r8                                                                     
dev-python/pycrypto: 2.0.1-r6                                                                                
dev-util/cmake:      2.6.2                                                                                   
sys-apps/baselayout: 2.0.0                                                                                   
sys-apps/openrc:     0.3.0-r1                                                                                
sys-apps/sandbox:    1.2.18.1-r3                                                                             
sys-devel/autoconf:  2.13, 2.63                                                                              
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1                             
sys-devel/binutils:  2.18-r3                                                                                 
sys-devel/gcc-config: 1.4.0-r4                                                                               
sys-devel/libtool:   2.2.6a                                                                                  
virtual/os-headers:  2.6.26                                                                                  
ACCEPT_KEYWORDS="x86 ~x86"                                                                                   
CBUILD="i686-pc-linux-gnu"                                                                                   
CFLAGS="-O2 -march=prescott -pipe"                                                                           
CHOST="i686-pc-linux-gnu"                                                                                    
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"                           
CXXFLAGS="-O2 -march=prescott -pipe"                                                                                                                                             
DISTDIR="/usr/portage/distfiles"                                                                                                                                                 
FEATURES="collision-protect distlocks fixpackages metadata-transfer parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"                 
GENTOO_MIRRORS=" ftp://ftp.linux.cz/pub/linux/gentoo http://gentoo.inode.at/ ftp://213.186.33.38/gentoo-distfiles/ http://gentoo.inf.elte.hu/"                                   
LANG="cs_CZ.UTF-8"
LC_ALL="cs_CZ.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common"
LINGUAS="cs"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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/bzr-gentoo-overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib accessibility acl acpi alsa apache2 aspnet aspnetedit avi bash-completion berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt css cups dbus directfb divx4linux dri dvd dvdr dvdread eds emboss encode evo examples exif faad fam fbcon ffmpeg firebird firefox firefox3 fortran ftp gdbm gif git gnutls gpm gstreamer gtk gtk2 haliconv imap inotify ipod ipv6 isdnlog jabber java java5 java6 jpeg jpeg2k jython kde kdeenablefinal kerberos laptop ldap libnotify logitech-mouse logrotate mad midi mikmod mmx mmx2 mng mono moonlight mp3 mpeg mplayer mudflap mysql ncurses networkmanager nls nptl nptlonly nsplugin nvidia ogg opengl openmp oss pam pch pcmcia pcre pdf perl png pnp postgres ppds pppd python qt qt3 qt3support qt4 quicktime readline reflection ruby samba sasl sdl seamonkey session smp spell spl sqlite sqlite3 sse sse2 ssl startup-notification subversion svg swig sysfs tcpd theora tiff truetype unicode usb utf8 vim vim-syntax vorbis webkit wifi win32codecs wireshark x264 x86 xcb xine xinerama xml xorg xscreensaver xv xvid zlib zsh-completion" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emulmulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers identimagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CAMERAS="ptp2 canon" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="cs" USERLAND="GNU" VIDEO_CARDS="nvidia nv vga vesa fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 gapon 2008-10-16 16:15:11 UTC
Created attachment 168676 [details]
build log
Comment 2 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2008-10-17 12:51:55 UTC
what version of mesa have you installed?
give the output of 
emerge -pv mesa

thanks
Comment 3 gapon 2008-10-17 13:04:16 UTC
gapon@cattie ~ $ emerge -pv mesa          

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] media-libs/mesa-7.2  USE="nptl xcb -debug -doc -motif -pic" VIDEO_CARDS="-i810 -mach64 -mga -none -r128 -radeon -s3virge -savage -sis (-sunffb) -tdfx -trident -via" 0 kB                                                                                                                                                                     

Total: 1 package (1 reinstall), Size of downloads: 0 kB
Comment 4 Gabriel San Roman 2008-11-02 15:02:51 UTC
I'm having the same problem. Please check  if /usr/include/GL/gl.h has an NVIDIA header, I think this might be the problem,vnc tries to rebuild a xorg-server and finds the nvidia GL headers and expects the mesa version of the headers. Unfortunately i have no idea how to solve it.

HTH
Comment 5 Gergely POLONKAI 2008-11-03 14:54:25 UTC
It seems that temporarily switching to the xorg-x11 opengl interface with `eselect opengl set xorg-x11` solves the problem. Switching back to nvidia interface afterwards, and vncserver and viewer works just fine.
Comment 6 Honza 2008-11-14 11:03:32 UTC
Thank you very much. It worked for me...

H.

(In reply to comment #5)
> It seems that temporarily switching to the xorg-x11 opengl interface with
> `eselect opengl set xorg-x11` solves the problem. Switching back to nvidia
> interface afterwards, and vncserver and viewer works just fine.
> 

Comment 7 gapon 2008-11-14 11:06:59 UTC
For me as well, thanks a lot.
Comment 8 Joe Harvell 2008-11-17 03:10:30 UTC
I'm having the same problem, but the workaround did not solve the problem.

I did 'eselect opengl set xorg-x11', then 'eselect opengl set nvidia'.  Finally, I attempted to rebuild vnc-4.1.2-r5 and it failed again with the same error described here.
Comment 9 Joe Harvell 2008-11-18 04:39:57 UTC
This must have been user error.  I tried the workaround again, and this time it worked.

(In reply to comment #8)
> I'm having the same problem, but the workaround did not solve the problem.
> 
> I did 'eselect opengl set xorg-x11', then 'eselect opengl set nvidia'. 
> Finally, I attempted to rebuild vnc-4.1.2-r5 and it failed again with the same
> error described here.
> 

Comment 10 Eric Bosch 2009-01-04 19:26:21 UTC
Here is a patch to allow the vnc ebuild to automatically switch to xorg-x11 opengl, build install, and then switch back to original opengl settings.
Comment 11 Eric Bosch 2009-01-04 19:28:35 UTC
Created attachment 177390 [details, diff]
Patch vnc ebuild to select xorg-x11 opengl tokens during build

This will switch from whatever opengl implementation is selected to xorg-x11, build, install, and then switch back to original implementation.
Comment 12 Raúl Porcel (RETIRED) gentoo-dev 2009-01-04 20:02:49 UTC
In CVS, thanks for the patch.