Skip to content
Tcl Source Code View Ticket
Login

View Ticket

make test broken for debug build

Closed / Fixed218639ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:03:34
OriginalBugID: 1564 Bug
Version: 8.1b2
SubmitDate: '1999-03-19'
LastModified: '1999-03-23'
Severity: LOW
Status: Released
Submitter: pat
ChangedBy: stanton
OS: Other
Machine: NA
FixedDate: '1999-03-23'
FixedInVersion: 8.1b3
ClosedDate: '2000-10-25'


Name:
Don Porter

ReproducibleScript:
    $ cd tcl8.1b2/unix
    $ ./configure --enable-gcc --enable-shared --enable-symbols
    $ make 
    $ make test

ObservedBehavior:
    ...
    gcc -pipe -shared -o pkga.so pkga.o
    -L/homeitl/dgp/alpha/linux/src/tcl/unix -ltclstub8.1 
    /usr/bin/ld: cannot open -ltclstub8.1: No such file or directory
    collect2: ld returned 1 exit status
    make[1]: *** [pkga.so] Error 1
    make[1]: Leaving directory
    `/homeitl/dgp/alpha/linux/src/tcl/unix/dltest'
    make: *** [dltest/pkg5.so] Error 2

DesiredBehavior:
    make test should run tests

Patch:
Index: sun/tcl/unix/dltest/configure.in
diff -c sun/tcl/unix/dltest/configure.in:1.1.1.3 sun/tcl/unix/dltest/configure.in:1.2
*** sun/tcl/unix/dltest/configure.in:1.1.1.3    Wed Mar 17 10:32:03 1999
--- sun/tcl/unix/dltest/configure.in    Fri Mar 19 18:37:05 1999
***************
*** 10,15 ****
--- 10,17 ----

  CC=$TCL_CC
  AC_SUBST(CC)
+ DBGX=$TCL_DBGX
+ AC_SUBST(DBGX)
  SHLIB_CFLAGS=$TCL_SHLIB_CFLAGS
  AC_SUBST(SHLIB_CFLAGS)
  EXTRA_CFLAGS=$TCL_EXTRA_CFLAGS
Index: sun/tcl/unix/dltest/Makefile.in
diff -c sun/tcl/unix/dltest/Makefile.in:1.1.1.4 sun/tcl/unix/dltest/Makefile.in:1.2
*** sun/tcl/unix/dltest/Makefile.in:1.1.1.4     Wed Mar 17 10:32:03 1999
--- sun/tcl/unix/dltest/Makefile.in     Fri Mar 19 18:37:05 1999
***************
*** 4,9 ****
--- 4,10 ----
  # RCS: @(#) $Id: Makefile.in,v 1.1.2.3 1999/03/12 23:01:01 stanton Exp $

  CC = @CC@
+ TCL_DBGX=             @DBGX@
  LIBS =                        @TCL_BUILD_STUB_LIB_SPEC@ @SHLIB_LD_LIBS@
  AC_FLAGS =            @EXTRA_CFLAGS@
  SHLIB_CFLAGS =                @SHLIB_CFLAGS@

PatchFiles:
    unix/dltest/configure.in
    unix/dltest/Makefile.in



    Cause of the problem: Value of $TCL_DBGX not substituted into library
    name.
    
    NB: This patch also seems to fix the bug I reported earlier,
    http://www.dejanews.com/getdoc.xp?AN=456617666
----
This patch may have already been applied by Stanton.  If not, it should be.
03/23/1999 19:22 - surles -
    
03/23/1999 20:12 - stanton - The patch has definitely been applied.
welch Closed ticket [218639ffff]. [History diff]2000-10-26 08:26:09
dgp Ticket [218639ffff]: 3 changes [History diff]2001-04-05 08:22:17
Log in (anonymous is fine) to add a comment.