From fnaumann@mail.cs.uni-magdeburg.de Tue Feb 3 20:55:56 2004 Date: Tue, 03 Feb 2004 20:46:50 +0100 To: MiNT Mailing List Subject: [MiNT] Fwd: Re: Gem XServer compile problem References: From: Arnaud BERCEGEAY Content-Type: multipart/mixed; boundary=----------rBJ4QEOxauzagYkSs1sGR2 MIME-Version: 1.0 Message-ID: In-Reply-To: User-Agent: Opera7.23/Linux M2 build 518 Delivered-To: mint@fishpool.com Delivered-To: mint@lists.fishpool.fi X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: arnaud.bercegeay@free.fr Precedence: bulk List-help: List-unsubscribe: List-ID: X-List-ID: ------------rBJ4QEOxauzagYkSs1sGR2 Content-Type: text/plain; format=flowed; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable This mail was for the ML. (Martin, sorry for sending you this twice). ------- Forwarded message ------- From: Arnaud BERCEGEAY To: Martin Tarenskeen Subject: Re: [MiNT] Gem XServer compile problem Date: Tue, 03 Feb 2004 20:21:46 +0100 > Hello, > >> I'm trying to (re)compile the GEM XServer.app from the CVS sources (xg >> tree). But compilation exits with the following error messages: >> >> clnt.c: In function `RQ_KillClient': >> clnt.c:585: `aes_params' undeclared (first use in this function) >> clnt.c:585: (Each undeclared identifier is reported only once >> clnt.c:585: for each function it appears in.) >> make: *** [../obj/clnt.o] Error 1 >> >> What's wrong here ? >> > > New gemlib no more have global arrays. The aes_params structure no more= =20 > exist as a "global" variable. > > Please find attached src/x_gem.c and include/x_gem.h modified. It's not= =20 > optimised, but it should work (not tested). Maybe the XG maintener can=20 > cvs ci these files... > > HTH, > Arnaud. > ------------rBJ4QEOxauzagYkSs1sGR2 Content-Disposition: attachment; filename=x_gem.h Content-Type: application/octet-stream; name=x_gem.h Content-Transfer-Encoding: quoted-printable //=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D // // x_gem.h -- extensions to the gem-lib. // // Copyright (C) 2000,2001 Ralph Lowinski //-----------------------------------------------------------------------= ------- // 2000-12-14 - Module released for beta state. // 2000-06-05 - Initial Version. //=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D // #ifndef __X_GEM_H__ # define __X_GEM_H__ #include "types.h" #include #if !defined(__GEMLIB__) || (__GEMLIB_MAJOR__ =3D=3D 0 && __GEMLIB_MINOR_= _ < 42) # error You need a more recent GEMLib (at least 0.42.0)! #endif #define K_LOCK 0x10 // bitmask returned by Kbshift() #define K_ALTGR 0x80 #define ApplId(void) (aes_global[2]) #define wind_get_curr(h,r) wind_get_grect (h, WF_CURRXYWH, r) #define wind_get_first(h,r) wind_get_grect (h, WF_FIRSTXYWH, r) #define wind_get_full(h,r) wind_get_grect (h, WF_FULLXYWH, r) #define wind_get_next(h,r) wind_get_grect (h, WF_NEXTXYWH, r) #define wind_get_prev(h,r) wind_get_grect (h, WF_PREVXYWH, r) #define wind_get_uniconify(h,r) wind_get_grect (h, WF_UNICONIFYXYWH, r) #define wind_get_work(h,r) wind_get_grect (h, WF_WORKXYWH, r) short wind_get_one (int WindowHandle, int What); #define wind_get_bottom() wind_get_one (0, WF_BOTTOM) #define wind_get_top() wind_get_one (0, WF_TOP) #define wind_get_bevent(h) wind_get_one (h, WF_BEVENT) #define wind_get_hslide(h) wind_get_one (h, WF_HSLIDE) #define wind_get_hslsize(h) wind_get_one (h, WF_HSLSIZE) #define wind_get_kind(h) wind_get_one (h, WF_KIND) #define wind_get_vslide(h) wind_get_one (h, WF_VSLIDE) #define wind_get_vslsize(h) wind_get_one (h, WF_VSLSIZE) #define wind_set_curr(h,r) wind_set_grect (h, WF_CURRXYWH, r) short wind_set_proc (int WindowHandle, CICONBLK *icon); #define WIND_UPDATE_BEG wind_update (BEG_UPDATE); { #define WIND_UPDATE_END } wind_update (END_UPDATE); #define SHUT_COMPLETED 60 #define RESCHG_COMPLETED 61 #define RESCH_COMPLETED 61 #define AP_DRAGDROP 63 #define SH_WDRAW 72 #define SC_CHANGED 80 #define PRN_CHANGED 82 #define FNT_CHANGED 83 #define COLORS_CHANGED 84 #define CH_EXIT 90 #endif __X_GEM_H__ ------------rBJ4QEOxauzagYkSs1sGR2 Content-Disposition: attachment; filename=x_gem.c Content-Type: application/octet-stream; name=x_gem.c Content-Transfer-Encoding: quoted-printable //=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D // // x_gem.c -- extensions to the gem-lib. // // Copyright (C) 2000,2001 Ralph Lowinski //-----------------------------------------------------------------------= ------- // 2000-12-14 - Module released for beta state. // 2000-06-05 - Initial Version. //=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D // #include "x_gem.h" #include //=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D short wind_get_one (int WindowHandle, int What) { short value; =09 if ( wind_get( WindowHandle, What, &value, NULL, NULL, NULL) ) return value; =09 return -1; } //=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D short wind_set_proc (int WindowHandle, CICONBLK *icon) { return wind_set_str( WindowHandle, 201, icon); } ------------rBJ4QEOxauzagYkSs1sGR2--