[FreeNX-kNX] Building NX on SLES9

Justin Grote justin at grote.name
Wed Mar 8 00:54:12 UTC 2006


Fabian Franz wrote:

>Have you applied all available patches? Those can be found in the SuSE and 
>debian packages.
>  
>
Thanks for the response.

I'm building from the opensuse NX-1.5.0-17.nosrc.rpm source RPM 
(currently doing an rpmbuild -rp to just get the sources ready, and then 
doing each build step one-by-one to make sure it all works first. 
Currently stuck on x11's make World), so the following patches were 
applied during rpmbuild -rp:

Patch:        NX.diff
Patch1:       NX-noansi.diff
Patch2:       p_XFree86-4.3-ppc64.diff
Patch3:       NX-1.5.diff
Patch4:       NX-bufferoverflow.diff
Patch5:       NX-data-range.patch
Patch6:       gcc4-friends.patch
Patch7:       ppc-no-signed-char.diff

Except for patch1 and patch2 because this isn't a 64-bit architecture.

>This means that building libXext failed.
>  
>
But if this were true wouldn't the make have stopped at that point? 
Anyhow, I went into the lib/Xext and ran make there to see if I could 
get it to compile individually, and the makefile ran the following command:

cd ../../../nxcompext &&        ./configure &&  make

which I assume is an nx-modified version of the libXext. It passed the 
configure, but failed on the first GCC with a ton of undeclared errors 
in NXlib.c. Here's a snippet:

NXlib.c: In function `NXGetImageParameters':
NXlib.c:536: error: `_NXEnableCleanGet' undeclared (first use in this 
function)
NXlib.c:568: error: `_NXEnableImageSplit' undeclared (first use in this 
function)
NXlib.c:569: error: `_NXEnableImageMask' undeclared (first use in this 
function)
NXlib.c:570: error: `_NXEnableImageFrame' undeclared (first use in this 
function)
NXlib.c:576: error: `_NXColorParams' undeclared (first use in this function)
NXlib.c:586: error: `_NXSplitParams' undeclared (first use in this function)
NXlib.c:597: error: `_NXImageEnvironmentCached' undeclared (first use in 
this function)
NXlib.c: In function `NXGetUnpackParameters':
NXlib.c:645: error: `_NXEnableCleanGet' undeclared (first use in this 
function)
NXlib.c: In function `NXGetShmemParameters':
NXlib.c:757: error: `_NXEnableCleanGet' undeclared (first use in this 
function)
NXlib.c: In function `NXStartSplit':
make[1]: *** [NXlib.o] Error 1

and here's the GCC command it used:

gcc -c -O3 -DVERSION=\"1.5.0\"  -I/usr/X11R6/include -DPACKAGE_NAME=\"\" 
-DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" 
-DPACKAGE_BUGREPORT=\"\"  -D__USE_MALLOC -Wall -Wpointer-arith 
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations 
-Wnested-externs -I. -I../nxcomp -I../nx-X11/exports/include 
-I../nx-X11/lib/X11 -I../nx-X11/include 
-I../nx-X11/programs/Xserver/include  NXlib.c

I'm not a C programmer but I'm guessing those errors mean there might be 
some missing header files? Do the GCC -I include paths look right?

Thanks for the assistance.

-- 
Justin Grote
Network Architect
JWG Networks




More information about the FreeNX-kNX mailing list