More about sql plugins...

AgarFu heaven at croasanaso.sytes.net
Tue Feb 1 14:29:09 CET 2005


Hello, this time I had some trouble compiling sqlite:

In file included from ..\..\..\..\src\3rdparty\sqlite\func.c:26:
..\..\..\..\src\3rdparty\sqlite\/os.h:135: error: conflicting types for 'off_t'
E:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/types.h:41: error:
 previous declaration of 'off_t' was here
mingw32-make: *** [obj\func.o] Error 1

I've solved using this small patch:

Index: os.h
===================================================================
RCS file: /cvsroot/kde-cygwin/qt-3/src/3rdparty/sqlite/os.h,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 os.h
--- os.h 27 Aug 2004 21:24:38 -0000 1.1.1.1
+++ os.h 1 Feb 2005 13:19:58 -0000
@@ -132,8 +132,9 @@
     typedef __int64 off_t;
 # else
 #  if !defined(_CYGWIN_TYPES_H)
-     typedef long long off_t;
+//     typedef long long off_t;
 #    if defined(__MINGW32__)
+#      include <sys/types.h>
 #      define _OFF_T_
 #    endif
 #  endif

Once again usin mingw 3.2 rc3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sqlite.diff
Type: text/x-diff
Size: 533 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-cygwin/attachments/20050201/b8d3e8d1/sqlite.bin


More information about the kde-cygwin mailing list