Opened 15 years ago

Closed 13 years ago

#16929 closed defect (fixed)

tcl-sqlite3 3.6.4_0 Build failure

Reported by: jarimatti@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: tiger Cc:
Port: tcl-sqlite3

Description

The build stops with error

./src/tclsqlite.c: In function 'DbObjCmd':
./src/tclsqlite.c:1766: error: 'SQLITE_STMTSTATUS_FULLSCAN_STEP' undeclared (first use in this function)
./src/tclsqlite.c:1766: error: (Each undeclared identifier is reported only once
./src/tclsqlite.c:1766: error: for each function it appears in.)
./src/tclsqlite.c:1768: error: 'SQLITE_STMTSTATUS_SORT' undeclared (first use in this function)
gnumake: *** [tclsqlite.lo] Error 1

The missing definitions are in sqlite.h.in and including it in the source file makes it build.

Change History (4)

comment:1 in reply to:  description Changed 15 years ago by jarimatti@…

Replying to jarimatti@…:

The missing definitions are in sqlite.h.in and including it in the source file makes it build.

But it still doesn't work. Trying to use it from Tcl fails with the message:

Error in startup script: dlopen(/opt/local/lib/tcl8.5/sqlite3/libtclsqlite3.dylib, 6): Symbol not found: _sqlite3_stmt_status
  Referenced from: /opt/local/lib/tcl8.5/sqlite3/libtclsqlite3.dylib
  Expected in: /opt/local/lib/libsqlite3.0.dylib

    while executing
"load /opt/local/lib/tcl8.5/sqlite3/libtclsqlite3.dylib sqlite3"
    ("package ifneeded sqlite3 3.6.4.4" script)
    invoked from within
"package require sqlite3"
    (file "./simplenews.tcl" line 8)

Using Mac OS version 10.4.11.

comment:2 Changed 15 years ago by mf2k (Frank Schima)

Keywords: tcl-sqlite3 removed
Owner: changed from macports-tickets@… to mww@…
Port: tcl-sqlite3 added

Assigning to maintainer.

comment:3 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:4 Changed 13 years ago by jmroot (Joshua Root)

Keywords: tiger added; sqlite3 removed
Resolution: fixed
Status: newclosed

Current version seems to work.

Note: See TracTickets for help on using tickets.