Overview
| Artifact ID: | 28e47dc00a17df618a8e1899a035e0a420a75690 |
|---|---|
| Ticket: | 904228ffffffffffffffffffffffffffffffffff
Problems with compatibility routines on HP/UX with aCC |
| User & Date: | vbwagner on 2004-02-25 13:49:56 |
Changes
- assignee changed to: "mdejong"
- cmimetype changed to: "text/plain"
- comment changed to:
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. - foundin changed to: "obsolete: 8.4.5"
- priority changed to: "3 Low"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "vbwagner"
- subsystem changed to: "52. Portability Support"
- title changed to:
Problems with compatibility routines on HP/UX with aCC
- type changed to: "Bug"