Newsgroups: comp.os.minix Path: utzoo!utgpu!cunews!bcars8!bnrgate!bcars223!fortinp From: fortinp@bcars223.bnr.ca (Pierre Fortin) Subject: Re: check_crc.c Message-ID: <1990Jun27.215813.21981@bnrgate.bnr.ca> Summary: Have you tried with -DBACKWARD ??? Keywords: Help UNDEFined S_ISDIR Sender: news@bnrgate.bnr.ca (USENET News Administration) Organization: Bell-Northern Research, Ltd. Ottawa Ontario CANADA References: <12601191947006@osu-20.ircc.ohio-state.edu> Date: Wed, 27 Jun 90 21:58:13 GMT In article <12601191947006@osu-20.ircc.ohio-state.edu>, SHARKEY@osu-20.ircc.ohio-state.edu (Scott A. Sharkey) writes: > I've been trying to compile the check_crc.c program that I got off plains.nodak.edu > and keep getting an undefined reference - _S_ISDIR. This is under 1.3. Is > this a 1.5 program? Have you tried compiling it with "cc -DBACKWARD -o check_crc check_crc.c"?? The program contains the following message in the opening comments: * * To compile, first try * cc -o check_crc check_crc.c * if that fails your machine is not MINIX/POSIX compatible so try: * cc -DBACKWARD -o check_crc check_crc.c * > > By the way, a request for those of you making patch kits: PLEASE try > to make them compatible with 1.3 (or whatever the previous release was). > Many of the SHAR's that I got to go from 1.3 to 1.5 won't unpack cleanly > under 1.3 (specifically, the test for size fails). Not all of us have a > big UNIX box to help, you know. -Scott There are also other compatibility issues for any program... To wit: I could compile check_crc.c on a Sun Sparc (but only with -DBACKWARD), but it always crashed with a Bus Error. I eventually tracked this down to a call to sscanf(). I have included my fix for this, along with a code change to make the output line up a little better. This is my own change, and is not an official fix; but if you have been having trouble getting it to work on a Sparc, this should help... Cheers, Pierre Fortin fortinp@bnr.ca begin 664 check_crc.c.cdif M*BHJ(&-H96-K7V-R8RYC+F]R:6<)1G)I($IU;B R,B R,#HT.#HQ-B Q.3DP M"BTM+2!C:&5C:U]C(&-P*0H@( HK('-T871I8R!C M:&%R"71A8G-;72 ](")<;EQT7'1<,"(["2\J('1A8B!B=69F97(@*'-E92!C M;V1E(&)E9F]R92!C:&%N9VEN9RD@*B\*(" *("!M86EN*&%R9V,L(&%R9W8I M"0D)+RH@=&AE(&UA:6X@8F]D>2!O9B!C:&5C:U]C65T("HO"B @(" @(&EN=" )8SL)"0DO*B!C:&%R86-T97(@9F]R('1H92!C MPH@( H@ M( DO*B!06]U(&ET('=O M=6QD(&)E('-I;7!L92 J+PH@( H@(" @(" O*B!&;W(@96%C:"!L:6YE(&EN M('1H92!S8W)I<'0@9&\@+BXN+B J+PHA(" @("!W:&EL92 H9F=E=',H;&EN M92P@3$E.15-)6D4L('-T9&EN*2 A/2!.54Q,*2!["B @"B @"2\J(%!R;V-E MPH@(" @(" @(" @(" @ M('!R:6YT9B@B)7,E2!A(&1I2(I.PH@( D@(" @96QS90HM M+2T@,3@S+#$Y,2 M+2TM"B @"6EF("@A9FEL95]F;W5N9" F)B!A8V-EPHK( D@(" @;E]T86)S(#T@9V5T7W1A8G,H2!A(&1I2(I.PH@( D@(" @96QS90HJ*BHJ M*BHJ*BHJ*BHJ*BH**BHJ(#$Y,2PQ.3@@*BHJ*@H@( H@( DO*B!#86QC=6QA M=&4@=&AE(')E86P@0U)#(&%N9"!T:&4@2P@:70@97AIPH@(" @ M(" @(" @(" @<')I;G1F*"(EPHA(" @(" @(" @(" @<')I;G1F*"(EPH@(" @(" @(" @(" @ M<')I;G1F*"(E