Skip to content
Tcl Source Code History Of Ticket 1195139fffffffffffffffffffffffffffffffff
Login

History Of Ticket 1195139fffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 1195139fffffffffffffffffffffffffffffffff

  1. Ticket change [7fefabc9d2] (rid 97647) by nobody on 2005-05-04 11:28:19:

    1. assignee initialized to: "mdejong"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      The function strstr() in compat/strstr.c uses NULL as a 
      return value but NULL is not defined, neither locally nor 
      by inclusion of an appropriate header file.
      I discovered this when cross-compiling the latest 
      tcl8.4.9 source code on a Linux x86 platform targetting 
      an embedded PowerPC 60x running Linux. The 
      configure script correctly detected that the strstr() 
      function needed to be build for this platform, but the 
      subsequent compilation failed because of the undefined 
      NULL. Fixing is trivial.
      
      
    4. foundin initialized to: "obsolete: 8.4.9"
    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: "53. Configuration and Build Tools"
    10. title initialized to: "NULL undefined in strstr.c"
    11. type initialized to: "Bug"
  2. Ticket change [ad4700cf39] (rid 101446) by hobbs on 2005-05-30 08:55:47:

    1. assignee changed to: "kennykb"
  3. Ticket change [4a67eb5504] (rid 126530) by ivan_daniluk on 2005-05-30 12:51:22:

    1. icomment:
      Logged In: YES 
      user_id=902311
      
      I've got the same when crosscompiling tcl8.4.9 on x86 with
      uClibc.
      Just added "#include <unistd.h>" to compat/strstr.h.
      
      
    2. login: "ivan_daniluk"
    3. mimetype: "text/plain"
    4. username: "ivan_daniluk"
  4. Ticket change [f4986ca2f1] (rid 129945) by dkf on 2005-05-31 20:23:59:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      Is this relating to Linux From Scratch? Apparently there are
      problems elsewhere in the toolchain that are causing
      troubles here; this is the subject of current issue reports
      elsewhere (LFS bugzilla?) and is not actually the result of
      real bugs in Tcl we believe.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  5. Ticket change [1d50fe6e4a] (rid 90781) by kennykb on 2005-05-31 20:26:23:

    1. resolution changed to: "Duplicate"
  6. Ticket change [6123fd53a6] (rid 92196) by kennykb on 2005-05-31 20:26:24:

    1. icomment:
      Logged In: YES 
      user_id=99768
      
      I am seriously contemplating removing compat/strstr.c entirely.
      
      This problem is indicative of a broken toolchain. No
      compiler that supports the basic ISO C89 functionality
      requires compat/strstr.c - the configurator has incorrectly
      detected the need for it because either a compilation step
      is failing entirely or else it is totally unable to link with
      the standard library.
      
      This module always appears to be the "lightning rod"
      for this problem - which, as I understand it, is reported
      earlier in "configure" - can you please check from
      "make distclean" and report back with what error
      messages came out of the "configure" step?
      
      By the way, most people reporting this problem are
      running afoul of an error in the instructions for
      Linux From Scratch.  The Tcl core team is working with
      the Linux From Scratch developers to resolve
      the issue. See
      http://aspn.activestate.com/ASPN/Mail/Message/tcl-core/2595523
      for further details.
      
      
    2. login: "kennykb"
    3. mimetype: "text/plain"
    4. username: "kennykb"
  7. Ticket change [2a0997b223] (rid 118485) by ivan_daniluk on 2005-05-31 21:13:29:

    1. icomment:
      Logged In: YES 
      user_id=902311
      
      2 dkf:
      I has been crosscompile tcl with toolchain, builded by
      buildroot(http://buildroot.uclibc.org), it has very strict
      makefiles standart.
      Many other packages build perfectly.
      
      2 kennykb:
      There were no error by configure, just warning:
      --- from config.log ---
      configure:4174: checking for strstr
      configure:4202:
      /home/divan/builddir/buildroot/build_i386/staging_dir/bin/i386-linux-uclibc-gcc
      -pipe -o conftest -Os -pipe -march=pentium3   
      -Wl,--export-dynamic conftest.c  1>&5
      configure:4186: warning: conflicting types for built-in
      function 'strstr'
      ------
      
      
      
    2. login: "ivan_daniluk"
    3. mimetype: "text/plain"
    4. username: "ivan_daniluk"
  8. Ticket change [ad83343f94] (rid 101479) by dkf on 2005-05-31 22:06:51:

    1. closedate changed to: "2005-05-31T15:06:51"
    2. closer changed to: "dkf"
    3. icomment:
      Logged In: YES 
      user_id=79902
      
      Dup of bug 1175161 (fixed in HEAD)
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. status changed to: "Closed"
    7. username: "dkf"
  9. Ticket change [8167f82c75] (rid 117024) by kennykb on 2005-05-31 22:17:19:

    1. icomment:
      Logged In: YES 
      user_id=99768
      
      Donal, let's not close this one just yet.
      
      It appears that we have a couple of problems with the
      configurator here.
      
      First, cross-compiles are universally detected as "broken".
      This causes a conflict because compat/strtod.c and
      compat/fixstrtod.c will both be included, and they're
      incompatible.
      
      Second, there's an apparent issue where unix/configure is
      including  system headers in the AC_TRY_RUN, and the
      declaration of strstr at line 219 of unix/configure.in
      causes a type conflict (and potential failure).  I still
      contend that the best fix for this problem is to take it out
      entirely - what compiler lacks strstr nowadays?
      
      
    2. login: "kennykb"
    3. mimetype: "text/plain"
    4. resolution changed to: "None"
    5. status changed to: "Open"
    6. username: "kennykb"
  10. Ticket change [e2460887a9] (rid 87594) by kennykb on 2005-11-05 02:42:22:

    1. icomment:
      Logged In: YES 
      user_id=99768
      
      Since the underlying problem was a broken toolchain in LFS,
      I'm closing out this incident.  No functioning toolchain
      encounters
      this error.
      
      
    2. login: "kennykb"
    3. mimetype: "text/plain"
    4. resolution changed to: "Invalid"
    5. status changed to: "Closed"
    6. username: "kennykb"
  11. Ticket change [f9304985ed] (rid 91662) by kennykb on 2005-11-05 02:42:23:

    1. closedate changed to: "2005-11-04T19:42:23"
    2. closer changed to: "kennykb"