Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 9fb89b4b075b70927a809e2898a216e9e963d1ce
Ticket: 218303ffffffffffffffffffffffffffffffffff
tcl/tk build fails when "-lc" on link commandline
User & Date: nobody on 2000-10-26 00:55:55
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 3655 Bug
    Version: 8.2.1
    SubmitDate: '1999-11-23'
    LastModified: '1999-12-14'
    Severity: SER
    Status: Closed
    Submitter: techsupp
    ChangedBy: hobbs
    OS: HP-UX
    OSVersion: HP-UX xxx A.08.07 A 9000/710 2013592596
    FixedDate: '2000-10-25'
    ClosedDate: '1999-12-14'
    
    
    Name: Jeff Epler
    
    Comments:
    if this is necessary on some platforms, configure should detect the fact
    a similar patch to tk8.2.1/unix/Makefile.in is necessary
    
    ReproducibleScript:
    When building tcl/tk 8.2.1 on 
       HP-UX xxx A.08.07 A 9000/710 2013592596
    the link process for tclsh (and subsequently wish) fails:
       gcc  tclAppInit.o -L/sds2/tcl8/src/tcl8.2.1/unix -ltcl8.2 -lm -lc -o tclsh
       collect2: ld returned 1 exit status
       /bin/ld: Unsatisfied symbols:
          atexit (code)
    When "-lc" is removed from the gcc commandline, the link proceeds.
    
    ObservedBehavior:
    tcl/tk cannot be built
    
    DesiredBehavior:
    tcl/tk can successfully be built and installed
    
    Patch:
    --- Makefile.in.orig    Tue Nov 16 08:19:36 1999
    +++ Makefile.in Tue Nov 16 08:19:42 1999
    @@ -189,8 +189,8 @@
    
     # Libraries to use when linking.  This definition is determined by the
     # configure script.
    -LIBS = @LIBS@ $(X11_LIB_SWITCHES) @DL_LIBS@ @MATH_LIBS@ -lc
    -WISH_LIBS = $(TCL_LIB_SPEC) @LIBS@ $(X11_LIB_SWITCHES) @DL_LIBS@ @MATH_LIBS@ -lc
    +LIBS = @LIBS@ $(X11_LIB_SWITCHES) @DL_LIBS@ @MATH_LIBS@
    +WISH_LIBS = $(TCL_LIB_SPEC) @LIBS@ $(X11_LIB_SWITCHES) @DL_LIBS@ @MATH_LIBS@
    
     # The symbol below provides support for dynamic loading and shared
     # libraries.  See configure.in for a description of what it means.
    
    PatchFiles:
    unix/Makefile.in
    
    
    
    Tcl 8.2.1/2 builds find for us with gcc 2.7.2.3 on HP 10.20, with
    the -lc.  'atexit' is a standard C function, and I am able to find
    it in /usr/lib/libc.sl. 
    -- 12/14/1999 hobbs
    
  4. foundin changed to: "obsolete: 8.2.1"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "75. Tutorial"
  10. title changed to: "tcl/tk build fails when "-lc" on link commandline"
  11. type changed to: "Bug"