There is an i386 hardwire in the vnc ebuild which results in the following compile failure on Gentoo/Sparc... making all in ./vncviewer... make[1]: Entering directory `/var/tmp/portage/vnc-3.3.3-r2/work/vnc_unixsrc/vncv iewer' gcc -mcpu=i686 -march=i686 - O3 -pipe -ansi -I../include -I. -I/usr/X11R6/incl ude -Dlinux -D__i386__ - D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOUR CE -D_BSD_SOURCE -D_SVID_SOURCE - DFUNCPROTO=15 -DNARROWPROTO -DMITSHM - c -o argsresources.o argsresources.c cc1: Invalid option `arch=i686' cc1: bad value (i686) for -mcpu= switch make[1]: *** [argsresources.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/vnc-3.3.3- r2/work/vnc_unixsrc/vncvi ewer' make: *** [all] Error 2 !!! ERROR: The ebuild did not complete successfully. !!! Function src_compile, Line 18, Exitcode 2 !!! (no error message) !!! emerge aborting on /usr/portage/net-misc/vnc/vnc-3.3.3-r2.ebuild .
This bug is hard to fix - The maintainer uses some trickery which makes it very difficult to compile this program on a different platform using the current ebuild. The situation is likely to remain unresolved because there is no more active work going on on this source tree: the AT&T labs in the UK which made it has been closed down and its staff fired. Please use TightVNC instead, it is being actively developed.
Fair enough, but see bug #6460 about problems with tightvnc on sparc :-(.
Refer bug #6460 again for further developments, the debian patch mentioned there not only allows it to build on sparc but fixes the backwards text problem too.
Chris, can you confirm this is still an issue, if not, then close this bug? Thanks
Jack, I'll try the newer vnc-3.3.5 and see how that goes. Failing that, I can confirm that the debian patch I mentioned in bug #6460 worked for vnc-3.3.3 but I cannot say what other side effects it might have for other arch's. (3.3.5 doesn't compile for me on x86 btw.) C.
3.3.5 compiled for me on x86 with gcc3.2 but not with gcc2.9, it still fails on my sparc (see below), so I'm downloading v3.3.6 to take another shot at making it work with the latest release version. cjr. -- make[2]: Leaving directory `/var/tmp/portage/vnc-3.3.5-r1/work/vnc-3.3.5-unixsrc/Xvnc/config/imake' cd ./config/imake && make -f Makefile.proto all make[2]: Entering directory `/var/tmp/portage/vnc-3.3.5-r1/work/vnc-3.3.5-unixsrc/Xvnc/config/imake' gcc -mcpu=v8 -mtune=v9 -O3 -pipe -ansi -pedantic -I../../include -I../../exports/include/X11 -I../.. -I../../exports/include -Dlinux LinuxMachineDefines -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE=500L -D_BSD_SOURCE -D_SVID_SOURCE -DFUNCPROTO=15 -DNARROWPROTO -DCPP_PROGRAM="\"/lib/cpp\"" -c -o imake.o imake.c gcc: cannot specify -o with -c or -S and multiple compilations make[2]: *** [imake.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/vnc-3.3.5-r1/work/vnc-3.3.5-unixsrc/Xvnc/config/imake' make[1]: *** [imake.bootstrap] Error 2 make[1]: Leaving directory `/var/tmp/portage/vnc-3.3.5-r1/work/vnc-3.3.5-unixsrc/Xvnc' make: *** [World] Error 2 !!! ERROR: net-misc/vnc-3.3.5-r1 failed. !!! Function src_compile, Line 40, Exitcode 2 !!! (no error message) -- make[2]: Leaving directory `/var/tmp/portage/vnc-3.3.6/work/vnc-3.3.6-unixsrc/Xvnc/config/imake' cd ./config/imake && make -f Makefile.proto all make[2]: Entering directory `/var/tmp/portage/vnc-3.3.6/work/vnc-3.3.6-unixsrc/Xvnc/config/imake' gcc -mcpu=v8 -mtune=v9 -O3 -pipe -ansi -pedantic -I../../include -I../../exports/include/X11 -I../.. -I../../exports/include -Dlinux LinuxMachineDefines -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE=500L -D_BSD_SOURCE -D_SVID_SOURCE -DFUNCPROTO=15 -DNARROWPROTO -DCPP_PROGRAM="\"/lib/cpp\"" -c -o imake.o imake.c gcc: cannot specify -o with -c or -S and multiple compilations make[2]: *** [imake.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/vnc-3.3.6/work/vnc-3.3.6-unixsrc/Xvnc/config/imake' make[1]: *** [imake.bootstrap] Error 2 make[1]: Leaving directory `/var/tmp/portage/vnc-3.3.6/work/vnc-3.3.6-unixsrc/Xvnc' make: *** [World] Error 2 !!! ERROR: net-misc/vnc-3.3.6 failed. !!! Function src_compile, Line 37, Exitcode 2 !!! (no error message)
last note for today, I really should mention that the vnc tools - vncviewer, vncpasswd and vncconnect all build and run (vncviewer to an x86 host works), this failure is only with Xvnc (the server component).
As an update, vnc-3.3.6-r1 has the same problem as 3.3.6
3.3.7 is in portage tree
VNC 3.3.7 has the same problem as >=3.3.5 when compiling.
Added a few debian patches to this to make it build for sparc. Apparently the display issue with characters being backwards is related to the big endianness of sparc64 (also effects ppc as well). I've unmasked vnc-3.3.7 and marked it as ~sparc. Anyone who can test it please do so and let me know your results.
Created attachment 12987 [details] Debian info on endian fix This attachment talks about the endian patch for sparc that Rich Sahlender <rsahlen@debian.org> of debian made. This patch is now contained in the patch vnc-3.3.4-platform-fixes.patch.
Problem seems to have been resolved and no additional reported problems have occured
Closing