🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #795

tar-1.11 and AIX 3.2

#795
From: J.T. Conklin
Date: Thu, 10 Sep 1992 11:35
51 lines
1702 bytes
Fixed in enclosed patch:
1. Both <sys/time.h> and <time.h> need to be included for getdate.y

2. rindex and index are defined in <string.h>, so #undef them before
   redefining them.

Not fixed in patch:
1. complains about number of arguments of macro rindex()

2. won't link with provided malloc -- unresolved symbol etext --
   works with system malloc.

*** OLD/getdate.y	Thu Sep 10 17:40:56 1992
--- getdate.y	Thu Sep 10 17:44:26 1992
***************
*** 50,59 ****
--- 50,65 ----
  #else
  #include <sys/timeb.h>
  #endif	/* defined(USG) && !defined(HAVE_FTIME) */
+
  #if	defined(BSD4_2) || defined(BSD4_1C)
  #include <sys/time.h>
  #else
+ #if	defined(_AIX)
+ #include <sys/time.h>
  #include <time.h>
+ #else
+ #include <time.h>
+ #endif	/* defined(_AIX) */
  #endif	/* defined(BSD4_2) */
  #endif	/* defined(vms) */

*** OLD/port.h	Thu Sep 10 17:45:34 1992
--- port.h	Thu Sep 10 17:46:37 1992
***************
*** 98,104 ****
--- 98,110 ----
  #if !defined(__MSDOS__) && !defined(STDC_HEADERS)
  #include <memory.h>
  #endif
+ #ifdef index
+ #undef index
+ #endif
  #define index strchr
+ #ifdef rindex
+ #undef rindex
+ #endif
  #define rindex strrchr
  #define bcopy(s, d, n) memcpy(d, s, n)
  #define bzero(s, n) memset(s, 0, n)
Technical Details
Message-ID: <9209110135.AA24614@rangoon.gain.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!gain.COM!jtc

Show Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!gain.COM!jtc
From: jtc@gain.COM (J.T. Conklin)
Subject: tar-1.11 and AIX 3.2
Message-ID: <9209110135.AA24614@rangoon.gain.com>
Sender: gnulists@ai.mit.edu
Reply-To: jtc@gain.com
Organization: GAIN Technology Inc., Palo Alto, CA
Distribution: gnu
Date: Thu, 10 Sep 1992 11:35:45 GMT
Approved: bug-gnu-utils@prep.ai.mit.edu
Lines: 52