BSD build issue

Harald Oehlmann harald.oehlmann at elmicron.de
Mon May 19 14:10:41 UTC 2014


Jan,

Reinhard and me try to test the revised socket code on bsd.
Steve reported test failures there.

Today, ente (mw at barfooze.de) tested tcl branch "bug-13d3af3ad5" on FreeBSD:

https://core.tcl.tk/tcl/info/9b3b3adf47823f5980b57a1df6432be39c5858c3

He got the following link error:
cd unix
./configure
make
...
gcc -DNDEBUG -O2  -pipe  tclAppInit.o
-L/tmp/Tcl_Source_Code-9b3b3adf47823f59/_build -ltcl86 libtclstub86.a
-lz -lpthread -lm   -Wl,-rpath,/usr/local/lib -o tclsh
/usr/bin/ld: cannot find -ltcl86

There is:
mw at furnace:/tmp/Tcl_Source_Code-9b3b3adf47823f59 $ file libtcl86.so.1
libtcl86.so.1: ELF 64-bit LSB shared object, x86-64, version 1
(FreeBSD), dynamically linked, not stripped

but no libtcl86.so

Adding a symlink fixes the issue.

Ente reported the following:

the FreeBSD ports tree apparently has a patch that creates a symlink
http://svnweb.freebsd.org/ports/head/lang/tcl86/files/patch-unix-Makefile.in?view=markup
line 41, I suppose

Reinhard observed this:
For FreeBSD unix/tcl.m4 sets:
		SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1'

Jan, maybee you may look after the issue.

Thank you and best regards,
Harald


More information about the freebsd-tcltk mailing list