Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

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

  1. assignee changed to: "mdejong"
  2. cmimetype changed to: "text/plain"
  3. 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.
    
  4. foundin changed to: "obsolete: 8.4.5"
  5. priority changed to: "3 Low"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "vbwagner"
  9. subsystem changed to: "52. Portability Support"
  10. title changed to:
    Problems with compatibility routines on HP/UX with aCC
    
  11. type changed to: "Bug"