Date: Mon, 15 Aug 2005 00:05:20 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 600 ************************************************** Sunday 14 August 2005 Number 600 ************************************************** Subjects for today 1 Re: Problems compiling Brother backend for Sane : Paul Smedley 2 Re: Problems compiling Brother backend for Sane : Yuri Dario" 3 Re: Problems compiling Brother backend for Sane : Paul Smedley **= Email 1 ==========================** Date: Sun, 14 Aug 2005 10:56:25 +0930 From: Paul Smedley Subject: Re: Problems compiling Brother backend for Sane Hi Stefan, Stefan.Neis at t-online.de wrote: > Hi, > >> obviously I tried commenting out the definition in brother_dtype.h and >> things seemed to get a little further, however then I got a bunch of >> other errors all around BOOL statements - presumably due to the change >> in definition from the expected int to unsigned long. > > Yes, the code probably relies on it's own definitions... > Maybe you could try adding #define _OS2EMX_H to brother_dtype.h, > so os2emx.h essentially won't be included, thus getting around > those mismatching definitions the other way. > I don't think the current code can possibly relying on much of > the defitions in os2emx.h, so this might work ... Great idea :) however the backend uses Yuri's os/2 port of pthreads - which does rely on some of the os2emx.h definitions... So I get a bunch of: u:/extras/include/pthread.h:19: error: syntax error before "HANDLE" u:/extras/include/pthread.h:20: error: syntax error before "DWORD" u:/extras/include/pthread.h:31: error: parse error before "pthread_mutex_t" u:/extras/include/pthread.h:43: error: parse error before "HEV" u:/extras/include/pthread.h:60: error: parse error before '*' token u:/extras/include/pthread.h:61: error: parse error before '*' token u:/extras/include/pthread.h:62: error: parse error before '*' token u:/extras/include/pthread.h:64: error: parse error before '*' token u:/extras/include/pthread.h:65: error: parse error before '*' token u:/extras/include/pthread.h:66: error: parse error before '*' token u:/extras/include/pthread.h:81: error: parse error before '*' token u:/extras/include/pthread.h:82: error: parse error before '*' token u:/extras/include/pthread.h:83: error: parse error before '*' token u:/extras/include/pthread.h:84: error: parse error before '*' token In file included from brother2.c:101: errors :( Cheers, Paul. **= Email 2 ==========================** Date: Sun, 14 Aug 2005 13:00:28 +0200 (CDT) From: "Yuri Dario" Subject: Re: Problems compiling Brother backend for Sane Hi Paul, >Then there's the pthread declaration of HANDLE: >typedef ULONG HANDLE; you can safely remove this from pthread.h since it is old code no longer needed in current implementation. In my_os2thread.c replace it with ULONG (or int). Bye, Yuri Dario /* * member of TeamOS/2 - Italy * http://www.os2power.com/yuri * http://www.teamos2.it */ **= Email 3 ==========================** Date: Sun, 14 Aug 2005 20:41:22 +0930 From: Paul Smedley Subject: Re: Problems compiling Brother backend for Sane Following up my own post - when I get some time I'll see if I can selectively add in some #defines from os2emx.h into the brother backend code - enough to get pthreads happy at least.... Paul Smedley wrote: > Hi Stefan, > > Stefan.Neis at t-online.de wrote: >> Hi, >> >>> obviously I tried commenting out the definition in brother_dtype.h >>> and things seemed to get a little further, however then I got a bunch >>> of other errors all around BOOL statements - presumably due to the >>> change in definition from the expected int to unsigned long. >> >> Yes, the code probably relies on it's own definitions... >> Maybe you could try adding #define _OS2EMX_H to brother_dtype.h, >> so os2emx.h essentially won't be included, thus getting around >> those mismatching definitions the other way. >> I don't think the current code can possibly relying on much of >> the defitions in os2emx.h, so this might work ... > Great idea :) however the backend uses Yuri's os/2 port of pthreads - > which does rely on some of the os2emx.h definitions... > > So I get a bunch of: > u:/extras/include/pthread.h:19: error: syntax error before "HANDLE" > u:/extras/include/pthread.h:20: error: syntax error before "DWORD" > u:/extras/include/pthread.h:31: error: parse error before "pthread_mutex_t" > u:/extras/include/pthread.h:43: error: parse error before "HEV" > u:/extras/include/pthread.h:60: error: parse error before '*' token > u:/extras/include/pthread.h:61: error: parse error before '*' token > u:/extras/include/pthread.h:62: error: parse error before '*' token > u:/extras/include/pthread.h:64: error: parse error before '*' token > u:/extras/include/pthread.h:65: error: parse error before '*' token > u:/extras/include/pthread.h:66: error: parse error before '*' token > u:/extras/include/pthread.h:81: error: parse error before '*' token > u:/extras/include/pthread.h:82: error: parse error before '*' token > u:/extras/include/pthread.h:83: error: parse error before '*' token > u:/extras/include/pthread.h:84: error: parse error before '*' token > In file included from brother2.c:101: > > errors :( > > Cheers, > > Paul. >