Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4ad5a458d225c1ec37d0b35f578d4e7be7e55983
Ticket: 219022ffffffffffffffffffffffffffffffffff
two compile problems of tcl 8.2.3 on Solaris
User & Date: nobody on 2000-10-26 01:09:33
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 3999 Bug
    Version: 8.2.3
    SubmitDate: '2000-01-10'
    LastModified: '2000-01-10'
    Severity: MED
    Status: Released
    Submitter: techsupp
    ChangedBy: hobbs
    OS: Solaris
    OSVersion: 2.5
    Machine: SS20
    FixedDate: '2000-01-10'
    FixedInVersion: 8.3b2
    ClosedDate: '2000-10-25'
    
    
    Name: Ludovic Drolez
    
    Comments:
    * to fix the linker bug, I had to add '-lsocket' in unix/Makefile:
    
    *** Makefile.orig       Mon Jan 10 09:42:19 2000
    --- Makefile    Mon Jan 10 09:42:25 2000
    ***************
    *** 235,241 ****
      ${AC_FLAGS} ${MATH_FLAGS} ${GENERIC_FLAGS} ${PROTO_FLAGS} ${MEM_DEBUG_FLAGS}  ${COMPILE_DEBUG_FLAGS} ${ENV_FLAGS} -DTCL_SHLIB_EXT=\"${SHLIB_SUFFIX}\"
    
    ! LIBS =                -ldl  -lpthread $(MATH_LIBS) -lc
    
      DEPEND_SWITCHES = ${CFLAGS} -I${GENERIC_DIR} -I${SRC_DIR}  ${AC_FLAGS} ${MATH_FLAGS}  --- 235,241 ----
      ${AC_FLAGS} ${MATH_FLAGS} ${GENERIC_FLAGS} ${PROTO_FLAGS} ${MEM_DEBUG_FLAGS}  ${COMPILE_DEBUG_FLAGS} ${ENV_FLAGS} -DTCL_SHLIB_EXT=\"${SHLIB_SUFFIX}\"
    
    ! LIBS =                -ldl  -lpthread $(MATH_LIBS) -lc -lsocket
    
      DEPEND_SWITCHES = ${CFLAGS} -I${GENERIC_DIR} -I${SRC_DIR}  ${AC_FLAGS} ${MATH_FLAGS}  
    ReproducibleScript:
    When trying to compile tcl 8.2.3 on Solaris 2.5 with egcs 2.95.2, you get
    - a 'conflicting declaration' error on 'waitpid' (redefined in compat/waitpid.h)
      (patch below)
    - a linker  error when linking 'tclsh': some symbols are not resolved
      (can be solved by adding -lsocket to the makefile)
    
    Patch:
    *** waitpid.c.orig      Mon Jan 10 09:38:52 2000
    --- waitpid.c   Mon Jan 10 09:39:48 2000
    ***************
    *** 64,72 ****
      #   undef waitpid
      #endif
    
    ! int
      waitpid(pid, statusPtr, options)
    !     int pid;                  /* The pid to wait on.  Must be -1 or
                                     * greater than zero. */
          int *statusPtr;           /* Where to store wait status for the
                                     * process. */
    --- 64,72 ----
      #   undef waitpid
      #endif
    
    ! pid_t
      waitpid(pid, statusPtr, options)
    !     pid_t pid;                        /* The pid to wait on.  Must be -1 or
                                     * greater than zero. */
          int *statusPtr;           /* Where to store wait status for the
                                     * process. */
    
    PatchFiles:
    compat/waitpid.c
    
    
    
    Made the changes to waitpid.c for 8.3b2.  -lsocket should have
    been picked up, as it is for us on Solaris.  There may be a
    problem when building with gcc 2.95 that has to be examined. 
    -- 01/10/2000 hobbs
    
  4. foundin changed to: "final: 8.2.3"
  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: "69. Other"
  10. title changed to: "two compile problems of tcl 8.2.3 on Solaris"
  11. type changed to: "Bug"