On 1/8/2018 6:57 PM, Richard Hipp wrote:
On 1/8/18, The Tick <the.t...@gmx.com> wrote:

Curious about the new skins, I attempted to compile Fossil-24c2b99d on
win7x64 with a current (as of today) MSYS2 using


There are changes on trunk that might fix these build problem.  But,
as nobody here has been able to reproduce them, we cannot be sure.
Therefore, please try the latest trunk check-in and see if it is
working better for you and report back.  Thanks.


Fossil 666fc089b8 compiles successfully although there are still a few warnings for shell.c. Thank you.

$ Fossil-666fc089/fossil version -v
  This is fossil version 2.5 [666fc089b8] 2018-01-09 02:28:19 UTC
  Compiled on Jan  9 2018 02:10:43 using mingw32 (64-bit)
  Schema version 2015-01-24
  zlib 1.2.11, loaded 1.2.11
  hardened-SHA1 by Marc Stevens and Dan Shumow
  SSL (OpenSSL 1.1.0f  25 May 2017)
  FOSSIL_ENABLE_LEGACY_MV_RM
  FOSSIL_ENABLE_EXEC_REL_PATHS
  FOSSIL_ENABLE_TH1_DOCS
  FOSSIL_ENABLE_TH1_HOOKS
  TCL (Tcl 8.6.6, loaded TH_OK: 8.6.8)
  USE_TCL_STUBS
  FOSSIL_TCL_STUBS
  FOSSIL_ENABLE_TCL_PRIVATE_STUBS
  JSON (API 20120713)
  MBCS_COMMAND_LINE
  FOSSIL_STATIC_BUILD
  SQLite 3.22.0 2018-01-09 02:27:13 cba0206a15
  SQLITE_DEFAULT_FILE_FORMAT=4
  SQLITE_DEFAULT_WAL_SYNCHRONOUS=1
  SQLITE_ENABLE_DBSTAT_VTAB
  SQLITE_ENABLE_FTS3_PARENTHESIS
  SQLITE_ENABLE_FTS4
  SQLITE_ENABLE_FTS5
  SQLITE_ENABLE_JSON1
  SQLITE_ENABLE_LOCKING_STYLE=0
  SQLITE_ENABLE_STMTVTAB
  SQLITE_LIKE_DOESNT_MATCH_BLOBS
  SQLITE_MAX_EXPR_DEPTH=0
  SQLITE_OMIT_DECLTYPE
  SQLITE_OMIT_DEPRECATED
  SQLITE_OMIT_GET_TABLE
  SQLITE_OMIT_LOAD_EXTENSION
  SQLITE_OMIT_PROGRESS_CALLBACK
  SQLITE_OMIT_SHARED_CACHE
  SQLITE_THREADSAFE=0
  SQLITE_USE_ALLOCA


FYI, here are the warnings:

gcc -Wall -Wdeclaration-after-statement -Os -Lsrc/../compat/zlib -Isrc/../compat/zlib -Lsrc/../compat/openssl-1.1.0f -Isrc/../compat/openssl-1.1.0f/include -Lsrc/../compat/Tcl8.6.6srcdir/win -Isrc/../compat/Tcl8.6.6srcdir/generic -Isrc/../compat/Tcl8.6.6srcdir/win -DBROKEN_MINGW_CMDLINE=1 -DFOSSIL_ENABLE_SSL=1 -DFOSSIL_ENABLE_EXEC_REL_PATHS=1 -DFOSSIL_ENABLE_LEGACY_MV_RM=1 -DFOSSIL_ENABLE_TH1_DOCS=1 -DFOSSIL_ENABLE_TH1_HOOKS=1 -DFOSSIL_ENABLE_TCL=1 -DFOSSIL_ENABLE_TCL_STUBS=1 -DUSE_TCL_STUBS -DFOSSIL_ENABLE_TCL_PRIVATE_STUBS=1 -DFOSSIL_ENABLE_JSON=1 -I. -Isrc -Dmain=sqlite3_shell -DSQLITE_SHELL_IS_UTF8=1 -DSQLITE_OMIT_LOAD_EXTENSION=1 -DUSE_SYSTEM_SQLITE= -DSQLITE_SHELL_DBNAME_PROC=fossil_open -Daccess=file_access -Dsystem=fossil_system -Dgetenv=fossil_getenv -Dfopen=fossil_fopen -c src/shell.c -o wbld/shell.o
  src/shell.c: In function 'fsdirNext':
src/shell.c:2505:30: warning: passing argument 2 of '_stat64i32' from incompatible pointer type [-Wincompatible-pointer-types]
         if( lstat(pCur->zPath, &pCur->sStat) ){
                                ^
  src/shell.c:2079:38: note: in definition of macro 'lstat'
   #  define lstat(path,buf) _stat(path,buf)
                                        ^~~
  In file included from src/shell.c:108:0:
D:/msys64/mingw64/x86_64-w64-mingw32/include/sys/stat.h:101:28: note: expected 'struct _stat64i32 *' but argument is of type 'struct _stat64 *' __CRT_INLINE int __cdecl _stat64i32(const char *_Name,struct _stat64i32 *_Stat)
                              ^~~~~~~~~~
  src/shell.c: In function 'fsdirFilter':
src/shell.c:2639:26: warning: passing argument 2 of '_stat64i32' from incompatible pointer type [-Wincompatible-pointer-types]
     if( lstat(pCur->zPath, &pCur->sStat) ){
                            ^
  src/shell.c:2079:38: note: in definition of macro 'lstat'
   #  define lstat(path,buf) _stat(path,buf)
                                        ^~~
  In file included from src/shell.c:108:0:
D:/msys64/mingw64/x86_64-w64-mingw32/include/sys/stat.h:101:28: note: expected 'struct _stat64i32 *' but argument is of type 'struct _stat64 *' __CRT_INLINE int __cdecl _stat64i32(const char *_Name,struct _stat64i32 *_Stat)
                              ^~~~~~~~~~


And for completeness, here is the 'make' command I've been using:

$ make \
    -f win/Makefile.mingw \
    X64=1 \
    FOSSIL_TCL_SOURCE=0 \
    FOSSIL_ENABLE_JSON=1 \
    FOSSIL_ENABLE_SSL=1 \
    FOSSIL_BUILD_SSL=1 \
    FOSSIL_ENABLE_EXEC_REL_PATHS=1 \
    FOSSIL_ENABLE_LEGACY_MV_RM=1 \
    FOSSIL_ENABLE_TH1_DOCS=1 \
    FOSSIL_ENABLE_TH1_HOOKS=1 \
    FOSSIL_ENABLE_TCL=1 \
    FOSSIL_ENABLE_TCL_STUBS=1 \
    FOSSIL_ENABLE_TCL_PRIVATE_STUBS=1 \
    OPENSSLDIR='$(SRCDIR)/../compat/'$OPENSSLDIR \
    TCLDIR='$(SRCDIR)/../compat/'$TCLDIR \
    TCLSRCDIR='$(SRCDIR)/../compat/'$TCLSRCDIR



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

Reply via email to