Overview
| Artifact ID: | b1b194a2d86d9ceaf063513a1fdb37066d7d681c |
|---|---|
| Ticket: | 2502365fffffffffffffffffffffffffffffffff
Building of head on HPUX is broken when using the native CC |
| User & Date: | andreas_kupries on 2009-01-23 06:22:07 |
Changes
- icomment:
I have to ask a bit more. Mainly. what changes were made for HPUX between 8.5 and 8.6, and why ? The problem which I fixed locally with -L/lib/hpux64 seems to be tied to a cc/ld change which was made for 8.6. Thusly: * I compiled 8.5 and 8.6 and compared. * Both there head of their branches. * Both were configured the same: Use the native HPUX cc, and --enable-64bit. Results * Tcl 8.5 core uses 'ld -b ... +s +b xxx-path:.' to link the libtcl.so. This works. * Tcl 8.6 core uses 'cc -b ... -Wl,+s,+b,xxx-path:.' to link the libtcl.so. This FAILS. * The reported failure is "ld: Can't find library or mismatched ABI for -ldld". * Adding -L/lib/hpux64 fixes the issue for 8.6. that is what I did for the ActiveTcl builds to keep going. * Using the 8.5 link line for 8.6, instead of adding -L... fixes the problem as well. I am now suspecting that using the 'cc' as linker is ill-advised, it seems to play with the search paths to use, whixch can be compensated for with an explicit -L. Given that I would really like to know the motivations behind the changes made for HPUX. Looking through the file annotations it seems that this was introduced by rev 1.199. http://tcl.cvs.sourceforge.net/viewvc/tcl/tcl/unix/tcl.m4?r1=1.198&r2=1.199 The relevant comment for the patch is 'fix for bug [2073255]'. And the bug in question is about having to add a +z somewhere. The change ld -> cc is not documented and seems to have no relation to the bug. I.e. it comes a bit out of left field. Actually, looking at the referenced bug and original patch ... The comment says we need to a "+z" option to CFLAGS, and the proposed patch than add "-z" instead (plus vs minus!). Then it gets restructured to handle GCC, and at that point the ld -> cc change is made as well. Oh, and we still have the "-z" floating around, although a few lines later "+z" is actually added as well. That explains another difference I saw in the make log of 8.5 vs 8.6. Tcl 85: cc +DD64 +z Tcl 86: cc -z +DD64 +z The -z is added to CFLAGS, the +z added to SHLIB_CFLAGS. Lines 1282 and 1285 in the HEAD
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"