Bug 2016 - static libtcl references symbols that are not included
Summary: static libtcl references symbols that are not included
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 2.2-CURRENT
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1996-11-15 09:00 UTC by David Dawes
Modified: 1998-05-23 10:12 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.