-----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??
Regards
- --
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
iD8DBQFD4TdP9Wt2FT7y228RAoE+AJ9+pQq74Nm0DeJvzhCyfoDJ8mCXWACfWTkn
ImZ8BfqJSojinKKD/6LF5b0=
=q8hX
-----END PGP SIGNATURE-----
_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/