OK, I was being stupid before. I just grepped without looking at the results. I also have the two symbols defined in keysymdef.h as you do. The symbols are just used in Xutil.h:

#define IsModifierKey(keysym) \
((((KeySym)(keysym) >= XK_Shift_L) && ((KeySym)(keysym) <= XK_Hyper_R)) \
|| (((KeySym)(keysym) >= XK_ISO_Lock) && \
((KeySym)(keysym) <= XK_ISO_Last_Group_Lock)) \
|| ((KeySym)(keysym) == XK_Mode_switch) \
|| ((KeySym)(keysym) == XK_Num_Lock))


Too bad -- I thought it was narrowed down.  I'm not sure that replacing
#include <X11/keysymdef.h> -> #include <X11/keysym.h>
would help, either.  keysym.h includes stuff like:

#define XK_MISCELLANY
#define XK_XKB_KEYS
#define XK_LATIN1
#define XK_LATIN2
#define XK_LATIN3
#define XK_LATIN4
#define XK_LATIN8
#define XK_LATIN9
#define XK_CAUCASUS
#define XK_GREEK
#define XK_KATAKANA
#define XK_ARABIC
#define XK_CYRILLIC
#define XK_HEBREW
#define XK_THAI
#define XK_KOREAN
#define XK_ARMENIAN
#define XK_GEORGIAN
#define XK_VIETNAMESE
#define XK_CURRENCY

and then it includes keysymdef.h. Thanks for your help. I still can't figure out what the problem is.

Charles



On Thursday, July 17, 2003, at 03:49 PM, Jeremy Erwin wrote:


On Thursday, July 17, 2003, at 12:03 PM, Charles Williams wrote:


Hello,

I've been trying (off and on for quite some while) to get dx to compile on my G4 12" powerbook. I built it a long time ago on my desktop Mac, but can't get it to build on the powerbook. Every time I try, I end up with the following problem:

<lots of stuff that looks OK>

gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I../../../include -I./../widgets -Dmacos -I/sw/include -I/sw/include/freetype2 -I/sw/include -D_REENTRANT -I/usr/X11R6/include -I/usr/X11R6/include/X11 -I/sw/include/libxml2 -I/sw/include -I/usr/X11R6/include -g -O2 -Wall -no-cpp-precomp -I/usr/X11R6/include -D_GNU_SOURCE -c `test -f 'Image.c' || echo './'`Image.c
gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I../../../include -I./../widgets -Dmacos -I/sw/include -I/sw/include/freetype2 -I/sw/include -D_REENTRANT -I/usr/X11R6/include -I/usr/X11R6/include/X11 -I/sw/include/libxml2 -I/sw/include -I/usr/X11R6/include -g -O2 -Wall -no-cpp-precomp -I/usr/X11R6/include -D_GNU_SOURCE -c `test -f 'Number.c' || echo './'`Number.c
Number.c: In function `SelfInsert':
Number.c:694: `XK_ISO_Lock' undeclared (first use in this function)
Number.c:694: (Each undeclared identifier is reported only once
Number.c:694: for each function it appears in.)
Number.c:694: `XK_ISO_Last_Group_Lock' undeclared (first use in this function)
make[3]: *** [Number.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
### execution of make failed, exit code 2
Failed: compiling dx-4.2.0-10 failed


Both XK_ISO_Lock and XK_ISO_Last_Group_Lock are found in /usr/X11R6/include/X11/Xutil.h. I can't quite figure out what the problem is. I had originally installed the December tools upgrade, but after reading about potential problems, I reinstalled the December Developer's tools and rebuilt everything that dx depends on. I still get the same error. Does anyone know what the problem might be?

hmm. I'm running with Apple's X11...


[EMAIL PROTECTED]:~]$ grep -r XK_ISO_Lock /usr/X11R6/include/X11/*
/usr/X11R6/include/X11/keysymdef.h:#define XK_ISO_Lock 0xFE01
[EMAIL PROTECTED]:~]$ grep -r XK_ISO_Last_Group_Lock /usr/X11R6/include/X11/*
/usr/X11R6/include/X11/keysymdef.h:#define XK_ISO_Last_Group_Lock 0xFE0F


Numbers.c includes dx-4.2.0/src/uipp/widgets/NumberInput.h, which in turn, includes, <X11/keysymdef.h>. Now if your implementation of X11 does not define the relevant symbols in keysymdef.h, you should patch Numberinput.h to #include the proper file.

From http://opendx.npaci.edu/mail/opendx-dev/2003.04/msg00035.html

>On Mon, Apr 28, 2003 at 09:56:50AM -0500, Matthew Bettencourt wrote:
>> I know this was brought up before but is there any status on the
>> compilation issues of the CVS version compiling on RH 9 or, I am
>> assuming, any XFree86-4.3 system ( I know mandrake9.1 is also broken).
>Just do a global replace of
>#include <X11/keysymdef.h> -> #include <X11/keysym.h>
>I have a patch sitting here for dx 4.2.0, not sure whether it still
>applies to current CVS. Anyway, it's quite simple to fix.
>Regards,
>Daniel.


I don't use 4.3, and of course, my existing installation would probably be broken by such a patch. Possibly a nice autoconf macro could be written.

Jeremy


Charles A. Williams
Dept. of Earth & Environmental Science
Science Center 2C01
Rensselaer Polytechnic Institute
Troy, NY  12180
Phone:  (518) 276-8463
FAX:            (518) 276-2012
e-mail: [EMAIL PROTECTED]



-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to