Problems compiling on Linux Alpha (RedHat 5.0)

Hugo van der Kooij hvdkooij "at" caiw.nl
Sat, 28 Feb 1998 21:33:13 +0000


On Sat, 28 Feb 1998, Hugo van der Kooij wrote:

> I tried to compile VNC on my Alpha system with Linux but found there is
> something broken in the sources which does not break down on the Intel
> machines.
> 
> The problem I have seen is:
> 
> rm -f cfbfillsp.o
> gcc -c -O2   -I. -I../mfb -I../mi -I../include -I../../../include/X11
> -I../../../include/X11/fonts  -I../../../include  -Dlinux -D__alpha__
> -D_POSIX_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -DSHAPE     -DGCCUSESGAS
> -DSTATIC_COLOR -DAVOID_GLYPHBLT -DPIXPRIV   -D_XSERVER64   -DFUNCPROTO=15
> -DNARROWPROTO  -DPSZ=8  cfbfillsp.c
> cfbfillsp.c: In function `cfb8Stipple32FS':
> cfbfillsp.c:754: parse error before `else'
> make[2]: *** [cfbfillsp.o] Error 1
> make[2]: Leaving directory
> `/usr/src/redhat/BUILD/vnc-3.3.1/Xvnc/programs/Xserver/cfb'
> make[1]: *** [cfb] Error 2
> make[1]: Leaving directory
> `/usr/src/redhat/BUILD/vnc-3.3.1/Xvnc/programs/Xserver'
> make: *** [all] Error 2
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/usr/src/redhat/BUILD/vnc-3.3.1'
> make: *** [world] Error 2
> Bad exit status
> * Package: vnc
> 
> I am just wondering why the Alpha uses -DPSZ=8 and the Intel machines
> -DPSZ=32

Taken this a bit further it seems the Imakefile does read the pixelsize
variable from some file and uses that. But I don't have a clue where it is
set but it seems to be a standard variable within the X11 development
stuff.

Furthermore I like to mention that VNC is not clean as I have seen several
warning indication unclean code (it may work on 32 bit systems and will
propably die on 64 bit systems).

I assume that cleaning up the current code to be 64 bit clean is something
that needs to be done.

I think I can show those that want it a copy the logfile to explain which
parts are not clean at present.

Regards,
Hugo.

	+------------------------+------------------------------+
	| Hugo van der Kooij     | Hugo.van.der.Kooij "at" caiw.nl   |
	| Oranje Nassaustraat 16 | http://www.caiw.nl/~hvdkooij |
	| 3155 VJ  Maasland      | (De man met de rode hoed)    |
	+------------------------+------------------------------+
    "Computers let you make more mistakes faster than any other invention in 
      human history, with the possible exception of handguns and tequila."
		(Mitch Radcliffe)