Skip to content
Tcl Source Code History Of Ticket 219034
Login

History Of Ticket 219034

Artifacts Associated With Ticket 219034

  1. Ticket change [b22a84e6f7] (rid 98285) by nobody on 2000-10-26 01:09:41:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. 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
      
      
      
    4. foundin initialized to: "obsolete: 8.3b2"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "69. Other"
    10. title initialized to: "Sample Extension TEA Makefile bugs"
    11. type initialized to: "Bug"
  2. Ticket change [c078712a86] (rid 102411) by welch on 2000-10-26 08:34:04:

    1. closedate changed to: "2000-10-26T01:34:04"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [a5fd60146a] (rid 98523) by dgp on 2001-04-19 11:43:27:

    1. closedate changed to: "2001-04-19T04:43:27"
    2. closer changed to: "dgp"
    3. subsystem changed to: "None"