|
2005-02-12
| ||
| 01:31 | • Closed ticket [1002637fff]: SHLIB_PATH not respected on HP-UX 11 plus 7 othe... artifact: 4035b7944a user: hobbs | |
|
2005-02-09
| ||
| 08:53 | • Ticket [1002637fff]: 6 changes artifact: 30e0e050e0 user: hobbs | |
|
2005-02-08
| ||
| 15:24 | • Ticket [1002637fff]: 4 changes artifact: f4ff2fb99d user: yuray | |
|
2005-02-07
| ||
| 20:17 | • Ticket [1002637fff]: 4 changes artifact: 4fe64babe7 user: yuray | |
|
2004-09-24
| ||
| 13:52 | • Ticket [1002637fff]: 4 changes artifact: ff27e03cc7 user: eallaert | |
| 03:17 | • Ticket [1002637fff]: 4 changes artifact: 8194199587 user: mdejong | |
|
2004-08-03
| ||
| 14:06 | • New ticket [1002637fff]. artifact: aa2fe066a2 user: eallaert | |
SHLIB_PATH not respected on HP-UX 11
Closed / Fixed1002637fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2004-08-03 14:06:00
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.
mdejongplain2004-09-24 03:17:21
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?
eallaertplain2004-09-24 13:52:09
Logged In: YES user_id=204408 Yes, this problem occurs when using gcc (as explained in the first line of problem report).
yurayplain2005-02-07 20:17:49
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.
yurayplain2005-02-08 15:24:13
Logged In: YES user_id=749625 Oops, all OK. I build tcl not in source dir, sorry for wrong post.
hobbsplain2005-02-09 08:53:01
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.
hobbsplain2005-02-12 01:31:45
Logged In: YES user_id=72656 Fixed in 8.4 branch and HEAD.
Log in (anonymous is fine) to add a comment.