Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Use different LD_LIBRARY_PATH_VAR on macOS

Closed / Fixedad393071c2a78b67642364a6d8602b2012245acbCreated 4 years agoUpdated 2 years ago
Descriptionplain2023-01-05 22:13:58
In the file unix/configure, DYLD_LIBRARY_PATH is the value of LD_LIBRARY_PATH_VAR on macOS.
DYLD_FALLBACK_LIBRARY_PATH is a less intrusive option and is the one we chose for the MacPorts projects (see the ticket below).

See https://github.com/tcltk/tk/blob/5e7bcea28317ca7b25fe5cad6c4878ae6d048148/unix/configure#L5493
See also https://trac.macports.org/ticket/57594
Referenced by1
jan.nijtmanswiki2023-01-16 22:54:38

Fixed [here]

Thanks for the report!

dgpplain2025-05-13 16:55:36
Starting with this change, the Tcl build from the tcl/unix directory
on a Sonoma 14.7.5 system suffers multiple segfaults in the test suite.
The first one is in test apply-10.1.

$ fossil status
...
checkout:     19fb0fc0b03902b28cfb2dd38c61357dd5b728da 2023-01-06 16:56:14 UTC
...
$ cd tcl/unix
$ ./configure
...
$ make test TESTFLAGS="-file apply.test -match apply-10.1 -verbose bpste"
...
apply.test
---- apply-10.1 start
Test file error: child killed: segmentation violation
...
dgpplain2025-05-13 17:38:24
After several rounds of builds, installs and tests of several
stages of Tcl 8.6.* development, I can no longer reproduce
that failure with that checkin.

I am still seeing multiple segfaults in test suite runs at various
stages of Tcl 8.6 builds.  Continuing to examine....
dgpplain2025-05-20 18:42:18
This looks like a false alarm.
Log in (anonymous is fine) to add a comment.