Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2026-10-22
17:19 • Ticket [1786647fff] wrong variables in compat/memcmp.c status still Closed w... artifact: 6adf60a9aa user: serhiy.storchaka
2026-10-21
10:03 • Closed ticket [1786647fff]. artifact: 3b60999519 user: serhiy.storchaka
2007-09-07
03:18 • Ticket [1786647fff]: 6 changes artifact: 7c50303b2f user: dkf
2007-09-06
08:56 • Ticket [1786647fff]: 4 changes artifact: 997f94e066 user: jenglish
2007-09-03
23:11 • Ticket [1786647fff]: 5 changes artifact: 9292620685 user: msofer
22:25 • Ticket [1786647fff]: 4 changes artifact: 48972d66f5 user: nobody
02:46 • Ticket [1786647fff]: 2 changes artifact: 7068f3a5c4 user: dkf
2007-09-02
21:54 • Ticket [1786647fff]: 6 changes artifact: 795b488fbd user: msofer
21:53 • Ticket [1786647fff]: 3 changes artifact: 0bf6a02803 user: dkf
21:42 • Ticket [1786647fff]: 6 changes artifact: 6c094b5b08 user: msofer
21:19 • Add attachment memcmp-tcl.patch to ticket [1786647fff] artifact: 64197277fa user: mladenk
21:19 • Ticket [1786647fff] wrong variables in memcmp.c status still Open with 4 oth... artifact: ab674b7c7b user: mladenk
14:19 • New ticket [1786647fff]. artifact: 98c29fdceb user: mladenk

wrong variables in compat/memcmp.c

Closed / Fixed1786647fffffffffffffffffffffffffffffffffCreated 19 years agoUpdated 41 days ago
Descriptionplain2007-09-02 14:19:51
Unable to compile memcmp.c
i looked in source and i think that used
variables are wrong.
mladenkplain2007-09-02 21:19:51
File Added - 243911: memcmp-tcl.patch
msoferplain2007-09-02 21:42:49
data_type - 110894
dkf Ticket [1786647fff]: 3 changes [History diff]2007-09-02 21:53:16
msoferplain2007-09-02 21:54:48
Logged In: YES 
user_id=148712
Originator: NO

Could you please explain what "unable to compile" means? What platform are you on?
dkf Ticket [1786647fff]: 2 changes [History diff]2007-09-03 02:46:41
[email protected]plain2007-09-03 22:25:27
Logged In: NO 

I have Fedora 7 with gcc-4.1.2-12 and was trying to compile LFS.
Something went wrong and i opened compat/memcmp.c to see what.
Can you just look at the code i think it is trivial.

Thanks Mladen
msoferplain2007-09-03 23:11:58
Logged In: YES 
user_id=148712
Originator: NO

This is a duplicate of bug #1631017, which is reported as fixed in both HEAD and 8.4. The files on HEAD and core-8-4-branch differ: is there a reason for that?

Assigning to dkf as he reported this fixed.
jenglishplain2007-09-06 08:56:38
Logged In: YES 
user_id=68433
Originator: NO

From comments in #1631017:

| The real bug is that compat/memcmp.c is being used in the first place -
| if the build system is trying to use this file at all, it indicates that
| the configure script has failed to detect a working C compiler.

Other reports indicate that this happens when trying to cross-compile.
One proposed solution is to use AC_TRY_LINK instead of AC_TRY_RUN.
(sorry, reference not handy, I just vaguely remember reading this somewhere).
dkfplain2007-09-07 03:18:37
Logged In: YES 
user_id=79902
Originator: NO

Fixed the obvious fault in compat/memcmp.c; I won't try to think about the bugs relating to why that file exists or is used.
serhiy.storchakawiki2026-10-21 10:03:36

Fixed by [ec5ad54498] (8.4.16); compat/memcmp.c no longer exists in Tcl 9.

serhiy.storchaka Ticket [1786647fff]: 3 changes [History diff]2026-10-22 17:19:29
Log in (anonymous is fine) to add a comment.

Attachments: