I tried to emerge gemsvnc and received a compile error. In addition, after patching the ebuild, gemsvnc fails to work with any pixel resolution other than 32 bits per pixel. Reproducible: Always Steps to Reproduce: 1. emerge gemsvnc 2. patch the ebuild to #include <unistd.h> 3. emerge gemsvnc 4. run gemsvnc when X is running at 16 bpp 5. use some vncviewer to connect to gemsvnc Actual Results: I reveived the following during building: >>> md5 src_uri ;-) gemsvnc-1.tbz2 >>> Unpacking source... >>> Unpacking gemsvnc-1.tbz2 to /var/tmp/portage/gemsvnc-1/work >>> Source unpacked. g++ -march=pentium3 -O2 -pipe -I/usr/include/rfb -DHAVE_PTHREADS -c commands.c g++ -march=pentium3 -O2 -pipe -I/usr/include/rfb -DHAVE_PTHREADS -c ilace.c g++ -march=pentium3 -O2 -pipe -I/usr/include/rfb -DHAVE_PTHREADS -c rectangle.c g++ -march=pentium3 -O2 -pipe -I/usr/include/rfb -DHAVE_PTHREADS -c cmd_sockets.c g++ -march=pentium3 -O2 -pipe -I/usr/include/rfb -DHAVE_PTHREADS -c gemsvnc.car -rc locallib.a commands.o ilace.o rectangle.o cmd_sockets.o gemsvnc.c: In function `int main(int, char**)': gemsvnc.c:1438: `fork' undeclared (first use this function) gemsvnc.c:1438: (Each undeclared identifier is reported only once for each function it appears in.) gemsvnc.c:1439: `setsid' undeclared (first use this function) gemsvnc.c:1441: `chdir' undeclared (first use this function) gemsvnc.c:1442: `close' undeclared (first use this function) make: *** [gemsvnc.o] Error 1 !!! ERROR: net-misc/gemsvnc-1 failed. !!! Function src_compile, Line 37, Exitcode 2 !!! emake failed --- After patching the ebuild to #include <unistd.h>, I ran gemsvnc in X which is running at 16 bpp. Upon connecting to the server using a vncviewer on another machine, I do not see the proper display. Expected Results: The build should have completed properly in the first case, and the display should have been correct in the second case. I have patched the ebuild for both problems. Please see the attachment. emerge info information: Portage 2.0.49-r20 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.4.22) ================================================================= System uname: 2.4.22 i686 Intel(R) Xeon(TM) CPU 2.40GHz Gentoo Base System version 1.4.3.10p1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O2 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=pentium3 -O2 -pipe" DISTDIR="/usr/local/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa apm arts avi berkdb bonobo cdr crypt cups encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 gtkhtml guile imap imlib java joystick jpeg kde libg++ libwww mad mikmod motif mozilla moznocompose moznoirc moznomail mozsvg mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png postgres ppds python qt quicktime readline ruby ruby18 scanner sdl slang spell ssl svga tcltk tcpd tetex tiff truetype x86 xml2 xmms xv zlib"
Created attachment 23046 [details] Patched ebuild to fix described problems
i added the include patch ... i dont have any 16 bit servers laying around so i'll have to play with that in a bit
as far as i can tell, this is an upstream bug ... fixing this is a little beyond me and not really worth the time i dont think ... in the meantime, i'd suggest x11vnc that comes with the libvncserver package ... it's pretty much on par with gemsvnc now sorry :/
someone else fixed it for me :)
2-r1 fixes this bpp issues (see Bug 45845)