Bug 2016

Summary: static libtcl references symbols that are not included
Product: Base System Reporter: David Dawes <dawes>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me CC: dawes
Priority: Normal    
Version: 2.2-CURRENT   
Hardware: Any   
OS: Any   

Description David Dawes 1996-11-15 09:00:03 UTC
XF86Setup, as included in XFree86 3.2, links against static tcl and tk
libraries by default (although it could probably use the dynamic libtcl
since it is part of the base FreeBSD 2.2 -- but this is irrelevant since
there is a real problem).  When building it, the link phase fails with
the following error:

tclBasic.o: Undefined symbol `_Tcl_LoadCmd' referenced from data segment
tclCmdIL.o: Undefined symbol `_TclGetLoadedPackages' referenced from text segment

This is because the static library includes references to tcl functions
that don't get included when building static.

nm /usr/lib/libtcl.a | grep Tcl_LoadCmd shows:

         U _Tcl_LoadCmd

Fix: 

I don't have one.
How-To-Repeat: 
Compile XF86Setup in XFree86 3.2.
Comment 1 Poul-Henning Kamp freebsd_committer freebsd_triage 1998-05-23 10:11:56 UTC
State Changed
From-To: open->closed

fixed in some quasi-distant past.