Artifacts Associated With Ticket 1195139
Ticket change [7fefabc9d2] (rid 97647) by nobody on 2005-05-04 11:28:19:
- assignee initialized to: "mdejong"
- cmimetype initialized to: "text/plain"
- 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.
- foundin initialized to: "obsolete: 8.4.9"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "53. Configuration and Build Tools"
- title initialized to: "NULL undefined in strstr.c"
- type initialized to: "Bug"
Ticket change [ad4700cf39] (rid 101446) by hobbs on 2005-05-30 08:55:47:
- assignee changed to: "kennykb"
Ticket change [4a67eb5504] (rid 126530) by ivan_daniluk on 2005-05-30 12:51:22:
- 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.
- login: "ivan_daniluk"
- mimetype: "text/plain"
- username: "ivan_daniluk"
- icomment:
Ticket change [f4986ca2f1] (rid 129945) by dkf on 2005-05-31 20:23:59:
- 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.
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [1d50fe6e4a] (rid 90781) by kennykb on 2005-05-31 20:26:23:
- resolution changed to: "Duplicate"
Ticket change [6123fd53a6] (rid 92196) by kennykb on 2005-05-31 20:26:24:
- 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.
- login: "kennykb"
- mimetype: "text/plain"
- username: "kennykb"
- icomment:
Ticket change [2a0997b223] (rid 118485) by ivan_daniluk on 2005-05-31 21:13:29:
- 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' ------
- login: "ivan_daniluk"
- mimetype: "text/plain"
- username: "ivan_daniluk"
- icomment:
Ticket change [ad83343f94] (rid 101479) by dkf on 2005-05-31 22:06:51:
- closedate changed to: "2005-05-31T15:06:51"
- closer changed to: "dkf"
- icomment:
Logged In: YES user_id=79902 Dup of bug 1175161 (fixed in HEAD)
- login: "dkf"
- mimetype: "text/plain"
- status changed to: "Closed"
- username: "dkf"
Ticket change [8167f82c75] (rid 117024) by kennykb on 2005-05-31 22:17:19:
- 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?
- login: "kennykb"
- mimetype: "text/plain"
- resolution changed to: "None"
- status changed to: "Open"
- username: "kennykb"
- icomment:
Ticket change [e2460887a9] (rid 87594) by kennykb on 2005-11-05 02:42:22:
- 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.
- login: "kennykb"
- mimetype: "text/plain"
- resolution changed to: "Invalid"
- status changed to: "Closed"
- username: "kennykb"
- icomment:
Ticket change [f9304985ed] (rid 91662) by kennykb on 2005-11-05 02:42:23:
- closedate changed to: "2005-11-04T19:42:23"
- closer changed to: "kennykb"