Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 37074 - net-misc/gemsvnc-1 fails to compile; after fixing the ebuild, it fails to work properly at any pixel resolution other than 32 bpp
Summary: net-misc/gemsvnc-1 fails to compile; after fixing the ebuild, it fails to wor...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-02 21:31 UTC by Henry So, Jr.
Modified: 2004-03-28 00:46 UTC (History)
0 users

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


Attachments
Patched ebuild to fix described problems (gemsvnc-1.ebuild,1.04 KB, text/plain)
2004-01-02 21:32 UTC, Henry So, Jr.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Henry So, Jr. 2004-01-02 21:31:40 UTC
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"
Comment 1 Henry So, Jr. 2004-01-02 21:32:39 UTC
Created attachment 23046 [details]
Patched ebuild to fix described problems
Comment 2 SpanKY gentoo-dev 2004-01-03 08:40:36 UTC
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
Comment 3 SpanKY gentoo-dev 2004-01-13 20:58:21 UTC
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 :/
Comment 4 SpanKY gentoo-dev 2004-03-28 00:42:40 UTC
someone else fixed it for me :)
Comment 5 SpanKY gentoo-dev 2004-03-28 00:46:27 UTC
2-r1 fixes this bpp issues (see Bug 45845)