| Ticket UUID: | 220863 | |||
| Title: | tkConfig.sh generated is incomplete | |||
| Type: | Bug | Version: | obsolete: 8.2 | |
| Submitter: | welch | Created on: | 2000-11-01 01:30:14 | |
| Subsystem: | 84. Unix Build | Assigned To: | mdejong | |
| Priority: | 5 Medium | Severity: | ||
| Status: | Closed | Last Modified: | 2001-12-20 04:37:36 | |
| Resolution: | Fixed | Closed By: | mdejong | |
| Closed on: | 2001-12-19 21:37:36 | |||
| Description: |
OriginalBugID: 2668 Bug
Version: 8.2
SubmitDate: '1999-08-31'
LastModified: '2000-03-02'
Severity: CRIT
Status: UnAssn
Submitter: techsupp
ChangedBy: hobbs
OS: Solaris
OSVersion: 2.6
Machine: Other
Name:
Larry W. Virden
CVS:
Aug. 27, 1999, 8am
Extensions:
tcl/tk/tclx
CustomShell:
none
ReproducibleScript:
$ $PWD/configure --prefix=/usr/tcl82 --exec-prefix=/usr/tcl82/sun4
--with-cc=cc --with-x --x-includes=/usr/openwin/include
--x-libraries=/usr/openwin/lib --enable-shared
$ make all test install
ObservedBehavior:
$ grep L /usr/tcl82/sun4/lib/tkConfig.sh
TK_PATCH_LEVEL='.0'
TK_DEFS=' -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DSTDC_HEADERS=1
-DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_PW_GECOS=1 '
TK_SHARED_BUILD=
TK_LIB_FILE='libtk8.2.so'
TK_LIBS='-L/usr/openwin/lib -lX11 -ldl -lsocket -lnsl -lm'
TK_XINCLUDES='-I/usr/openwin/include'
# Linker switch(es) to use to link with the X11 library archive.
TK_XLIBSW='-L/usr/openwin/lib -lX11'
TK_LIB_FLAG='-ltk8.2'
TK_BUILD_LIB_SPEC='-L/vol/tclsrcsol/tcl82/tk8.2.0/unix -ltk8.2'
TK_LIB_SPEC='-L/usr/tcl82/sun4/lib -ltk8.2'
# Location of the top-level source directory from which Tk was built.
TK_CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}:/usr/openwin/lib'
TK_LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}:/usr/openwin/lib'
TK_STUB_LIB_FILE='libtkstub8.2.a'
TK_STUB_LIB_FLAG='-ltkstub8.2'
TK_BUILD_STUB_LIB_SPEC='-L/vol/tclsrcsol/tcl82/tk8.2.0/unix -ltkstub8.2'
TK_STUB_LIB_SPEC='-L/usr/tcl82/sun4/lib -ltkstub8.2'
TK_BUILD_STUB_LIB_PATH='/vol/tclsrcsol/tcl82/tk8.2.0/unix/libtkstub8.2.a'
TK_STUB_LIB_PATH='/usr/tcl82/sun4/lib/libtkstub8.2.a'
Notice in the above that several of the variables are missing the -R
flag.
When these flags are used, the resulting binary are not able to locate
the dynamic libraries without users having to modify their environments
which is not possible at times (due to conflicts between requirements).
Also, I've encountered problems with the -Wl,-R, notation - Sun's
compiler tends to generate an error when this is used.
Here is an example of the error:
/usr/ccs/bin/ld -G -z text -Wl,-R,/usr/tcl82/sun4/lib/:/usr/openwin/lib
-R /usr/tcl82/sun4/lib ...
(where I've deleted the remainder of the statement due to size.)
/usr/ccs/bin/ld: illegal option -- W
/usr/ccs/bin/ld: illegal option -- W
usage: ld [-abd:e:f:h:il:mo:rstu:z:B:D:F:GI:L:M:N:Q:R:S:VY:] file(s)
[-a] create an absolute file
Also, I am uncertain that the variable should be in there - if it is
null,
there is likely to be other errors.
I also notice similar errors in the tclConfig.sh - along with this
peculiar
occurance:
/usr/tcl82/sun4/lib/tclConfig.sh:
# Default linker flags used in an optimized and debuggable build,
respectively.
TCL_LDFLAGS_DEBUG='@LDFLAGS_DEBUG@'
TCL_LDFLAGS_OPTIMIZE='@LDFLAGS_OPTIMIZE@'
The tclx from the Scriptics CVS repository shows a similar peculiarity:
/usr/tcl82/sun4/lib/tclxConfig.sh:
#
# Search flags that specify how to find the TclX shared libraries at run
time
# on some systems.
#
TCLX_LD_SEARCH_FLAGS='@TCLX_LD_SEARCH_FLAGS@'
These @something@ strings should have values substituted.
DesiredBehavior:
I would expect to see -R flags used on systems where they
are available (perhaps with a configure flag in the case of
users who don't want them for whatever reason). I would
expect to see @something@ strings replaced with text. And
I would hope that flags generated in files were usable everywhere.
| |||
| User Comments: |
mdejong added on 2001-12-20 04:37:36:
Logged In: YES user_id=90858 Added to CVS on 2001-12-19 after getting note back from Larry stating that the patch worked. mdejong added on 2001-12-19 14:09:23: File Added - 14905: solaris_linker.patch Logged In: YES user_id=90858 Could someone with access to a Solaris <= 5.6 system and the native compiler give this patch a test run. I think it should fix the problem but I no such system to test it out on. | |||
Attachments:
- solaris_linker.patch [download] added by mdejong on 2001-12-19 14:09:23. [details]
