Package Details: sqlite2 2.8.17-11

Git Clone URL: https://aur.archlinux.org/sqlite2.git (read-only, click to copy)
Package Base: sqlite2
Description: A C library that implements an SQL database engine
Upstream URL: http://www.sqlite.org/
Licenses: LicenseRef-sqlite2
Submitter: City-busz
Maintainer: not_anonymous
Last Packager: not_anonymous
Votes: 13
Popularity: 0.000000
First Submitted: 2017-06-29 12:23 (UTC)
Last Updated: 2025-04-01 17:18 (UTC)

Latest Comments

1 2 Next › Last »

not_anonymous commented on 2025-06-27 23:22 (UTC)

https://bugzilla.redhat.com/show_bug.cgi?id=2359553

SO... I'm not sure this merits further attention ... any ideas anyone ?

vitaliikuzhdin commented on 2025-05-19 11:41 (UTC)

The build fails after the latest update of GCC from 14 to 15: https://pastebin.com/XM1qKgHH

I suggest taking the necessary patches from other distributions to make things easier, for example from here: https://src.fedoraproject.org/rpms/sqlite2/tree/rawhide

not_anonymous commented on 2025-04-01 17:18 (UTC)

Updated ... many thanks everyone !!

drankinatty commented on 2025-04-01 09:28 (UTC)

Here is a simple patch to add to the PKGBUILD

diff -ruNb a/Makefile.in b/Makefile.in
--- a/Makefile.in       2005-04-23 17:43:23.000000000 -0500
+++ b/Makefile.in       2025-04-01 04:23:53.353005839 -0500
@@ -269,8 +269,9 @@
 #
 config.h:
        echo '#include <stdio.h>' >temp.c
+       echo '#include <stdlib.h>' >>temp.c
        echo 'int main(){printf(' >>temp.c
-       echo '"#define SQLITE_PTR_SZ %d",sizeof(char*));' >>temp.c
+       echo '"#define SQLITE_PTR_SZ %lu",sizeof(char*));' >>temp.c
        echo 'exit(0);}' >>temp.c
        $(BCC) -o temp temp.c
        ./temp >config.h
diff -ruNb a/main.mk b/main.mk
--- a/main.mk   2005-04-23 17:43:23.000000000 -0500
+++ b/main.mk   2025-04-01 04:23:58.513298767 -0500
@@ -240,8 +240,9 @@
 #
 config.h:
        echo '#include <stdio.h>' >temp.c
+       echo '#include <stdlib.h>' >>temp.c
        echo 'int main(){printf(' >>temp.c
-       echo '"#define SQLITE_PTR_SZ %d",sizeof(char*));' >>temp.c
+       echo '"#define SQLITE_PTR_SZ %lu",sizeof(char*));' >>temp.c
        echo 'exit(0);}' >>temp.c
        $(BCC) -o temp temp.c
        ./temp >config.h
diff -ruNb a/tool/lemon.c b/tool/lemon.c
--- a/tool/lemon.c      2005-04-23 17:43:22.000000000 -0500
+++ b/tool/lemon.c      2025-04-01 04:23:39.421298977 -0500
@@ -11,6 +11,7 @@
 #include <string.h>
 #include <ctype.h>
 #include <stdlib.h>
+#include <unistd.h>

 #ifndef __WIN32__
 #   if defined(_WIN32) || defined(WIN32)

That will take care of the makefile generation of temp.c and it missing header and type mismatch (int, long unsigned). It will also take care of tool/lemon.c missing the #include <unistd.h>. Apply the patch -p1.

ryottmp3 commented on 2025-02-20 21:23 (UTC) (edited on 2025-02-20 21:27 (UTC) by ryottmp3)

To build this from source, do the following:

In sqlite-2.8.17/tool/lemon.c, add the following header to line 14:

include <unistd.h>

and after doing

$ mkdir bld

$ cd bld

$ ../configure

add to Makefile:272

    echo '#include <stdlib.h>' >>temp.c

then run

$ make

and it should compile.

Sorry for the bad formatting. I don't care to make it better.

@not_anonymous It'd be cool if you could make a patch that does this. I don't have the time, as midterms are coming up.

NeWolf commented on 2024-06-25 19:23 (UTC)

I get an error when trying to build


temp.c:4:1: error: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration]
    4 | exit(0);}
      | ^~~~
temp.c:2:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
    1 | #include <stdio.h>
  +++ |+#include <stdlib.h>
    2 | int main(){printf(
temp.c:4:1: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
    4 | exit(0);}
      | ^~~~
temp.c:4:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
make: *** [Makefile:275: config.h] Error 1
==> ERROR: A failure occurred in build().
    Aborting...

not_anonymous commented on 2021-06-11 20:13 (UTC)

Please consider using the following;

$ sudo grep -i cflag -r /etc/makepkg.conf CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong" DEBUG_CFLAGS="-g -fvar-tracking-assignments"

TIA

(I compiled successfully 4 days ago....)

kfgz commented on 2021-06-11 15:24 (UTC)

It doesn't bulid. Error log:

https://pastebin.com/ac02vwyT

not_anonymous commented on 2021-06-07 22:57 (UTC)

Thank you moyamo for the patch in line 695 of the src/shell.c file. It IS now incorporated into the package !

amuze commented on 2021-06-06 08:19 (UTC) (edited on 2021-06-06 08:19 (UTC) by amuze)

Can confirm this does not compile. @not_anonymous please apply the patch indicated below and update the AUR.