Bacula-users

Re: [Bacula-users] Compiling on AIX

2008-06-11 06:05:07
Subject: Re: [Bacula-users] Compiling on AIX
From: Rupen Momaya <rupen AT netmagicsolutions DOT com>
To: Martin Simmons <martin AT lispworks DOT com>
Date: Wed, 11 Jun 2008 15:34:40 +0530
Thanks Martin. I have changed below line in bsys.c & its worked fine on AIX version 5.2.

Regards
Rupen

Martin Simmons wrote:
On Mon, 09 Jun 2008 17:35:26 +0530, Rupen Momaya said:
            
Hi All,
I am facing a similar error as below. I dont have any error with 
./configure --enable-client-only output. 
Below is the error after running GNU make :
Has someone found a solution??

-------------------------------------------------------
==>Entering directory /home/netmagic/bacula-2.2.8/src
make[1]: Entering directory `/home/netmagic/bacula-2.2.8/src'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/netmagic/bacula-2.2.8/src'
==>Entering directory /home/netmagic/bacula-2.2.8/scripts
make[1]: Entering directory `/home/netmagic/bacula-2.2.8/scripts'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/netmagic/bacula-2.2.8/scripts'
==>Entering directory /home/netmagic/bacula-2.2.8/src/lib
make[1]: Entering directory `/home/netmagic/bacula-2.2.8/src/lib'
Compiling attr.c
Compiling base64.c
Compiling berrno.c
Compiling bsys.c
*bsys.c:47: error: declaration of C function 'int initgroups(char*, 
int)' conflicts with
/usr/include/grp.h:119: error: previous declaration 'int 
initgroups(const char*, gid_t)' here
    
Which version of AIX is this?

Try changing

extern "C" int initgroups(const char *,int);

to

extern "C" int initgroups(const char *,gid_t);

on line 47 of bsys.c.

__Martin
  
   


--
**************** CAUTION - Disclaimer ***************** This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. NetMagic Solutions Pvt. Ltd. has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. NetMagic Solutions Pvt. Ltd. reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the NetMagic Solutions Pvt. Ltd.'s e-mail system. ***************** End of Disclaimer *******************

   
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>