Tk Source Code

View Ticket
Login
Ticket UUID: 504356
Title: latest cvs problem with TCL_DBGX
Type: Bug Version: obsolete: 8.4a4
Submitter: lvirden Created on: 2002-01-16 12:54:48
Subsystem: 84. Unix Build Assigned To: mdejong
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2002-01-17 09:51:29
Resolution: Fixed Closed By: mdejong
    Closed on: 2002-01-17 02:51:29
Description:
After downloading , configuring, and attempting to make
the code for Tk, I ran into a peculiar problem.

I kept getting this error:

ld: fatal: library -ltclstub8.4: not found
ld: fatal: File processing errors. No output written to
libtk8.4g.so
make: *** [libtk8.4g.so] Error 1

Upon investigation, I found this much out.  Tcl was
built with symbols .  This  installs libtclsub8.4 with
the 'g' suffix (libtclstub8.4g.a) .

Now, tclConfig.sh indicates 
TCL_DBGX=g
and 
 TCL_STUB_LIB_FILE='libtclstub8.4${TCL_DBGX}.a'

TCL_STUB_LIB_FLAG='-ltclstub8.4${TCL_DBGX}'
TCL_BUILD_STUB_LIB_SPEC='-L/vol/tclsrcsol/tcl84/tcl/unix
-ltclstub8.4${TCL_DBGX}
TCL_STUB_LIB_SPEC='-L/usr/tcl84/lib
-ltclstub8.4${TCL_DBGX}'

TCL_BUILD_STUB_LIB_PATH='/vol/tclsrcsol/tcl84/tcl/unix/libtclstub8.4${TCL_DBGX}.
a'
TCL_STUB_LIB_PATH='/usr/tcl84/lib/libtclstub8.4${TCL_DBGX}.a'

so it LOOKS like everything should have worked okay.

I haven't figured out why this fails.  However, if I
hand edit the Tk Makefile to foce the TCL_DBGX to g,
the makefile works.

Note that I see the same problem with the itcl
makefile...
User Comments: mdejong added on 2002-01-17 09:51:29:
Logged In: YES 
user_id=90858

Added patch to CVS, this problem should be fixed now.

lvirden added on 2002-01-17 02:43:28:
Logged In: YES 
user_id=15949

doggone sf.net interface - I don't know why I got a double
posting that time... Anyways, I downloaded the patch,
applied it, did a make distclean, 
configure --prefix=/usr/tcl84 --enable-symbols
make all
and everything now builds fine.

Thanks!

lvirden added on 2002-01-17 02:28:14:
Logged In: YES 
user_id=15949

yes, I did the builds after doing a make distclean.

mdejong added on 2002-01-17 02:08:37:

File Added - 16210: p

mdejong added on 2002-01-17 02:08:36:
Logged In: YES 
user_id=90858

Could you try reconfiguring Tk after adding the following
patch? This should fix the problem.

lvirden added on 2002-01-16 23:37:57:
Logged In: YES 
user_id=15949

yes, I did the builds after doing a make distclean.

hobbs added on 2002-01-16 23:27:51:
Logged In: YES 
user_id=72656

Have you made sure to do each build completely from 
scratch?  I've found that certain configure changes need 
this because cached information is now incompatible.  
Please try again from scratch with Tcl and Tk from the 
latest CVS.  If there is still a problem, then something is 
definitely wrong.

Attachments: