Skip to content
Tcl Source Code Artifact [28e47dc00a]
Login

Artifact [28e47dc00a]

Artifact 28e47dc00a17df618a8e1899a035e0a420a75690:

Ticket change [28e47dc00a] - New ticket [904228ffffffffff|904228ffff] <i>Problems with compatibility routines on HP/UX with aCC</i>. by vbwagner on 2004-02-25 13:49:56.
D 2004-02-25T13:49:56
J assignee mdejong
J cmimetype text/plain
J comment When\scompiling\stcl\s8.4.5\son\sHP/UX\s\sB.11.11\sU\s9000/800\n1139019648\susing\sHP\sANSI\sC++\sB3910B\sA.03.33\n\nfiles\scompat/strstr.c\sand\scompat/memcmp.c\sdo\snot\scompile.\n\nConfigure\sscript\swas\srun\swith\soptions:\nCC=aCC\sCFLAGS=-Ae\s./configure\n\n(-Ae\soption\sis\srequired\sto\smake\sthis\scompiler\saccept\nplain\sC)\n\nstrstr.c\sis\sfailed\sbecause\sNULL\sis\sundeclared.\sIt\scan\sbe\neasily\sfixed\sincluding\s<stdlib.h>.\n\nWith\smemcmp.c\ssituation\sis\smore\sdifficult.\sIt\sis\nundetstadable\nthat\scompiler\sdoesn't\slike\sto\sincrement\svoid*\spointers,\nbut\scasting\sthem\sinto\schar\s*\sresulted\sin\svery\sstrange\serror\n\nError\s167:\s"./../compat/memcmp.c",\sline\s51\s#\sArithmetic\nor\spointer\stype\n\s\s\s\sexpected\sfor\soperator\s'++';\stype\sfound\swas\n'unsigned\schar\s*'.\n\s\s\s\s\s\s\s\sfor\s(\s;\sn--\s;\s((unsigned\schar\s*)s1)++,\n((unsigned\schar\s*)s2)++)\s{\n\n\nI've\ssolved\sproblem\sby\sadding\stwo\stemporary\svariables\nof\stype\nunsigned\schar\s*.\n\nAfter\sthat\stcl\scompiles\sand\sseems\sto\swork.
J foundin obsolete:\s8.4.5
J priority 3\sLow
J resolution None
J status Open
J submitter vbwagner
J subsystem 52.\sPortability\sSupport
J title Problems\swith\scompatibility\sroutines\son\sHP/UX\swith\saCC
J type Bug
K 904228ffffffffffffffffffffffffffffffffff
U vbwagner
Z 90a409183b2358a481ae1ed708ca82ff