For the upcoming Qt5 update I need sqlite3_column_table_name16:

 qhelpgenerator:/usr/local/lib/qt5/plugins/sqldrivers/libqsqlite.so: undefined 
symbol 'sqlite3_column_table_name16'
 ld.so: qhelpgenerator: lazy binding failed!
 Killed

Turns out we're missing those symbols but installing the manpages
(SQLITE3_COLUMN_DATABASE_NAME(3)):

 objdump -tT /usr/local/lib/libsqlite3.so.37.8 | grep sqlite3_column_table

The following diff enables column metadata:

 objdump -tT /usr/local/lib/libsqlite3.so.37.9 | grep sqlite3_column_table
 00000000000426b0 g     F .text  0000000000000110 sqlite3_column_table_name
 00000000000427c0 g     F .text  0000000000000110 sqlite3_column_table_name16
 00000000000427c0 g    DF .text  0000000000000110 sqlite3_column_table_name16
 00000000000426b0 g    DF .text  0000000000000110 sqlite3_column_table_name

OK or is there any showstopper here?

Rafael Sadowski

Index: Makefile
===================================================================
RCS file: /cvs/ports/databases/sqlite3/Makefile,v
retrieving revision 1.105
diff -u -p -u -p -r1.105 Makefile
--- Makefile    9 Nov 2019 10:09:04 -0000       1.105
+++ Makefile    12 Jan 2020 07:34:44 -0000
@@ -4,9 +4,10 @@ COMMENT=       embedded SQL implementation
 
 DISTNAME =     sqlite-autoconf-3300100
 PKGNAME=       sqlite3-3.30.1
+REVISION=      0
 
 # XXX needs bumps every time :-
-SHARED_LIBS +=  sqlite3                   37.8 # 8.6
+SHARED_LIBS +=  sqlite3                   37.9 # 8.6
 # sqlite suggests that users might like to assert() that library and header
 # versions match, so bumps are needed even if function signatures don't change.
 # ... at the current time the only one noticed is a < check (in subversion)
@@ -34,7 +35,8 @@ CONFIGURE_ARGS +=     --enable-fts5
 # for mozilla
 CFLAGS+=       -DSQLITE_ENABLE_UNLOCK_NOTIFY \
                -DSQLITE_ENABLE_FTS3 \
-               -DSQLITE_ENABLE_DBSTAT_VTAB
+               -DSQLITE_ENABLE_DBSTAT_VTAB \
+               -DSQLITE_ENABLE_COLUMN_METADATA=1
 
 # update p5-DBD-SQLite's Makefile.PL if enabling 
-DSQLITE_ENABLE_COLUMN_METADATA
 BUILD_DEPENDS =        converters/sqlite2mdoc

Reply via email to