On Fri, Aug 2, 2013 at 12:30 AM, Richard Hipp <d...@sqlite.org> wrote:

> That File Control was added for 3.7.16, just a few months ago.
>

Yeah, i found that out the hard way ;) and had to go update my local
sqlite3, but you were half right - i was linking to the wrong one, but i'm
still seeing that behaviour with my fresh build:


 My guess is
> that you are linking against an older SQLite.
>


stephan@tiny:~/cvs/fossil/f2$ make test
+ g++ -o test -pedantic -Wall -Werror -fPIC -Wno-long-long -g test.o -fPIC
-L. -lfossil -lsqlite3 -lz

wrong copy, so rebuild with -L$(HOME)/lib:

stephan@tiny:~/cvs/fossil/f2$ g++ -o test -pedantic -Wall -Werror -fPIC
-Wno-long-long -g test.o -fPIC -L. -lfossil -L$HOME/lib -lsqlite3 -lz

stephan@tiny:~/cvs/fossil/f2$ ldd test
...
libfossil.so => ./libfossil.so (0xb7795000)
libsqlite3.so.0 => /home/stephan/lib/libsqlite3.so.0 (0xb7703000)
... /lib/ld-linux.so.2 (0xb77b0000)

stephan@tiny:~/cvs/fossil/f2$ l /home/stephan/lib/libsqlite3.so.0
lrwxrwxrwx 1 stephan stephan 19 Aug  2 00:06
/home/stephan/lib/libsqlite3.so.0 -> libsqlite3.so.0.8.6

stephan@tiny:~/cvs/fossil/f2$ l /home/stephan/lib/libsqlite3.so.0.8.6
-rwxr-xr-x 1 stephan stephan 2107154 Aug  2 00:06
/home/stephan/lib/libsqlite3.so.0.8.6

stephan@tiny:~/cvs/fossil/f2$ ./test
MARKER: test.c:69:test_tmpfile_0(): tmpfile=[(null)]
MARKER: test.c:250:main(): Done! rc=0 (FSL_RC_OK)

That was built from:

stephan@tiny:~/cvs/fossil/sqlite3$ fst
repository:   /home/stephan/cvs/fossil/sqlite3.fsl
local-root:   /home/stephan/cvs/fossil/sqlite3/
config-db:    /home/stephan/.fossil
checkout:     e436b2f4e5c5e6b2f70e65332c0c7d618e2ef20a 2013-08-01 20:26:04
UTC
parent:       c3baca99f4580652afb2c3f73036ab83796a1557 2013-08-01 19:17:39
UTC
tags:         trunk
comment:      Fix a potential buffer overread in sqlite3VdbeRecordCompare()
              when a serial_type specifies a field that starts in bounds but
              is much too large for the allocated buffer. Mostly harmless.
The
              overread is unlikely to go more than one or two bytes past the
              end of the buffer. (user: drh)


Anyway - not a big deal (==no action necessary, as far as i'm concerned).
My goal here is only to find/steal a way to generate a temporary file name
(including the platform-specific dir part, preferably), and i figured
sqlite3 already had something for that. If there is another solution you
know about which i can steal (==incorporate into libfossil, meaning you
are/would be the license holder), i'm all for it.

Thanks :)

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to