Alberto Ernestini <a.ernestini <at>
gmail.com> writes:
>
> Compile goes, then i get this error :
>
>
> ==>Entering directory /home11/xx/bareos-master/src/findlib
> Compiling acl.c
> acl.c: In function 'bacl_exit_code aix_parse_acl_streams(JCR*,
acl_data_t*, int, char*, u_int32_t)':
>
> acl.c:401: error: cannot convert 'POOLMEM*' to 'acl_data_t*' for argument
'2' to 'bool aix_query_acl_support(JCR*, acl_data_t*, u_int64_t, acl_type_t*)'
> acl.c:409: error: invalid conversion from 'long long unsigned int' to
'acl_data_t*'
>
> acl.c:409: error: invalid conversion from 'acl_type_t*' to 'u_int64_t'
> acl.c:357: error: too few arguments to function 'bool
aix_query_acl_support(JCR*, acl_data_t*, u_int64_t, acl_type_t*)'
>
> acl.c:409: error: at this point in file
> make: 1254-004 The error code from the last command is 1.
>
>
> Stop.
It seems I have made some typos while converting the acl code to
be able to use it from every program by adding it to findlib, as this
code is only compiled on AIX I never got a chance to test it.
I committed a patch last night that should fix it. Just pull
the new master code and retry. If you run into other problems
you can send me an private email so I can look into it and fix it.
Its good to see that configure now seems to behave similar on
Bacula and Bareos and you even get acl and xattr enabled now by default.
I still see you don't get plugins etc but that is probably because
you disable libtool. I would leave it enabled as I think both shared
libs and plugins is something you want.
We hope to have access to a AIX 7 machine ourself soon so then I can
compile things myself and fix any other problems that may exist with
Bareos on AIX.
> Going much deeper i've discovered i've used xlC ( the IBM C compiler )
than the gcc and looks that if i try to use the xlC compiler for bareos the
make does NOT starts... :
>
> net-js20#make
> ==>Entering directory /home11/xx/bareos-master/srcTarget "all" is up to
date.==>Entering directory /home11/xx/bareos-master/scriptsTarget "all" is
up to date.==>Entering directory /home11/xx/bareos-master/src/lib
Error in /home11/xx/bareos-master/src/lib ======make: 1254-004 The error
code from the last command is 1.
> Stop.
>
> I am sure that there is a chance to compile it with gcc, but currently i
am stuck on it.
>
The above looks strange it looks like it using the C-compiler not the
C++-compiler as its barfing on some C++ constructs. I think most of the
things it complains about are one on one copies from Bacula so it looks
strange. Further more I think that also Bacula is saying nowadays they
optimize things for gcc so it could be it also no longer compiles with
the native compiler on AIX. I also don't know how good the AIX compiler
is. On Solaris (my development platform) I use the SUN/Oracle compiler
and all our code compiles ok there with that C++ compiler and default
non GNU make. But for most platforms GCC/G++ is the prefered compiler.
The problems you ran into are some small typos, hopefully you get further
now but compiling without libtool e.g. making static binaries is something
we don't put an enormous effort in mostly because more and more platforms
don't even support static linking anymore and also for disaster recovery
static binaries is no longer an absolute requirement.