setres[gu]id implicit decl warning on Linux glibc

Pekka Savola pekkas at netcore.fi
Fri Aug 15 16:49:31 EST 2003


On Fri, 15 Aug 2003, Darren Tucker wrote:
> Pekka Savola wrote:
> [snip]
> > uidswap.c: In function `permanently_set_uid':
> > uidswap.c:155: warning: implicit declaration of function `setresgid'
> > uidswap.c:168: warning: implicit declaration of function `setresuid'
> [snip]
> > Just letting you folks know, if someone has a nice autoconf trick handy
> > (for example) or is bothered by this warning..
> 
> You can check check the declaration before searching libraries for the
> function, eg:
> 
> AC_CHECK_DECL(strsep, [AC_CHECK_FUNCS(strsep)])
> 
> I don't think it's worth the hassle to just suppress a warning as it will
> prevent the function from being used.


Ok, thanks for the pointer.

What I was looking for, though, was a slightly more advanced version of 
that; that is, "if declaration is not found but the function is, insert 
the declaration FOO in an includes file." > 

-- 
Pekka Savola                 "You each name yourselves king, yet the
Netcore Oy                    kingdom bleeds."
Systems. Networks. Security. -- George R.R. Martin: A Clash of Kings




More information about the openssh-unix-dev mailing list