Closed Bug 554789 Opened 16 years ago Closed 16 years ago

configure chokes on system-sqlite not built with secure_delete though it _is_

Categories

(Firefox Build System :: General, defect)

All
Linux
defect
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.9.3a5

People

(Reporter: wuno, Assigned: wuno)

References

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.3a4pre) Gecko/20100323 Minefield/3.7a4pre Build Identifier: checking for sqlite3 >= 3.6.23... yes checking SQLITE_CFLAGS... checking SQLITE_LIBS... -lsqlite3 checking for SQLITE_SECURE_DELETE support in system SQLite... no configure: error: System SQLite library is not compiled with SQLITE_SECURE_DELETE. This is a log from my Sqlite compilation libtool: compile: x86_64-pc-linux-gnu-gcc -DSQLITE_SECURE_DELETE -DSQLITE_CHECK_PAGES -DSQLITE_CORE -DNDEBUG -march=native -O2 -pipe -DSQLITE_OS_UNIX=1 -I. -I./src -D_HAVE_SQLITE_CONFIG_H -DNDEBUG -I/usr/include -DSQLITE_THREADSAFE=1 -DSQLITE_THREAD_OVERRIDE_LOCK=-1 -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DUSE_TCL_STUBS=1 configure checks for "SQLITE_SECURE_DELETE=1" "SQLITE_THREADSAFE=1" and SQLITE_ENABLE_FTS3=1" but the function check won't return !=1" for SQLITE_SECURE_DELETE and SQLITE_ENABLE_FTS3 (only for SQLITE_TRHEADSAFE Reproducible: Always
Blocks: SQLite3.6.23
Version: unspecified → Trunk
who could review this?
Attachment #434727 - Flags: review?(mh+mozilla)
Comment on attachment 434727 [details] [diff] [review] remove =1 in SECURE_DELETE and ENABLE_FTS3 checks Mike, I guess debian wants to build with system-sqlite. I'd go for review from a Mozilla peer, but probably getting a review first from a distributor building this option would be helpful
Attachment #434727 - Flags: superreview?(ted.mielczarek)
Attachment #434727 - Flags: review?(mh+mozilla)
Attachment #434727 - Flags: review+
Comment on attachment 434727 [details] [diff] [review] remove =1 in SECURE_DELETE and ENABLE_FTS3 checks This is the right thing to do according to what sqlite3_compileoption_used does.
Attachment #434727 - Flags: superreview?(ted.mielczarek) → review?(ted.mielczarek)
Shawn: wasn't this problem reported somewhere else?
(In reply to comment #4) > Shawn: wasn't this problem reported somewhere else? bug 551260 comment 15, and I asked for a new bug :) What I'm confused about is that drh told me doing the =1 should work, so it's possible this is a bug with SQLite?
The "=1" thing in sqlite3_compileoption_used() only works for compile-time options that can take on multiple values, such as SQLITE_TEMP_STORE (which can be set to 0 through 3) or SQLITE_THREADSAFE (which can be set to 0 through 2). It does not work for SQLITE_SECURE_DELETE or SQLITE_ENABLE_FTS3. So I think Walter Meinl's patch is correct.
(In reply to comment #6) > The "=1" thing in sqlite3_compileoption_used() only works for compile-time > options that can take on multiple values, such as SQLITE_TEMP_STORE (which can > be set to 0 through 3) or SQLITE_THREADSAFE (which can be set to 0 through 2). > It does not work for SQLITE_SECURE_DELETE or SQLITE_ENABLE_FTS3. So I think > Walter Meinl's patch is correct. Ah, thanks for the clarification!
Attachment #434727 - Flags: review?(ted.mielczarek) → review+
Assignee: nobody → wuno
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.3a5
Flags: in-testsuite-
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: