[Dnsmasq-discuss] (no subject)
Simon Kelley
simon at thekelleys.org.uk
Mon Feb 12 19:10:02 GMT 2007
mmarkk wrote:
>
> I have some problems building dnsmasq for mipsel-uclibc target. The
> problem is the 2 calls to function "prctl" that are in dnsmasq.c .
> While compiling, I get these errors from ld:
>
> dnsmasq.o: In function 'main':
> dnsmasq.o (.text+0xae0): undefined reference to 'prctl'
> dnsmasq.o (.text+0xb90): undefined reference to 'prctl'
>
> What prctl() is used for? Which library or include file contains it?
>
PRCTL(2) Linux Programmer's Manual
PRCTL(2)
NAME
prctl - operations on a process
SYNOPSIS
#include <sys/prctl.h>
int prctl(int option, unsigned long arg2, unsigned long arg3 ,
unsigned long arg4, unsigned long arg5);
DESCRIPTION
prctl() is called with a first argument describing what to do
(with values defined in <linux/prctl.h>), and further parameters
with a significance depending on the first one.
It's in libc6 and in at least Debian's 0.9.27-1 package of uclibc.
One call is utterly trivial, it just enables core dumps in debug mode,
the other one is need to keep Linux capabilities, you can lose that if
you're happy to have the dnsmasq process running and root.
I'm pretty sure that this has been seen before, and the fix as a later
uclibc (I realise that's not a simple fix!)
Cheers,
Simon.
More information about the Dnsmasq-discuss
mailing list