PDA

View Full Version : EPREM EINTR Error | ADVANCED



MarkusWinkler
01-03-2008, 12:07 AM
Hi All,

Unfortunately, my Knoppix doesnt know what to do when an EPERM error occurs, the same happens when EINTR errors appear.

While installing OpenIMSCore from berliOS and compiling the files, an error is stated that EPREM is an undeclared variable!!

Here the error message:

daemonize.c: In function 'daemonize':
daemonize.c:129: error: 'EPERM' undeclared (first use in this function)
daemonize.c:129: error: (Each undeclared identifier is reported only once
daemonize.c:129: error: for each function it appears in.)
make: *** [daemonize.o] Error 1

The responsible code is as follows:

if (kill((pid_t)p, 0)==0 || errno==EPERM){
LOG(L_CRIT, "running process found in the pid file %s\n", pid_file);
goto error;


EPREM is basically, a signal sent when a process isnt permitted to trigger further processes, accordingly, it should be an issue of the OS, didn't it?

I know that the topic is quite complex, but i hope to find some echo from the knoppix commu!

Thx in Advance,
M.Winkler

turbine
01-09-2008, 04:46 PM
Doesn't that mean that you're missing a header file where those constants are defined? Try going back to the source where you did the download and see if you can determine which .h file is involved.