Artifacts Associated With Ticket 219034ffffffffff
Ticket change [b22a84e6f7] (rid 98285) by nobody on 2000-10-26 01:09:41:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 4055 Bug Version: 8.3b2 SubmitDate: '2000-01-21' LastModified: '2000-02-02' Severity: MED Status: Released Submitter: techsupp ChangedBy: wart OS: Linux-SuSE FixedDate: '2000-02-02' ClosedDate: '2000-10-25' Name: Andreas Kupries ReproducibleScript: This is actually a report about the SampleExtension, but there was no entry in the selection list for that. Hence reported under Tcl, generic. Take the sample extension, compile it with --disable-shared and then try to install. ObservedBehavior: The 'install-lib-binaries' target of the Makefile for the sample-extension and every extension using that Makefile as template seems to have a bug. It shows up only when using --disable-shared The code for the target follows below, with the erroneous marked via |. The problem is the use of $(bindir). It should be $(libdir) instead. @list='$(lib_BINARIES)'; for p in $$list; do if test -f $$p; then ext=`echo $$p|sed -e "s/.*\.//"`; if test "x$$ext" = "xdll"; then echo " $(INSTALL_DATA) $$p $(DESTDIR)$(bindir)/$$p"; $(INSTALL_DATA) $$p $(DESTDIR)$(bindir)/$$p; lib=`basename $$p|sed -e 's/.[^.]*$$//'`.lib; if test -f $$lib; then echo " $(INSTALL_DATA) $$lib $(DESTDIR)$(libdir)/$$lib"; $(INSTALL_DATA) $$lib $(DESTDIR)$(libdir)/$$lib; fi; else echo " $(INSTALL_DATA) $$p $(DESTDIR)$(libdir)/$$p"; $(INSTALL_DATA) $$p $(DESTDIR)$(libdir)/$$p; fi; else :; fi; done @list='$(lib_BINARIES)'; for p in $$list; do if test -f $$p; then | echo " $(RANLIB) $(DESTDIR)$(bindir)/$$p"; | $(RANLIB) $(DESTDIR)$(bindir)/$$p; else :; fi; done If compiled with --enable-shared $(RANLIB) evaluates to ':', which does nothing with its arguments. For --disable-shared we have $(RANLIB) = ranlib and then get errors like 'no such file or directory'. I made another change to the code for this target and replaced $(TCLSH_PROG) mkIndex.tcl; with if test "x$(MAKE_LIB)" = "x$(MAKE_SHARED_LIB)"; then $(TCLSH_PROG) mkIndex.tcl; fi to avoid errors during installation after a compilation with --disable-shared. Without doing this the code tries to generate a package index for the not-existing shared libraries. I consider the comparison as a hack, but found no official way to determine from within a makefile wether --disable-shared is active or not. ----------- Here an example of the error messages, produced using the TEA makefile from Memchan: cd memchan2.1/tea ; make CFLAGS=-g install make[2]: Entering directory `/home/blob/tcl.src/lab8.3/memchan2.1/tea' /bin/sh ./mkinstalldirs /home/aku/lab8.3/lib /bin/sh ./mkinstalldirs /home/aku/lab8.3/bin /bin/sh ./mkinstalldirs /home/aku/lab8.3/lib/Memchan /usr/bin/install -c -m 644 libMemchan2.1.a /home/aku/lab8.3/lib/libMemchan2.1.a ranlib /home/aku/lab8.3/bin/libMemchan2.1.a ranlib: /home/aku/lab8.3/bin/libMemchan2.1.a: No such file or directory DesiredBehavior: Well, no errors during installation Patch: See description. PatchFiles: Makefile.in I applied the first change that Andreas describes above (change bindir -> libdir). The fix for the second problem was made by passing the value of SHARED_BUILD from the configure script to the Makefile. I also added the test for the value of SHARED_BUILD to determine if the pkgIndex file should be made or not: if test "x$(SHARED_BUILD)" = "x1"; then $(TCLSH_PROG) mkIndex.tcl; fi The changes have only been made in the CVS repository, but not yet in any official TEA release. -- 02/02/2000 wart
- foundin initialized to: "obsolete: 8.3b2"
- 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: "Sample Extension TEA Makefile bugs"
- type initialized to: "Bug"
Ticket change [c078712a86] (rid 102411) by welch on 2000-10-26 08:34:04:
- closedate changed to: "2000-10-26T01:34:04"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [a5fd60146a] (rid 98523) by dgp on 2001-04-19 11:43:27:
- closedate changed to: "2001-04-19T04:43:27"
- closer changed to: "dgp"
- subsystem changed to: "None"