I gave up on gcc, but I was able to compile the client using IBM C
compiler. Here is what I did:

cd /tmp
gtar -xzf bacula-2.2.7.tar.gz
cd bacula-2.2.7

# Set path so that xlc, xlC and cpp are in path, IBM cpp is in
/us/ccs/lib
export PATH=/usr/vacpp/bin:/usr/ccs/lib:$PATH

# set C compiler.
export CXX=xlC

# Set C++ compiler
export CC=xlc

# Set compiler flags so that AIX C++ compiler compiles all code as C++
code.
# I am not sure why the C++ code in bacula is name *.c. The IBM C++
compiler
# 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
CXXFLAGS
# is used by C++ compiler.
export CPPFLAGS=-+

# Edit src/lib/bsys.c and comment the declaration of initgroups
function
# 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 
--enable-client-only


# 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
  enable-smartalloc:          yes
  bat support:                no
  enable-gnome:               no
  enable-bwx-console:         no
  enable-tray-monitor:
  client-only:                yes
  build-dird:                 yes
  build-stored:               yes
  ACL support:                no
  Python support:             no
  Batch insert enabled:       no


# Edit make file and comment the following line, AIX make does not like
it.
.PATH:      .

# Run make command.
make

# Run make install command.
make install

--- shahhe <[EMAIL PROTECTED]> wrote:

> 
> Has anyone compiled bacula client on AIX 5.3 using IBM C compiler?
> 
> When I run configure I get following errors:
> 
> export CC=xlc;
> export CXX=xlC; 
> ./configure --enable-client-only
> 
> I am attaching the output of the command with this post. I uploaded
> the file
> but I cannot see it in my message window, so I am assuming that 
> it will be attached with my post.
> 
> I also tried to compile it with gcc but it is an older version
> (3.3.2) that
> was installed when the system was at AIX 5.1 but I am getting 
> different errors.
> 
> I would like to build it using AIX C compiler because I also need to
> compile/install client on other AIX 5.3 systems that do not have GNU
> compiler
> but has IBM compiler.
> 
> Thanks.
> -- 
> View this message in context:
>
http://www.nabble.com/Compiling-bacula-on-AIX-5.3-and-IBM-C-compiler-V-7.0-tp14923101p14923101.html
> Sent from the Bacula - Users mailing list archive at Nabble.com.
> 
> 
>
-------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
> 


Hemant Shah
E-mail: [EMAIL PROTECTED]


      
____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to