From: Hemant Shah <hjrrs@ya...> - 2008-01-24 04:10:24
I gave up on gcc, but I was able to compile the client using IBM C
compiler V7.0. Here is what I did, you may want to incorporate the
changes in the distribution:
gtar -xzf bacula-2.2.7.tar.gz
# Set path so that xlc, xlC and cpp are in path, IBM cpp is in
# set C compiler.
# Set C++ compiler
# Set compiler flags so that AIX C++ compiler compiles all code as C++
# I am not sure why the C++ code in bacula is name *.c. The IBM C++
# treats *.c as a C code and fails.
# I set CXXFLAGS but the makefile does not include CXXFLAGS variable. I
# believe that this option should be set using CXXFLAGS, because
# according to the configure --help, CPPFLAGS is used for cpp and
# is used by C++ compiler.
# Edit src/lib/bsys.c and comment the declaration of initgroups
# because it is already defined. You will get error from compiler.
# I had to set --prefix because the default location is /usr, although
# configure --help says that default is /usr/local.
./configure --enable-largefile --enable-readline --prefix=/usr/local
# Although I specified --enable-largefile and --enable-readline, the
# configure script did not enable the support:
Large file support: no
Bacula conio support: yes -lcurses
readline support: no
TCP Wrappers support: no
TLS support: no
Encryption support: no
ZLIB support: yes
bat support: no
ACL support: no
Python support: no
Batch insert enabled: no
# Edit make file and comment the following line, AIX make does not like
# Run make command.
# Run make install command.
Never miss a thing. Make Yahoo your home page.