Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2005-02-04
19:32 • Deleted ticket [794741ffff]: sampleextension stublib ranlib fix plus 7 other... artifact: fb0569ba61 user: das
2005-02-02
07:45 • Ticket [794741ffff]: 5 changes artifact: 44283ffcca user: hobbs
2003-08-25
22:21 • Add attachment sampleextension.diff to ticket [794741ffffffffff|794741f... artifact: d5bf7a449b user: das
22:21 • Ticket [794741ffff] sampleextension stublib ranlib fix status still Open wit... artifact: b9c46f794f user: das
22:21 • Ticket [794741ffff]: 4 changes artifact: d1c0bd6fb3 user: das
22:18 • Ticket [794741ffff]: 4 changes artifact: 67ebf2045a user: das
14:59 • New ticket [794741ffff]. artifact: d128d93246 user: nobody

sampleextension stublib ranlib fix

Deleted794741ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 22 years ago
Descriptionplain2003-08-25 14:59:19
the attached patch fixes an issue with ranlib not being run 
on stub libs when building dynamically linked extensions 
(i.e. with RANLIB=.), this breaks building of 
interdependent stubified extensions on platforms that need 
ranlib to be run on static libs prior to linking (such as Mac 
OS X).

Essentially, ranlib calls on always static libs e.g. stub libs 
need to be separated from ranlib calls on libs that can be 
either static or dynamic, this is done via the new 
RANLIB_STUB which is set to the value of RANLIB before 
RANLIB is reset to . when building a dynamically linked 
extension.

Also added a section to the Makefile illustrating how to 
build stub libraries to clarify usage of the new 
RANLIB_STUB.
The technique adopted at install time is to run 
RANLIB_STUB on libraries containing the string "stub" and 
RANLIB on others.

This issue affects a number of TEA extensions using their 
own stub libs: incrTcl, trf, tkimg, tclxml, tcldom; but 
should also be fixed in sampleextension so that newly 
TEAfied extensions won't perpetuate this problem...

See the following patches for details on how the 
abovementioned extensions are affected:
http://tcltkaqua.sf.net/8.4.4/patches/incrTcl.diff
http://tcltkaqua.sf.net/8.4.4/patches/trf.diff
http://tcltkaqua.sf.net/8.4.4/patches/tkimg.diff
http://tcltkaqua.sf.net/8.4.4/patches/tclxml.diff
http://tcltkaqua.sf.net/8.4.4/patches/tcldom.diff
these will be submitted to the respective projects as time 
permits...
dasplain2003-08-25 22:18:16
Logged In: YES 
user_id=90580

oops, looks the browser forgot my login cookie...
submitted by 'das'
dasplain2003-08-25 22:21:21
Logged In: YES 
user_id=90580

and the patch didn't get attached either...
dasplain2003-08-25 22:21:22
File Added - 59734: sampleextension.diff
hobbsplain2005-02-02 07:45:35
Logged In: YES 
user_id=72656

I believe this is in the sample extension now, correct?
dasplain2005-02-04 19:32:27
Logged In: YES 
user_id=90580

indeed, very old bug, long since fixed
Log in (anonymous is fine) to add a comment.

Attachments: