Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-04-23
04:07 • Ticket [219022ffff] two compile problems of tcl 8.2.3 on Solaris status stil... artifact: 360c1ed1b2 user: dgp
2000-10-26
08:33 • Closed ticket [219022ffff]. artifact: a1beb6e879 user: welch
01:09 • New ticket [219022ffff]. artifact: 4ad5a458d2 user: nobody

two compile problems of tcl 8.2.3 on Solaris

Closed / Fixed219022ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:09:33
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
welch Closed ticket [219022ffff]. [History diff]2000-10-26 08:33:10
dgp Ticket [219022ffff]: 3 changes [History diff]2001-04-23 04:07:33
Log in (anonymous is fine) to add a comment.