Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-04-05
06:52 • Ticket [218952ffff] Should link with -rdynamic option on FreeBSD 3.2+ status... artifact: 3842abe2ca user: dgp
2000-10-26
08:32 • Closed ticket [218952ffff]. artifact: a3a0ec55cf user: welch
01:08 • New ticket [218952ffff]. artifact: 391cd9a09c user: nobody

Should link with -rdynamic option on FreeBSD 3.2+

Closed / Fixed218952ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:08:33
OriginalBugID: 2998 Bug
Version: 8.2
SubmitDate: '1999-09-29'
LastModified: '2000-02-10'
Severity: MED
Status: Released
Submitter: techsupp
ChangedBy: hobbs
OS: Other
OSVersion: FreeBSD 3.2
Machine: NA
FixedDate: '2000-02-10'
FixedInVersion: 8.3
ClosedDate: '2000-10-25'


Name:
Jean-Francois Dockes

ReproducibleScript:
somehost % tclsh
    % load ./mysqltcl.so
    couldn't load file "./mysqltcl.so": ./mysqltcl.so: Undefined symbol
    "Tcl_PkgProvide"

ObservedBehavior:
On FreeBSD3.2 and later, which use ELF, the tclsh and wish interpreters
    should
    be linked using the -rdynamic gcc option (or gcc -Wl,-export-dynamic, or
    ld -export-dynamic), like what is done on Linux.
    
    Else a shared object loaded by the interpreter can't access vital
    functions like Tcl_PkgProvide, and fails to load



Added -export-dynamic to LDFLAGS for both tclsh and wish. 
-- 02/10/2000 hobbs
welch Closed ticket [218952ffff]. [History diff]2000-10-26 08:32:15
dgp Ticket [218952ffff]: 3 changes [History diff]2001-04-05 06:52:49
Log in (anonymous is fine) to add a comment.