On Tue, Sep 16, 2008 at 1:14 PM, Emmanuel Dreyfus
<manu@netbsd.org> wrote:
On Tue, Sep 16, 2008 at 12:58:46PM +0100, David Markey wrote:
> i forgot to mention that im using current.
Then it should work.
Check that <unistd.h> indeed contains:
#if defined(_NETBSD_SOURCE)
(...)
int getpeereid(int, uid_t *, gid_t *);
(...)
#endif
Check that the build you did with -D_NETBSD_SOURCE has a reference to
getpeereid(3), using nm(1) command:
nm `which slapd`|grep getpeereid
If it does not, then there is something wrong with the build. If it
does, then you can check it is indeed called at runtime:
# gdb slapd
(gdb) b getpeereid
(gdb) r -d0 -u slapd -h ldapi:///
Try to connect and see if you break when entering getpeereid(3).
--