Artifacts Associated With Ticket 219022
Ticket change [4ad5a458d2] (rid 126595) by nobody on 2000-10-26 01:09:33:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized 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 - foundin initialized to: "final: 8.2.3"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "69. Other"
- title initialized to: "two compile problems of tcl 8.2.3 on Solaris"
- type initialized to: "Bug"
Ticket change [a1beb6e879] (rid 109780) by welch on 2000-10-26 08:33:10:
- closedate changed to: "2000-10-26T01:33:10"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [360c1ed1b2] (rid 107052) by dgp on 2001-04-23 04:07:33:
- closedate changed to: "2001-04-22T21:07:33"
- closer changed to: "dgp"
- subsystem changed to: "52. Portability Support"