Re: [fossil-users] Compiling fossil under windows

2010-04-14 Thread Rene de Zwart

Op Zo, 11 april, 2010 12:59, schreef D. Richard Hipp:

 On Apr 11, 2010, at 6:46 AM, Rene de Zwart wrote:


 Having had my way with fossil compiling under windows. I was looking
 for
 new challenges by compiling with other free compilers.
 I tried digital mars c compiler. Which promptly said
  unistd.h is for unix systems (The smart little bugger :-)

 Do I correctly infer from this that native windows compilers are not
 tested/used/supported?


 Correct.

 I don't own a windows machine. The windows binaries on the website are
 generated by cross-compiling off of Linux.  I do have the capability
 of running windows under VMWare (for testing), but I don't bring
 VMWare up that often and do not have any compilers installed there.

 D. Richard Hipp
 d...@hwaci.com



 ___
 fossil-users mailing list
 fossil-users@lists.fossil-scm.org
 http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Richard,

In my latest experiment I installed on my arch linux machine wine.
Then under wine I installed msys, digital mars c compiler, zlib , fossil
and compiled fossil with dmc under wine. I started fossil under wine and
started firefox (under linux). I can see the windows fossil on
localhost:8080


-- 
Rene de Zwart

___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Compiling fossil under windows

2010-04-11 Thread D. Richard Hipp

On Apr 11, 2010, at 6:46 AM, Rene de Zwart wrote:


 Having had my way with fossil compiling under windows. I was looking  
 for
 new challenges by compiling with other free compilers.
 I tried digital mars c compiler. Which promptly said
  unistd.h is for unix systems (The smart little bugger :-)

 Do I correctly infer from this that native windows compilers are not
 tested/used/supported?


Correct.

I don't own a windows machine. The windows binaries on the website are  
generated by cross-compiling off of Linux.  I do have the capability  
of running windows under VMWare (for testing), but I don't bring  
VMWare up that often and do not have any compilers installed there.

D. Richard Hipp
d...@hwaci.com



___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Compiling fossil under windows

2010-04-11 Thread Jeremy Cowgar
On 4/11/2010 6:46 AM, Rene de Zwart wrote:
 Having had my way with fossil compiling under windows. I was looking for
 new challenges by compiling with other free compilers.
 I tried digital mars c compiler. Which promptly said
unistd.h is for unix systems (The smart little bugger :-)

 Do I correctly infer from this that native windows compilers are not
 tested/used/supported?


I compile Fossil with MinGW all the time. I have not tried any other 
Windows compiler.

Jeremy

___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Compiling fossil under windows

2010-04-11 Thread Rene de Zwart

Op Zo, 11 april, 2010 12:59, schreef D. Richard Hipp:

 On Apr 11, 2010, at 6:46 AM, Rene de Zwart wrote:


 Having had my way with fossil compiling under windows. I was looking
 for
 new challenges by compiling with other free compilers.
 I tried digital mars c compiler. Which promptly said
  unistd.h is for unix systems (The smart little bugger :-)

 Do I correctly infer from this that native windows compilers are not
 tested/used/supported?


 Correct.

 I don't own a windows machine. The windows binaries on the website are
 generated by cross-compiling off of Linux.  I do have the capability
 of running windows under VMWare (for testing), but I don't bring
 VMWare up that often and do not have any compilers installed there.

 D. Richard Hipp
 d...@hwaci.com



 ___
 fossil-users mailing list
 fossil-users@lists.fossil-scm.org
 http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Richard,

I had success compiling fossil with Digital Mars Compiler.
This compiler identifies itself with __DMC__
so basically everwhere
  if __MINGW32__ or if!__min...@__
stands has to change to
   if __MINGW32__ || __DMC__ or if !__MINGW32__  !__DMC__
there are a few quirks
dmc doesn't have

-) close-, open- and read-dir but a public header fixes that in construct,
add and vfile
-)  strncasecmp and strcasecmp a simple  -Dstrncasecmp=memicmp
-Dstrcasecmp=stricmp
-) winsock inclusing is different
I had to do
  #if defined(__MINGW32__)
  #  include windows.h   /* for Sleep once server works again */
  #  include winsock2.h  /* socket operations */
  #  define sleep Sleep/* windows does not have sleep, but   
Sleep */
  #  include ws2tcpip.h
  #elif defined(__DMC__)
typedef int socklen_t;
  #  include winsock2.h  /* socket operations */
  #else
in cgi.c http_socket.c
it seems that winsock2.h includes windows.h

if it is of importance to you i can send the diffs


-- 
Rene de Zwart

___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users