Tk Source Code

View Ticket
Login
Ticket UUID: 220582
Title: unix/configure needs -R<X11-path>
Type: Bug Version: obsolete: 8.0p2
Submitter: welch Created on: 2000-10-31 23:45:31
Subsystem: 84. Unix Build Assigned To: nobody
Priority: 2 Severity:
Status: Closed Last Modified: 2001-03-28 05:42:53
Resolution: Fixed Closed By: dgp
    Closed on: 2001-03-27 22:42:53
Description:
OriginalBugID: 2586 Bug
Version: 8.0p2
SubmitDate: '1999-08-20'
LastModified: '1999-08-20'
Severity: CRIT
Status: Released
Submitter: techsupp
ChangedBy: hobbs
OS: Solaris
OSVersion: 5.6
Machine: Other
FixedDate: '1999-08-20'
FixedInVersion: 8.2


Name:
Hallvard B Furuseth

ReproducibleScript:
# login on a host with /local/X11R6/lib/libX11.so but not libX11.a
    cd tk8.0/unix
    ./configure;
    make -s all install test

ObservedBehavior:
wish aborts while loading because it doesn't find libX11.so

DesiredBehavior:
workingn wish (without having to set LD_LIBRARY_PATH)

Patch:
I _think_ this should do it, though I have never hacked autoconf stuff.
Afterwards configure must be rebuilt.

--- unix/configure.in.bakMon Aug 16 06:54:23 1999
+++ unix/configure.inWed Aug 18 18:00:34 1999
@@ -179,3 +179,7 @@
     AC_MSG_RESULT($i)
-    XLIBSW="-L$i -lX11"
+    if test -r $i/libX11.so -o -r $i/libX11.sl; then
+XLIBSW="-L$i -R$i -lX11"
+    else
+XLIBSW="-L$i -lX11"
+    fi
     x_libraries="$i"
@@ -188,3 +192,3 @@
     else
-XLIBSW="-L$x_libraries -lX11"
+XLIBSW="-L$x_libraries -R$x_libraries -lX11"
     fi

PatchFiles:
unix/configure.in
    unix/configure



8.0p2 is an old version to be running on at this point, as there
are more stable releases in the 8.0 and 8.2 lines where this
bug has been fixed. 
-- 08/20/1999 hobbs