.
D 2001-08-01T00:41:14
J assignee nobody
J cmimetype text/plain
J comment The\sfollowing\scompiler\swarnings\sappear\son\sFreeBSD\s2.2.x\nwith\sgcc\s2.7.2.1:\n\n./../unix/tclLoadAout.c:\sIn\sfunction\s`TclpLoadFile':\n./../unix/tclLoadAout.c:227:\swarning:\simplicit\ndeclaration\sof\sfunction\s`read'\n./../unix/tclLoadAout.c:284:\swarning:\simplicit\ndeclaration\sof\sfunction\s`unlink'\n./../unix/tclLoadAout.c:290:\swarning:\simplicit\ndeclaration\sof\sfunction\s`close'\n./../unix/tclLoadAout.c:\sIn\sfunction\s`FindLibraries':\n./../unix/tclLoadAout.c:334:\swarning:\s`c'\smight\sbe\sused\nuninitialized\sin\sthis\sfunction\n./../unix/tclLoadAout.c:\sIn\sfunction\n`TclGuessPackageName':\n./../unix/tclLoadAout.c:475:\swarning:\ssuggest\nparentheses\saround\sassignment\sused\sas\struth\svalue\n./../unix/tclLoadAout.c:473:\swarning:\sunused\svariable\n`dstOff'\n./../unix/tclLoadAout.c:473:\swarning:\sunused\svariable\n`srcOff'\n\nAfter\sincluding\sunistd.h,\sthe\sfollowing\sadditional\nproblems\sappear:\n\n./../unix/tclLoadAout.c:77:\sconflicting\stypes\sfor\s`brk'\n/usr/include/unistd.h:107:\sprevious\sdeclaration\sof\n`brk'\n./../unix/tclLoadAout.c:78:\sconflicting\stypes\sfor\n`sbrk'\n/usr/include/unistd.h:155:\sprevious\sdeclaration\sof\n`sbrk'\n***\sError\scode\s1\n\nHere\sare\sthe\spatches\sto\sget\sit\sto\scompile\scleanly:\n\n---\stcl.m4.old\s\sTue\sJul\s31\s14:36:29\s2001\n+++\stcl.m4\s\s\s\s\s\sTue\sJul\s31\s16:43:08\s2001\n@@\s-1208,6\s+1208,14\s@@\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sfi\n\s\s\s\s\s\s\s\s\s\s\s\sfi\n\s\s\s\s\s\s\s\sfi\n+\n+\s\s\s\s\s\s\sAC_MSG_CHECKING(for\sbrk\sdeclaration\sin\nunistd.h)\n+\s\s\s\s\s\s\sAC_EGREP_HEADER(brk,\sunistd.h,\s[\n+\s\s\s\s\s\s\s\s\s\s\sAC_DEFINE(BRK_DECLARED)\n+\s\s\s\s\s\s\s\s\s\s\sAC_MSG_RESULT(yes)\n+\s\s\s\s\s\s\s],\s[\n+\s\s\s\s\s\s\s\s\s\s\sAC_MSG_RESULT(no)\n+\s\s\s\s\s\s\s])\n\s\s\s\s\sfi\n\s\n\s\s\s\s\s#\sStep\s5:\sdisable\sdynamic\sloading\sif\srequested\svia\na\scommand-line\sswitch.\n\n---\stclLoadAout.c.old\s\s\sTue\sJul\s31\s14:36:49\s2001\n+++\stclLoadAout.c\s\s\s\s\s\s\sTue\sJul\s31\s16:44:17\s2001\n@@\s-19,6\s+19,11\s@@\n\s\n\s#include\s"tclInt.h"\n\s#include\s<fcntl.h>\n+#ifdef\sHAVE_UNISTD_H\n+#\s\s\sinclude\s<unistd.h>\n+#else\n+#\s\s\sinclude\s"../compat/unistd.h"\n+#endif\n\s#ifdef\sHAVE_EXEC_AOUT_H\n\s#\s\s\sinclude\s<sys/exec_aout.h>\n\s#endif\n@@\s-69,8\s+74,10\s@@\n\s\s*\sKernel\scalls\sthat\sappear\sto\sbe\smissing\sfrom\sthe\nsystem\s.h\sfiles:\n\s\s*/\n\s\n+#ifndef\sBRK_DECLARED\n\sextern\schar\s*\sbrk\s_ANSI_ARGS_((char\s*));\n\sextern\schar\s*\ssbrk\s_ANSI_ARGS_((size_t));\n+#endif\n\s\n\s/*\n\s\s*\sThe\sstatic\svariable\sSymbolTableFile\scontains\sthe\nfile\sname\swhere\sthe\n@@\s-331,7\s+338,7\s@@\n\s\s\s\s\s\sTcl_DString\s*\sbuf;\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s/*\sBuffer\swhere\nthe\s-l\san\s-L\sflags\s*/\n\s{\n\s\s\sFILE\s*\sf;\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s/*\sThe\sload\smodule\s*/\n-\s\sint\sc;\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s/*\sByte\sfrom\sthe\sload\nmodule\s*/\n+\s\sint\sc\s=\s0;\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s/*\sByte\sfrom\sthe\sload\nmodule\s*/\n\s\s\schar\s*\sp;\n\s\s\sTcl_DString\sds;\n\s\s\sCONST\schar\s*native;\n@@\s-470,9\s+477,8\s@@\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s*\spackage\sname\sto\sthis\nif\spossible.\s*/\n\s{\n\s\s\s\s\schar\s*p,\s*q,\s*r;\n-\s\s\s\sint\ssrcOff,\sdstOff;\n\s\n-\s\s\s\sif\s(q\s=\sstrrchr(fileName,'/'))\s{\n+\s\s\s\sif\s((q\s=\sstrrchr(fileName,'/')))\s{\n\s\s\s\s\s\s\s\sq++;\n\s\s\s\s\s}\selse\s{\n\s\s\s\s\s\s\s\sq\s=\sfileName;\n
J foundin obsolete:\s8.3.3
J priority 5\sMedium
J resolution None
J status Open
J submitter lloydlim
J subsystem 52.\sPortability\sSupport
J title gcc\swarnings\son\sFreeBSD\s2.x
J type Bug
K 446622ffffffffffffffffffffffffffffffffff
U lloydlim
Z 8e997107e1640e7b7976a2e190367611