nanogui: Thread: Can't compile nxlib


[<<] [<] Page 1 of 1 [>] [>>]
Subject: Can't compile nxlib
From: Larry Samuels ####@####.####
Date: 17 Dec 2007 14:25:31 +0000
Message-Id: <BAY123-W8CF00FAD9C4C1DDC5F8DB94620@phx.gbl>

When I try to compile version .45 of nxlib I get:
gcc -Wall -g -I/bfin/uClinux-dist.R1.1-RC3/user/microwin/src/include -DX11_FONT_DIR1=\"/usr/share/fonts/100dpi\" -DX11_FONT_DIR2=\"/usr/share/fonts/misc\" -DX11_RGBTXT=\"/usr/lib/X11/rgb.txt\" -I. -fPIC -o Xrm.o -c Xrm.c
In file included from Xlcint.h:74,
                 from Xrm.c:55:
/usr/lib/gcc/i586-suse-linux/4.2.1/include/varargs.h:4:2: error: #error "GCC no longer implements ."
/usr/lib/gcc/i586-suse-linux/4.2.1/include/varargs.h:5:2: error: #error "Revise your code to use ."
In file included from Xrm.c:55:
Xlcint.h:949: error: expected ‘)’ before ‘var’
Xlcint.h:954: error: expected ‘)’ before ‘var’
Xrm.c: In function ‘ReadInFile’:
Xrm.c:1607: warning: implicit declaration of function ‘_XOpenFile’
make: *** [Xrm.o] Error 1

Please help me track down the problem,

Larry

_________________________________________________________________
Share life as it happens with the new Windows Live.
http://www.windowslive.com/share.html?ocid=TXT_TAGHM_Wave2_sharelife_122007
Subject: Re: [nanogui] Can't compile nxlib
From: "Greg Haerr" ####@####.####
Date: 18 Dec 2007 19:45:11 +0000
Message-Id: <2bc501c841ae$6e406cd0$6401a8c0@winXP>

> In file included from Xlcint.h:74,
                 from Xrm.c:55:
/usr/lib/gcc/i586-suse-linux/4.2.1/include/varargs.h:4:2: error: #error "GCC 
no longer implements ."
/usr/lib/gcc/i586-suse-linux/4.2.1/include/varargs.h:5:2: error: #error 
"Revise your code to use ."

In your [unspecified] version of gcc, it no longer supports
some mechanism in include/varargs.h.  This could be a compiler
install issue, or something else.  Since Xrm.c is optional in NXLIB,
you might just remove it from the makelist.  Xrm.c and Xlcint.h were 
grabbed,
unmodified, from the X11 distribution.  Your other option would be to
get a later X11 version that is compatible with your compiler, and
replace these two files, since NXLIB only includes them for Xrm
compatibility.

Regards,

Greg 

[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.