-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Alan Robertson wrote:
> haad wrote:
> 
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Hello guys
>>
>> I start to work on porting Heartbeat to NetBSD also I want to make
>> pkgsrc(www.pkgsrc.org) package.
>> I know that heartbeat was ported to FreeBSD,OpenBSD(came from NetBSD ).
>> OpenBSD and NetBSD are similar enough so I thing it can be quick port
>> :)??
>>
>> I make base package and when compilation crashs with this error
>>
>> ipcsocket.c:2244:1: warning: "EXTRASPACE" redefined
>> ipcsocket.c:2213:1: warning: this is the location of the previous
>> definition
>> ipcsocket.c: In function `socket_verify_auth':
>> ipcsocket.c:2275: error: `ngroups' undeclared (first use in this
>> function)
>> ipcsocket.c:2275: error: (Each undeclared identifier is reported only
>> once
>> ipcsocket.c:2275: error: for each function it appears#define in.)
>> make[2]: *** [ipcsocket.lo] Error 1
>> make[2]: Leaving directory
>> `/usr/pkgsrc/wip/heartbeat/work.notebook/heartbeat-2.0.2/lib/clplumbing'
>> make[1]: *** [all-recursive] Error 1
>> make[1]: Leaving directory
>> `/usr/pkgsrc/wip/heartbeat/work.notebook/heartbeat-2.0.2/lib'
>> gmake: *** [all-recursive] Error 1
>> *** Error code 2
>>
>> Stop.
>> make: stopped in /usr/pkgsrc/wip/heartbeat
>>
>>
>>
>>
>> I search /usr/include for ngroups and find this
>> #define _POSIX_NGROUPS_MAX      8 in /usr/include/limits.h
>>
>> I look to linux code what ngroups do and find that it is used here
>> /usr/include/linux/sched.h
>> in
>> #define NGROUPS_SMALL           32
>> #define NGROUPS_PER_BLOCK       ((int)(PAGE_SIZE / sizeof(gid_t)))
>> struct group_info {
>>         int ngroups;
>>         atomic_t usage;
>>         gid_t small_block[NGROUPS_SMALL];
>>         int nblocks;
>>         gid_t *blocks[0];
>> };
>>
>>
>> What I have to do ??? to make this works ??
>>
>> Does anyone have any comments??
> 
> 
> 
> Just committed this patch...
> 
> 
> --- ipcsocket.c 24 Jan 2006 14:58:41 -0000      1.172
> +++ ipcsocket.c 2 Feb 2006 15:56:57 -0000
> @@ -2454,6 +2454,7 @@
>  #      define crEgid   sc_egid
>  #      define crngrp   sc_ngroups
>  #      define crgrps   sc_groups
> +#      undef EXTRASPACE
>  #      define EXTRASPACE       SOCKCREDSIZE(ngroups)
                                                        
Your patch doesn't work(removes Warning message ),thing that problem is
here  SOCKCREDSIZE(>>ngroups<<) not with redefining EXTRASPACE variable.

- --
Adam Hamsik
tel.c 0904 937 495
ICQ 249727910
jabber [EMAIL PROTECTED]
- --------------------------------------------------------------
There are 10 kinds of people in the world. Those who understand
binary numbers, and those who don't.
                                
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (NetBSD)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFD4jBS9Wt2FT7y228RAt4WAJ46DQ8tqlVEfZmJuTS6heUL8Cx8pgCePEO+
a9nHbi9XYodWMgGZCEReMLw=
=xW7J
-----END PGP SIGNATURE-----
_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to