Tk Source Code

View Ticket
Login
Ticket UUID: 220587
Title: Makefile generated by configure specifies wrong ldAix
Type: Bug Version: obsolete: 8.2
Submitter: welch Created on: 2000-10-31 23:45:39
Subsystem: 84. Unix Build Assigned To: nobody
Priority: 2 Severity:
Status: Closed Last Modified: 2001-03-28 05:40:15
Resolution: Fixed Closed By: dgp
    Closed on: 2001-03-27 22:40:15
Description:
OriginalBugID: 2624 Bug
Version: 8.2
SubmitDate: '1999-08-31'
LastModified: '1999-09-15'
Severity: CRIT
Status: Released
Submitter: techsupp
ChangedBy: hobbs
RelatedBugIDs: 2685
OS: AIX
OSVersion: 4.3.3
Machine: RS6000
FixedDate: '1999-09-15'
FixedInVersion: 8.2.1


Name:
Dave Marquardt

Comments:
I would have modified configure.in if I could have found these lines
    there, but they don't seem to be
    there--I guess the distribution is missing something w.r.t. the
    configuration files and autoconf.

    I thought I'd submitted this bug report before, but I've lost all traces
    of it, and can't find it in the DejaNews archive of postings to
    comp.lang.tcl.

ReproducibleScript:
Download tk 8.2 to an AIX 4.3.2 system.  Unpack it.  Change to unix
    subdirectory.  Run

    ./configure --enable-shared

    Run make.  Note that it fails because it specifies ldAix in the TK
    source directory rather than the Tcl
    source directory, where it actually exists.

ObservedBehavior:
libtk fails to bind.

    Here are the lines from make's output where ldAix is specified in the
    wrong directory:

            rm -f libtk8.2.so
            /usr/local/src/tk8.2.0/unix/ldAix /bin/ld -bhalt:4 -bM:SRE
    -bE:lib.exp -H512 -T512 -bnoentry -o libtk8.2.so tk3d.o tkArgv.o
    tkAtom.o tkBind.o tkBitmap.o tkClipboard.o tkCmds.o  tkColor.o
    tkConfig.o tkConsole.o tkCursor.o tkError.o tkEvent.o  tkFocus.o
    tkFont.o tkGet.o tkGC.o tkGeometry.o tkGrab.o tkGrid.o  tkMain.o tkObj.o
    tkOldConfig.o tkOption.o tkPack.o tkPlace.o  tkSelect.o tkUtil.o
    tkVisual.o tkWindow.o   tkUnix.o tkUnix3d.o tkUnixButton.o tkUnixColor.o
    tkUnixConfig.o  tkUnixCursor.o tkUnixDraw.o tkUnixEmbed.o tkUnixEvent.o
    tkUnixFocus.o tkUnixFont.o tkUnixInit.o tkUnixKey.o tkUnixMenu.o
    tkUnixMenubu.o tkUnixScale.o tkUnixScrlbr.o tkUnixSelect.o  tkUnixSend.o
    tkUnixWm.o tkUnixXId.o tkStubInit.o tkStubLib.o tkButton.o tkEntry.o
    tkFrame.o tkListbox.o  tkMenu.o tkMenubutton.o tkMenuDraw.o tkMessage.o
    tkScale.o  tkScrollbar.o tkCanvas.o tkCanvArc.o tkCanvBmap.o tkCanvImg.o
     tkCanvLine.o tkCanvPoly.o tkCanvPs.o tkCanvText.o  tkCanvUtil.o
    tkCanvWind.o tkRectOval.o tkT!
    rig.o tkImage.o tkImgBmap.o tkImgGIF.o tkImgPPM.o tkImgPhoto.o tkText.o
    tkTextBTree.o tkTextDisp.o tkTextImage.o tkTextIndex.o  tkTextMark.o
    tkTextTag.o tkTextWind.o -L/usr/local/lib -L/usr/local/src/tcl8.2.0/unix
     -lX11 -ldl -lm -lc
    /bin/sh: /usr/local/src/tk8.2.0/unix/ldAix:  not found.

DesiredBehavior:
The generated Makefile should specify an existing copy of ldAix.

Patch:
*** configure~  Fri Aug 13 17:06:14 1999
--- configure   Mon Aug 23 15:22:28 1999
***************
*** 1524,1530 ****
      case $system in
        AIX-4.[2-9])
            SHLIB_CFLAGS=""
!           SHLIB_LD="$fullSrcDir/ldAix /bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry"
            SHLIB_LD_LIBS='${LIBS}'
            SHLIB_SUFFIX=".so"
            DL_OBJS="tclLoadDl.o"
--- 1524,1530 ----
      case $system in
        AIX-4.[2-9])
            SHLIB_CFLAGS=""
!           SHLIB_LD=$TCL_SHLIB_LD
            SHLIB_LD_LIBS='${LIBS}'
            SHLIB_SUFFIX=".so"
            DL_OBJS="tclLoadDl.o"

PatchFiles:
unix/configure



Fixed. 
-- 09/15/1999 hobbs