2013/1/30 Stephan Beal <[email protected]>:
> On Wed, Jan 30, 2013 at 11:10 AM, Jan Nijtmans <[email protected]>
> wrote:
>>
>> >Fossil's TCL support also appears to use dlopen()
>> - The link flag "-ldl" is missing on Linux. That's the shared library
>>   containing "dlopen",so - indeed - without it, Tcl support will not work.
>
>
> Which flavour of linux are you on? On my Ubuntu 12.04 and 12.10 systems -ldl
> is being included in the linker flags.

Looking at auto.def, the problem is with the "with-tcl-stubs" option:
    set tclstubs [opt-bool with-tcl-stubs]
    if {$tclstubs && $tclconfig(TCL_SUPPORTS_STUBS)} {
        set libs "$tclconfig(TCL_STUB_LIB_SPEC)"
        define FOSSIL_ENABLE_TCL_STUBS
        define USE_TCL_STUBS
    } else {
        set libs "$tclconfig(TCL_LIB_SPEC) $tclconfig(TCL_LIBS)"
    }

The $tclconfig(TCL_LIBS) contains the "-ldl", but
$tclconfig(TCL_STUB_LIB_SPEC) does not, which is
OK. (the stub library doesn't use dlopen, fossil does)

Somehow, fossil should add "-ldl" here, such that the
--with-tcl-stubs option works in combination with --static.

Regards,
          Jan Nijtmans
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to