|
2007-02-24
| ||
| 10:20 | • Closed ticket [904228ffff]: Problems with compatibility routines on HP/UX with a... artifact: 624325b089 user: sf-robot | |
|
2007-02-10
| ||
| 01:44 | • Pending ticket [904228ffff]. artifact: f2ac1eae19 user: hobbs | |
|
2004-02-25
| ||
| 23:12 | • Ticket [904228ffff]: 4 changes artifact: 559e31de5e user: dgp | |
| 13:49 | • New ticket [904228ffff]. artifact: 28e47dc00a user: vbwagner | |
Problems with compatibility routines on HP/UX with aCC
Closed / Out of Date904228ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 20 years ago
Descriptionplain2004-02-25 13:49:56
When compiling tcl 8.4.5 on HP/UX B.11.11 U 9000/800
1139019648 using HP ANSI C++ B3910B A.03.33
files compat/strstr.c and compat/memcmp.c do not compile.
Configure script was run with options:
CC=aCC CFLAGS=-Ae ./configure
(-Ae option is required to make this compiler accept
plain C)
strstr.c is failed because NULL is undeclared. It can be
easily fixed including <stdlib.h>.
With memcmp.c situation is more difficult. It is
undetstadable
that compiler doesn't like to increment void* pointers,
but casting them into char * resulted in very strange error
Error 167: "./../compat/memcmp.c", line 51 # Arithmetic
or pointer type
expected for operator '++'; type found was
'unsigned char *'.
for ( ; n-- ; ((unsigned char *)s1)++,
((unsigned char *)s2)++) {
I've solved problem by adding two temporary variables
of type
unsigned char *.
After that tcl compiles and seems to work.
dgpplain2004-02-25 23:12:04
Logged In: YES user_id=80530 aCC is a C++ compiler, right? Is there a corresponding C compiler you might try instead?
hobbs Pending ticket [904228ffff].
[History diff]2007-02-10 01:44:33
sf-robotplain2007-02-24 10:20:11
Logged In: YES user_id=1312539 Originator: NO This Tracker item was closed automatically by the system. It was previously set to a Pending status, and the original submitter did not respond within 14 days (the time period specified by the administrator of this Tracker).
Log in (anonymous is fine) to add a comment.