[fossil-users] 64-bit warnings

2009-09-23 Thread James Turner
I've been working on a fossil port for OpenBSD and noticed when  
compiling under OpenBSD amd64 I see a couple 'warning: cast from  
pointer to integer of different size' warnings attached are three  
patches that I was including in my port and was wondering if this is  
something worth changing upstream? Since there is no configure scripts  
provided I'm not sure how you feel about requiring stdint.h but I  
think it's a pretty standard library. Thanks.




patch-src_main_mk
Description: Binary data


patch-src_makeheaders_c
Description: Binary data


patch-src_th_lang_c
Description: Binary data
___
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] 64-bit warnings

2009-09-23 Thread D. Richard Hipp

On Sep 23, 2009, at 9:11 AM, James Turner wrote:

 I've been working on a fossil port for OpenBSD and noticed when  
 compiling under OpenBSD amd64 I see a couple 'warning: cast from  
 pointer to integer of different size' warnings attached are three  
 patches that I was including in my port and was wondering if this is  
 something worth changing upstream? Since there is no configure  
 scripts provided I'm not sure how you feel about requiring stdint.h  
 but I think it's a pretty standard library. Thanks.

I've seen the warnings too.  But I use fossil daily on 64-bit linux  
(SuSE 10.1) and it works fine there.  So I'm not overly worried about  
them.

Most of the warnings come from sqlite3.c.  And we are very sure that  
it works correctly on 64-bit systems.

I'll work on reducing the number of warnings.  But it isn't a priority.


 patch-src_main_mkpatch-src_makeheaders_cpatch- 
 src_th_lang_c___
 fossil-users mailing list
 fossil-users@lists.fossil-scm.org
 http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

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] 64-bit warnings

2009-09-23 Thread James Turner
I too haven't seen any problems running fossil on 64-bit systems  
without my patches. One of the OpenBSD port developers asked me if I  
could look into fixing the warnings and suggested I check upstream.  
Thanks for your feedback.

On Sep 23, 2009, at 11:22 AM, D. Richard Hipp wrote:


 On Sep 23, 2009, at 9:11 AM, James Turner wrote:

 I've been working on a fossil port for OpenBSD and noticed when
 compiling under OpenBSD amd64 I see a couple 'warning: cast from
 pointer to integer of different size' warnings attached are three
 patches that I was including in my port and was wondering if this is
 something worth changing upstream? Since there is no configure
 scripts provided I'm not sure how you feel about requiring stdint.h
 but I think it's a pretty standard library. Thanks.

 I've seen the warnings too.  But I use fossil daily on 64-bit linux
 (SuSE 10.1) and it works fine there.  So I'm not overly worried about
 them.

 Most of the warnings come from sqlite3.c.  And we are very sure that
 it works correctly on 64-bit systems.

 I'll work on reducing the number of warnings.  But it isn't a  
 priority.


 patch-src_main_mkpatch-src_makeheaders_cpatch-
 src_th_lang_c___
 fossil-users mailing list
 fossil-users@lists.fossil-scm.org
 http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil- 
 users

 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


___
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] 64-bit warnings

2009-09-23 Thread Bill Whiting
Has anyone had success using fossil on AIX?  I was able to get the code 
to build, but it did not run successfully.  I don't remember the exact 
error.  At the time I needed to get my code to work, so I worked around 
fossil.

//Bill

On 09/23/2009 11:22 AM, D. Richard Hipp wrote:
 On Sep 23, 2009, at 9:11 AM, James Turner wrote:


 I've been working on a fossil port for OpenBSD and noticed when
 compiling under OpenBSD amd64 I see a couple 'warning: cast from
 pointer to integer of different size' warnings attached are three
 patches that I was including in my port and was wondering if this is
 something worth changing upstream? Since there is no configure
 scripts provided I'm not sure how you feel about requiring stdint.h
 but I think it's a pretty standard library. Thanks.
  
 I've seen the warnings too.  But I use fossil daily on 64-bit linux
 (SuSE 10.1) and it works fine there.  So I'm not overly worried about
 them.

 Most of the warnings come from sqlite3.c.  And we are very sure that
 it works correctly on 64-bit systems.

 I'll work on reducing the number of warnings.  But it isn't a priority.


 patch-src_main_mkpatch-src_makeheaders_cpatch-
 src_th_lang_c___
 fossil-users mailing list
 fossil-users@lists.fossil-scm.org
 http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
  
 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



___
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] 64-bit warnings

2009-09-23 Thread D. Richard Hipp

On Sep 23, 2009, at 12:33 PM, Stephan Beal wrote:

 On Wed, Sep 23, 2009 at 5:47 PM, D. Richard Hipp d...@hwaci.com  
 wrote:

 On Sep 23, 2009, at 11:41 AM, Bill Whiting wrote:

  Has anyone had success using fossil on AIX?  I was able to get the
  code
  to build, but it did not run successfully.  I don't remember the  
 exact

 Just a guess:  Try recompiling with -DSQLITE_DISABLE_DIRSYNC

 Another thing to try is to enable the dot-file locking mechanism  
 (which is a workaround for platforms which doesn't support the  
 default (POSIX?) locking mechanism). This requires setting an  
 environment variable, but i can't for the life of me find the  
 (recent) mail which explains what var that is (Richard?).


I'd forgotten about that.  Tnx for reminding me!  Try one of the  
following:

export FOSSIL_VFS=unix-dotfile
export FOSSIL_VFS=unix-none

The first uses dot-file locking.  The second disables locking all  
together.

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] compact fossil binaries

2009-09-23 Thread Altu Faltu
I use Windows and after making fossil.exe, I do 'strip fossil.exe' to reduce 
size.

- Altu

 - Original Message -
 From: Andrey Cherezov and...@cherezov.koenig.su
 To: fossil-users@lists.fossil-scm.org
 Subject: Re: [fossil-users] compact fossil binaries
 Date: Wed, 23 Sep 2009 15:40:41 +0300
 
 
 23.09.2009 15:18, D. Richard Hipp wrote:
  On Sep 23, 2009, at 3:52 AM, Robert wrote:
 
  I was wondering, how do you get such compact fossil binaries?
  The best I can do is 1.1Mb compared to your 330kb for linux.
 
  The build is done using exactly the Makefile included in the source
  tree, with no edits or changes of any kind, on SuSE 10.1 with GCC 4.1.0.
 
 Under Mingw (Windows) I removed -g option of gcc from Makefile
 and this reduced fossil.exe size from 3Mb to 800kb.
 ___
 fossil-users mailing list
 fossil-users@lists.fossil-scm.org
 http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users




-- 
An Excellent Credit Score is 750 
See Yours in Just 2 Easy Steps!

___
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] compact fossil binaries

2009-09-23 Thread Michael Richter
I just tried that myself on both Linux and Windows and saved almost a MB
each.  Maybe the makefile should have a strip step in it?

2009/9/24 Altu Faltu altufa...@mail.com

 I use Windows and after making fossil.exe, I do 'strip fossil.exe' to
 reduce size.

 - Altu

  - Original Message -
  From: Andrey Cherezov and...@cherezov.koenig.su
  To: fossil-users@lists.fossil-scm.org
  Subject: Re: [fossil-users] compact fossil binaries
  Date: Wed, 23 Sep 2009 15:40:41 +0300
 
 
  23.09.2009 15:18, D. Richard Hipp wrote:
   On Sep 23, 2009, at 3:52 AM, Robert wrote:
  
   I was wondering, how do you get such compact fossil binaries?
   The best I can do is 1.1Mb compared to your 330kb for linux.
  
   The build is done using exactly the Makefile included in the source
   tree, with no edits or changes of any kind, on SuSE 10.1 with GCC
 4.1.0.
  
  Under Mingw (Windows) I removed -g option of gcc from Makefile
  and this reduced fossil.exe size from 3Mb to 800kb.
  ___
  fossil-users mailing list
  fossil-users@lists.fossil-scm.org
  http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

 


 --
 An Excellent Credit Score is 750
 See Yours in Just 2 Easy Steps!

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

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