Bacula-users

Re: [Bacula-users] Compiling on AIX

2008-06-09 20:24:04
Subject: Re: [Bacula-users] Compiling on AIX
From: Martin Simmons <martin AT lispworks DOT com>
To: rupen AT netmagicsolutions DOT com
Date: Mon, 9 Jun 2008 14:32:56 +0100
>>>>> 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

-------------------------------------------------------------------------
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>