]> git.sur5r.net Git - bacula/bacula/blob - bacula/README.AIX
baculum: Remove unused api endpoints
[bacula/bacula] / bacula / README.AIX
1
2 Here are a few tips from James MacLean on
3 making Bacula work on an AIX system -- 15 Mar 2003:
4
5 Hi Folks,
6
7 I expect that an AIX with all the latest patches and a proper gcc will
8 compile. It is a boring story as Kern knows :), but here are the
9 highlights todate.
10
11 I have had success with :
12
13 /usr/local/bin/gcc -v
14 Reading specs from /usr/local/lib/gcc-lib/powerpc-ibm-aix4.1.5.0/egcs-2.91.60/specs
15 gcc version egcs-2.91.60 19981201 (egcs-1.1.1 release)
16
17 Which was installed from www-frec.bull.com. But with that release, it 
18 collides with sys/types.h from AIX and I had to redefine on my own in 
19 src/bacula.h :
20
21 typedef int            crid_t;
22 typedef int            __daddr_t;
23 typedef unsigned int class_id_t;
24
25 With that I have had all parts of bacula running and did backups and a 
26 restore fine. 
27
28 So I then went to IBM's own (current) gcc :
29
30 /opt/freeware/GNUPro/bin/gcc -v
31 Reading specs from /opt/freeware/GNUPro/lib/gcc-lib/powerpc-ibm-aix4.3.3.0/2.9-aix51-020209/specs
32 gcc version 2.9-aix51-020209
33
34 from http://www-1.ibm.com/servers/aix/products/aixos/linux/download.html
35
36 And found that it was not creating libbac.a correctly. Since then I've 
37 been trying to compile my own gcc only to find out last night after I 
38 broke down and looked at the GCC docs that there was a known bug in the 
39 AIX "as" compiler, for which there was a patch, and I have since applied. 
40
41 So now I am trying again to compile my own gcc, so that I can then try to 
42 compile Bacula and be comfortable that all is well with the latest Bacula 
43 and GCC.
44
45 We are at AIX oslevel 4.3.3.0, so even though we brought it right up to
46 date 150 days ago, there is already 250Megs of patches for it :(. So there 
47 may be more to this story :).
48
49 Bottom line is, yes it does work :), but because of our intstallation 
50 here, your setup might need to be tweaked to compile it... Then again it 
51 may not :).
52
53 How's that for a confusing Saturday story ;).
54
55 take care,
56 JES