[asterisk-dev] COMPILE ERROR - branch 1.2 r9861 - /branches/1.2/asterisk.c

BJ Weschke bweschke at gmail.com
Mon Feb 13 21:46:19 MST 2006


On 2/13/06, Aryanto Rachmad <aryanto.rachmad at chello.at> wrote:
> Hello everybody,
>
> I tried to get into branch 1.2 r9861, but when I compiled asterisk I got the following error:
>
> asterisk.c: In function 'main':
> asterisk.c:2213: error: 'ast_opt_dump_core' undeclared (first use in this function)
> asterisk.c:2213: error: (Each undeclared identifier is reported only once
> asterisk.c:2213: error: for each function it appears in.)
> make: *** [asterisk.o] Error 1
>
> It complied and running fine when I commented the following lines to revert asterisk.c to r9860:
>
> Line 78:
> #include <sys/prctl.h>
>
> Line 2213:
>           if (geteuid() && ast_opt_dump_core) {
>                   if (prctl(PR_SET_DUMPABLE, 1, 0, 0, 0) < 0) {
>                           ast_log(LOG_WARNING, "Unable to set the process for core dumps after changing to a non-root user. %s\n", strerror(errno));
>                   }
>           }
>
> I am just curious. What those lines suppose to do actually?
>

 Fixed with r9870.  The intent of the patch is to make certain that a
core is still dumped when the option to dump core is specified and the
Asterisk process isn't running as root.

--
Bird's The Word Technologies, Inc.
http://www.btwtech.com/



More information about the asterisk-dev mailing list