solaris-cc, 64bit: final linking lacks 64bit-option
Closed / Fixed1016796fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2004-08-26 11:32:46
Solaris 8, cc (Sun WorkShop 6 update 1 C 5.2), "./configure --enable-64bit --enable-64bit-vis --disable-shared - -disable-load" compiling goes all well, but for final linking, option "-xarch=v9a" is missing from the command-line, thus linking fails with "ld: fatal: file tclAppInit.o: wrong ELF class: ELFCLASS64" manually re-executing the command with the xarch-option added successfully produces binary.
avl42 Ticket [1016796fff]: 2 changes
[History diff]2004-08-26 18:34:23
hobbsplain2004-11-13 08:08:11
Logged In: YES user_id=72656 This is due to the addition of the --disable-load. Do you really want that? --disable-shared makes a static build, but --disable-load prevents the Tcl 'load' command from operating. I would recommend removing that from the configure line. There is a general configure problem with --disable-load for those platforms (builds) that require LDFLAGS be extended (like most 64-bit compiles). The --disable-load reverts to LDFLAGS_ORIG, which removes 64-bit info as well as dynlib info.
avl42plain2004-11-15 21:52:33
Logged In: YES user_id=830354 Ok, I might re-enable "load" for my build, but this is more like a workaround. Perhaps, as a real solution, the 64bit-options might be added to LDFLAGS_ORIG as well, or to some other variable that will be added to LD_FLAGS only after all possible reverts for disabled features have eventually taken place. Even, if priority is lowered to 7 (probably rightly so), it's still a bug.
hobbs Ticket [1016796fff]: 1 change
[History diff]2004-11-16 02:53:13
hobbsplain2004-11-16 02:53:14
Logged In: YES user_id=72656 If you are looking into tcl.m4, you might look at this. Otherwise bounce it back to me.
dkfplain2004-11-16 16:36:16
Logged In: YES user_id=79902 Fixed tcl.m4, but configure needs regeneration and someone objected to my using 2.59 (not that I believe it matters all that much really, but even so. :^))
hobbsplain2004-11-18 01:28:44
Logged In: YES user_id=72656 dgp did a configure update
Log in (anonymous is fine) to add a comment.