Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 4691

Summary: vnc doesn't compile on Gentoo/Sparc
Product: Gentoo Linux Reporter: Chris Paulson-Ellis <kelsall>
Component: Current packagesAssignee: Sparc Porters <sparc>
Status: VERIFIED FIXED    
Severity: normal CC: jmorgan
Priority: Normal    
Version: unspecified   
Hardware: Sparc   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Debian info on endian fix

Description Chris Paulson-Ellis 2002-07-08 06:43:21 UTC
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 .
Comment 1 Maarten Thibaut (RETIRED) gentoo-dev 2002-08-13 18:42:35 UTC
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.
Comment 2 Chris Paulson-Ellis 2002-08-14 10:51:43 UTC
Fair enough, but see bug #6460 about problems with tightvnc on sparc :-(.
Comment 3 Chris Russell (RETIRED) gentoo-dev 2002-09-15 08:39:54 UTC
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.
Comment 4 Jack Morgan (RETIRED) gentoo-dev 2002-11-25 07:37:16 UTC
Chris,

can you confirm this is still an issue, if not, then close this bug?

Thanks
Comment 5 Chris Russell (RETIRED) gentoo-dev 2002-11-26 05:27:37 UTC
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.
Comment 6 Chris Russell (RETIRED) gentoo-dev 2002-12-15 04:58:42 UTC
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)
Comment 7 Chris Russell (RETIRED) gentoo-dev 2002-12-15 06:13:41 UTC
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).
Comment 8 Jason Wever (RETIRED) gentoo-dev 2003-03-04 09:42:05 UTC
As an update, vnc-3.3.6-r1 has the same problem as 3.3.6
Comment 9 Martin Holzer (RETIRED) gentoo-dev 2003-04-03 16:35:47 UTC
3.3.7 is in portage tree
Comment 10 Jason Wever (RETIRED) gentoo-dev 2003-04-03 21:22:14 UTC
VNC 3.3.7 has the same problem as >=3.3.5 when compiling.
Comment 11 Jason Wever (RETIRED) gentoo-dev 2003-06-09 06:59:30 UTC
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.
Comment 12 Jason Wever (RETIRED) gentoo-dev 2003-06-09 09:33:16 UTC
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.
Comment 13 Jason Wever (RETIRED) gentoo-dev 2003-06-19 20:02:47 UTC
Problem seems to have been resolved and no additional reported problems have occured
Comment 14 Jason Wever (RETIRED) gentoo-dev 2003-08-17 07:21:24 UTC
Closing