[fossil-users] A typo in Makefile.in

2014-07-09 Thread Sergei Gavrikov
FYI: there is a typo in Makefile.in which does cause compile error

  
http://fossil-scm.org/index.html/vpatch?from=df3ada575c9e3f0cto=45feda65e9978b9e

s/_HAVE_SQLITE_CONFIG_H/HAVE_SQLITE_CONFIG_H/ (?)

Sergei
___
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] A typo in Makefile.in

2014-07-09 Thread Jan Nijtmans
2014-07-09 22:11 GMT+02:00 Sergei Gavrikov sergei.gavri...@gmail.com:
 FYI: there is a typo in Makefile.in which does cause compile error

   
 http://fossil-scm.org/index.html/vpatch?from=df3ada575c9e3f0cto=45feda65e9978b9e

 s/_HAVE_SQLITE_CONFIG_H/HAVE_SQLITE_CONFIG_H/ (?)

No, it's not a typo. This is meant to force inclusion of config.h here:

http://fossil-scm.org/index.html/artifact/aeeb450fe4?ln=7602-7604


What compile error are you seeing? On what platform?

Regards,
  Jan Nijtmans
___
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] A typo in Makefile.in

2014-07-09 Thread Sergei Gavrikov
On Wed, 9 Jul 2014, Jan Nijtmans wrote:

 2014-07-09 22:11 GMT+02:00 Sergei Gavrikov sergei.gavri...@gmail.com:
  FYI: there is a typo in Makefile.in which does cause compile error
 

  http://fossil-scm.org/index.html/vpatch?from=df3ada575c9e3f0cto=45feda65e9978b9e
 
  s/_HAVE_SQLITE_CONFIG_H/HAVE_SQLITE_CONFIG_H/ (?)

 No, it's not a typo. This is meant to force inclusion of config.h here:

 http://fossil-scm.org/index.html/artifact/aeeb450fe4?ln=7602-7604

Hm. But only s/// gave me a chance to build recent stuff.

 What compile error are you seeing? On what platform?

  f clean -f
  ../configure --quiet  make -s
  ../src/sqlite3.c:24308: error: ‘pread’ undeclared here (not in a function)
  ../src/sqlite3.c:24325: error: ‘pwrite’ undeclared here (not in a function)
  ../src/sqlite3.c:24373: error: ‘mremap’ undeclared here (not in a function)
  ../src/sqlite3.c: In function ‘unixRemapfile’:
  ../src/sqlite3.c:28671: error: ‘MREMAP_MAYMOVE’ undeclared (first use in this 
function)
  ../src/sqlite3.c:28671: error: (Each undeclared identifier is reported only 
once
  ../src/sqlite3.c:28671: error: for each function it appears in.)
  ../src/sqlite3.c:28671: warning: passing argument 4 of ‘(void * (*)(void *, 
size_t,  size_t,  int))aSyscall[23].pCurrent’ makes integer from pointer 
without a cast
  ../src/sqlite3.c:28671: note: expected ‘int’ but argument is of type ‘struct 
unix_syscall *’
  make: *** [bld/sqlite3.o] Error 1
  tclsh
  % parray tcl_platform
  tcl_platform(byteOrder)   = littleEndian
  tcl_platform(machine) = i686
  tcl_platform(os)  = Linux
  tcl_platform(osVersion)   = 2.6.32-41-generic
  tcl_platform(platform)= unix
  tcl_platform(pointerSize) = 4
  tcl_platform(threaded)= 1
  tcl_platform(user)= sg
  tcl_platform(wordSize)= 4

Sergei___
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] A typo in Makefile.in

2014-07-09 Thread Jan Nijtmans
2014-07-09 22:43 GMT+02:00 Sergei Gavrikov sergei.gavri...@gmail.com:
 On Wed, 9 Jul 2014, Jan Nijtmans wrote:
 What compile error are you seeing? On what platform?

Yes, I can indeed reproduce this on Linux. I moved the code
to the utime_usleep branch.

Thanks!
Jan Nijtmans
___
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] A typo in Makefile.in

2014-07-09 Thread Sergei Gavrikov
On Wed, 9 Jul 2014, Jan Nijtmans wrote:

 Found the problem: _GNU_SOURCE needs to be defined
 BEFORE inclusion of the first system header file.

Yes, this fixed the issue. Thanks!

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