Artifacts Associated With Ticket 1002637fffffffffffffffffffffffffffffffff
Ticket change [aa2fe066a2] (rid 99280) by eallaert on 2004-08-03 14:06:00:
- assignee initialized to: "mdejong"
- cmimetype initialized to: "text/plain"
- comment initialized to:
When compiling Tcl 8.4.7 with gcc on HP-UX 11.0, the configure script blanks out the CC_SEARCH_FLAGS and LD_SEARCH_FLAGS variables, instead of leaving them both set to '-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'. As a result, the SHLIB_PATH environment variable is not respected neither by the tcl program nor the libtcl8.4.sl library, and applications can only run if the original source directory is present. The solution is to set in this case LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} and to remove CC_SEARCH_FLAGS='' The same applies of course to tcl.m4. - foundin initialized to: "obsolete: 8.4.7"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "eallaert"
- subsystem initialized to: "53. Configuration and Build Tools"
- title initialized to: "SHLIB_PATH not respected on HP-UX 11"
- type initialized to: "Bug"
Ticket change [8194199587] (rid 117063) by mdejong on 2004-09-24 03:17:21:
- icomment:
Logged In: YES user_id=90858 Well, here is the current build rule: HP-UX-*.11.*) # Use updated header definitions where possible AC_DEFINE(_XOPEN_SOURCE) # Use the XOPEN network library AC_DEFINE(_XOPEN_SOURCE_EXTENDED) # Use the XOPEN network library LIBS="$LIBS -lxnet" # Use the XOPEN network library SHLIB_SUFFIX=".sl" AC_CHECK_LIB(dld, shl_load, tcl_ok=yes, tcl_ok=no) if test "$tcl_ok" = yes; then SHLIB_CFLAGS="+z" SHLIB_LD="ld -b" SHLIB_LD_LIBS='${LIBS}' DL_OBJS="tclLoadShl.o" DL_LIBS="-ldld" LDFLAGS="$LDFLAGS -Wl,-E" CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' LD_LIBRARY_PATH_VAR="SHLIB_PATH" fi if test "$GCC" = "yes" ; then SHLIB_LD="gcc -shared" SHLIB_LD_LIBS='${LIBS}' LD_SEARCH_FLAGS='' CC_SEARCH_FLAGS='' fi # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc #CFLAGS="$CFLAGS +DAportable" # Check to enable 64-bit flags for compiler/linker if test "$do64bit" = "yes" ; then if test "$GCC" = "yes" ; then hpux_arch=`gcc -dumpmachine` case $hpux_arch in hppa64*) # 64-bit gcc in use. Fix flags for GNU ld. do64bit_ok=yes SHLIB_LD="gcc -shared" SHLIB_LD_LIBS='${LIBS}' LD_SEARCH_FLAGS='' CC_SEARCH_FLAGS='' ;; *) AC_MSG_WARN("64bit mode not supported with GCC on $system") ;; esac else do64bit_ok=yes CFLAGS="$CFLAGS +DD64" LDFLAGS="$LDFLAGS +DD64" fi fi ;; Both CC_SEARCH_FLAGS and LD_SEARCH_FLAGS seem to be set when using the native compiler. Are you doing that or are you building with gcc? - login: "mdejong"
- mimetype: "text/plain"
- username: "mdejong"
- icomment:
Ticket change [ff27e03cc7] (rid 108708) by eallaert on 2004-09-24 13:52:09:
- icomment:
Logged In: YES user_id=204408 Yes, this problem occurs when using gcc (as explained in the first line of problem report).
- login: "eallaert"
- mimetype: "text/plain"
- username: "eallaert"
- icomment:
Ticket change [4fe64babe7] (rid 125893) by yuray on 2005-02-07 20:17:49:
- icomment:
Logged In: YES user_id=749625 Problem on hpux still exists. I have tcl 8.4.9 installed in /opt2/tcl bash-2.04$ ldd tclsh8.4 => /opt2/b/libtcl8.4.sl => /opt2/b/libtcl8.4.sl bash-2.04$ b -- is dir where a tcl was build. If I will remove b dir then a tclsh is not running (can not find library). Please apply given solution. - login: "yuray"
- mimetype: "text/plain"
- username: "yuray"
- icomment:
Ticket change [f4ff2fb99d] (rid 130024) by yuray on 2005-02-08 15:24:13:
- icomment:
Logged In: YES user_id=749625 Oops, all OK. I build tcl not in source dir, sorry for wrong post.
- login: "yuray"
- mimetype: "text/plain"
- username: "yuray"
- icomment:
Ticket change [30e0e050e0] (rid 93331) by hobbs on 2005-02-09 08:53:01:
- assignee changed to: "hobbs"
- icomment:
Logged In: YES user_id=72656 This is actually a correct fix - it only applies to gcc builds on HP-UX of course. This needs to go into 8.4 and head.
- login: "hobbs"
- mimetype: "text/plain"
- priority changed to: "7 High"
- username: "hobbs"
Ticket change [4035b7944a] (rid 121595) by hobbs on 2005-02-12 01:31:45:
- closedate changed to: "2005-02-11T18:31:45"
- closer changed to: "hobbs"
- icomment:
Logged In: YES user_id=72656 Fixed in 8.4 branch and HEAD.
- login: "hobbs"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "hobbs"