[MacPorts] #72559: sqlite3-tcl: opportunistically uses zlib
MacPorts
noreply at macports.org
Sat May 31 10:06:46 UTC 2025
#72559: sqlite3-tcl: opportunistically uses zlib
--------------------------+-------------------------
Reporter: barracuda156 | Owner: Schamschula
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.10.7
Keywords: | Port: sqlite3-tcl
--------------------------+-------------------------
The port is not supposed to depend on `zlib`, however it checks for it,
and opportunistically links to it.
{{{
/usr/bin/clang -o libsqlite3.50.0.dylib -dynamic
-I/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_databases_sqlite3/sqlite3-tcl/work
/sqlite-autoconf-3500000/tea/.. -DSQLITE_3_SUFFIX_ONLY=1
-DSQLITE_ENABLE_BYTECODE_VTAB=1 -DSQLITE_ENABLE_DBPAGE_VTAB=1
-DSQLITE_ENABLE_DBSTAT_VTAB=1 -DSQLITE_ENABLE_DESERIALIZE=1
-DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_FTS5
-DSQLITE_ENABLE_GEOPOLY -DSQLITE_ENABLE_MATH_FUNCTIONS
-DSQLITE_ENABLE_RTREE -DSQLITE_OMIT_LOAD_EXTENSION=1 -DSQLITE_THREADSAFE=1
-DUSE_TCL_STUBS=1 -pipe -Os
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -arch arm64
-I/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_databases_sqlite3/sqlite3-tcl/work
/sqlite-autoconf-3500000 -I/opt/local/include
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk
-I/opt/local/include
/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_databases_sqlite3/sqlite3-tcl/work
/sqlite-autoconf-3500000/tea/generic/tclsqlite3.c -dynamiclib -lz
-L/opt/local/lib -Wl,-headerpad_max_install_names
-Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk
-arch arm64 -L/opt/local/lib -ltclstub8.6
}}}
Also the configure test seems broken – it looks for a symbol without
passing an ldflag (but it does not prevent opportunistic usage):
{{{
Invoked as: ./configure --teaish-extension-dir=. --prefix=/opt/local
--exec-prefix=/opt/local --with-tcl=/opt/local/lib
Tclsh: /opt/local/bin/tclsh
Failed: /usr/bin/clang -L/opt/local/lib -Wl,-headerpad_max_install_names
-Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk
-arch arm64 -g0 -pipe -Os
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -arch arm64
conftest__.c -o conftest__
Undefined symbols for architecture arm64:
"_deflate", referenced from:
_main in conftest__-ae4b66.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
child process exited abnormally
============
The failed code was:
extern void deflate(void);
int main(void) {
deflate();
return 0;
}
============
}}}
--
Ticket URL: <https://trac.macports.org/ticket/72559>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list