.
D 2017-11-17T21:19:51.244
J assignee nobody
J closer nobody
J cmimetype text/plain
J comment After\scheck-in\s49ecc78c8b\stclUnixPort.h\scontains\sthe\sfollowing\r\n\r\n#include\s<float.h>\r\n#ifndef\sNO_VALUES_H\r\n#\s\s\sinclude\s<values.h>\r\n#endif\r\n\r\nThe\sMacintosh\sdoes\snot\shave\svalues.h.\s\sSomehow\sthis\sis\sdetected\sby\sthe\sTcl\r\nconfigure\sscript,\scausing\s-DNO_VALUES_H\sto\sbe\sadded\sto\sCFLAGS.\s\sWith\sthis,\sthe\r\ncore-8-branch\sof\sTcl\sbuilds\scorrectly.\s\sHowever,\sthe\strunk\sbranch\sof\sTk\snow\r\nfails\sto\sbuild.\r\n\r\nThere\sare\stwo\sparts\sto\sthis\sfailure.\r\n\r\n1)\sThe\sMac\sport\sof\sTk\suses\sthe\sunix/configure\sscript\swhich\seither\sdoes\r\nnot\scheck\sfor\svalues.h\sor\sperhaps\swas\sbuilt\son\sa\sunix\ssystem\sthat\sdoes\shave\r\nvalues.h.\s\s(There\sis\sno\sautoconf\sin\sthe\sXCode\stoolchain.)\sIn\sany\scase,\r\n-DNO_VALUES_H\sdoes\snot\sget\sadded\sto\sthe\sCFLAGS\swhen\sbuilding\sTk.\r\n\r\n2)\sBecause\sTkMacOSXNotify.c\sneeds\sto\suse\sa\sstub\sfunction\sdefined\sin\r\nTclMacOSXNotify.c,\sit\sincludes\stclInt.h\swhich\sin\sturn\sincludes\stclUnixPort.h.\r\nBecause\sof\sthe\scode\sabove,\sthis\sinclude\sfails\ssince\sNO_VALUES_H\sis\snot\r\ndefined\sand\svalues.h\sdoes\snot\sexist.\r\n\r\nWhen\sI\slook\sat\svalues.h\son\smy\slinux\ssystem\sI\sfind\sthis\scomment:\r\n\r\n/*\sThis\sinterface\sis\sobsolete.\s\sNew\sprograms\sshould\suse\r\n\s\s\s<limits.h>\sand/or\s<float.h>\sinstead\sof\s<values.h>.\s\s*/\r\n\r\nSo\sit\swould\sseem\sto\sme\sthat,\sin\saddition\sto\sgetting\srid\sof\scompat/float.h\r\nTcl\sshould\sget\srid\sof\sall\sreferences\sto\svalues.h.\s\sThere\sis\sno\sissue\swith\r\nlimits.h.\s\sBoth\sTcl\sand\sTk\sinclude\slimits.h\son\sthe\smacintosh\sand\son\sunix\r\nsystems.\s\sMoreover\sthe\sfirst\sof\sthe\sfour\slines\sabove\swould\ssuffice,\saccording\r\nto\sthe\scomment.\s\sIf\sthe\sother\sthree\slines\sare\sremoved\sthen\sI\shave\sverfied\sthat\r\nboth\sTcl\sand\sTk\sbuild\scorrectly\son\sthe\sMacintosh.\s\sWith\sthose\sthree\slines\r\ngone,\sthe\svarious\sreferences\sto\sNO_VALUES_H\sin\sthe\sconfiguration\scode\scould\r\nalso\sbe\sremoved.\s\sThere\sis\sexactly\sone\splace\swhere\sNO_VALUES_H\sis\sused\sin\sa\r\nheader\sfile\sand\sthat\splace\swould\shave\sbeen\sremoved.\r\n\r\nWhile\sit\swould\sbe\spossible\sto\sfix\sthe\sTk\sbuild\sby\sdefining\sNO_VALUES_H\sin,\r\nsay,\sTkMacOSXPrivate.h\sit\sseems\scleaner\sto\sjust\sget\srid\sof\sall\sreferences\r\nto\svalues.h\ssince\sit\sis\sobsolete\sfor\sunix\sand\smissing\son\smacOS.\r\n\r\n-\sMarc\sCuller
J foundin 8.7
J is_private 0
J login anonymous
J priority 5\sMedium
J private_contact 4a267845b96d18ced148980dad8c23b791785018
J resolution None
J severity Critical
J status Open
J submitter anonymous
J subsystem 53.\sConfiguration\sand\sBuild\sTools
J title Use\sof\svalues.h\sbreaks\sbuild\sof\sTk\strunk\son\smacOS
J type Bug
K e058307eef73cf21cf6805ad7c778e1024f9eb7d
U anonymous
Z 7cc45efae6cea904e8d3ec2f86326e21