home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / aix / 12689 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  2.7 KB

  1. Path: sparky!uunet!hela.iti.org!cs.widener.edu!cs.widener.edu!usenet
  2. From: YOUNG@tattoo.cs.widener.edu (Rob Young)
  3. Newsgroups: comp.unix.aix
  4. Subject: Re: zoo on AIX?
  5. Date: 18 Dec 1992 17:11:51 GMT
  6. Organization: Widener News/Mail Gateway
  7. Lines: 68
  8. Distribution: world
  9. Message-ID: <1gt0onINNk34@cs.widener.edu>
  10. References: <Bz1v5s.9HB@ucunix.san.uc.edu> <1992Dec18.141300.8025@sdz01.uu.ch>
  11. NNTP-Posting-Host: tattoo.cs.widener.edu
  12. X-News-Reader: VMS NEWS 1.20
  13. In-Reply-To: brocher@sdz01's message of Fri, 18 Dec 1992 14:13:00 GMT
  14.  
  15. In <1992Dec18.141300.8025@sdz01.uu.ch> brocher@sdz01 writes:
  16.  
  17. > In article <Bz1v5s.9HB@ucunix.san.uc.edu> pollack@ucunix.san.uc.edu (Steven Pollack) writes:
  18. > >
  19. > >Has anyone successfully ported the zoo archiving to AIX?
  20. > >
  21. > I have zoo version 2.10 running.  I had to change all occurrences of
  22. > ulong, uint, ushort, uchar to Ulong, Uint, Ushort, Uchar respectively
  23. > (I don't know why, but AIX didn't like the lowercase versions...).
  24. > After applying the patches at the end of this message I compiled it with
  25. > "make sysv".
  26. > BTW I'm running AIX 3.2.
  27. > Hope it helps.
  28. > Dominic Brocher
  29.  
  30.  
  31. I had posted to this group around Nov. 23 with the same question and posted
  32. the follow-up below.  This works.
  33.  
  34.                     Rob
  35.  
  36.  
  37. These are the changes I used to get Zoo version 2.10 going under AIX version 
  38. 3.2 something.  Your mileage may vary.
  39.  
  40. 1) Change uchar to Uchar
  41.  
  42. Changing uchar to Uchar in all of the zoo source fixed a fatal up.  Also,
  43. was recommended to change ushort -> Ushort, uint -> Uint, ulong -> Ulong.
  44. Maybe all that needed to be done was take the "typedef unsigned char uchar"
  45. out of the zoo source.  AIX defines a uchar, what is this about?
  46.  
  47. $ grep -n uchar /usr/include/sys/types.h
  48. 89:typedef      unsigned char   uchar_t;
  49. 155:typedef     uchar_t         uchar;
  50.  
  51.  
  52. 2) Add _BSD_INCLUDES to the aix target
  53.  
  54. It errored out when compiling machine.c (around line 33 in nixtime.i actually)
  55. because it didn't know about the tm struc in time.h.  The _BSD_INCLUDES is 
  56. necessary so the time.h in /usr/include/sys picks up the time.h in 
  57. /usr/include.  Any one care to comment about this? 
  58.  
  59.  
  60. 3) Put an aix target in the makefile
  61.  
  62. aix:
  63.   $(MAKE) CFLAGS="-c $(OPTIM) -DBSD4_3 -D_BSD_INCLUDES -DANSI_HDRS" $(TARGETS)
  64.  
  65.  
  66.     Thanks to Peter Castro who gave me the aix target for the makefile
  67.     sans the _BSD_INCLUDES (how did you Peter, get it past machine.c?)
  68.  
  69.     Also thanks to Dominic Brocher who gave me a method to get around the
  70.     uchar problem.
  71.  
  72.             Rob
  73.  
  74.  
  75.  
  76.                                                      young@tattoo.cs.widener.edu
  77. "The human understanding is like a false mirror, which, receiving rays 
  78.   irregularly, distorts and discolors the nature of things by mingling its own
  79.    nature with it."      --Bacon                     
  80.