Mail Archives: cygwin/1997/07/01/10:48:57
Hello,
My name is Daniel Santos, I download a copy of win-gnu32 and i have
some problem
that i can't find answers in FAQ. I get a source code that I can compile
it in Linix and have no problem, and when a try to compile it on
wingnu32 I receive 3 erros message.
A part of source is here:
void signal_setup(void)
{
struct itimerval itime; <====== 35
struct timeval interval;
signal(SIGUSR1, reread_wizlists);
signal(SIGUSR2, unrestrict_game);
/* just to be on the safe side: */
signal(SIGHUP, hupsig);
signal(SIGPIPE, SIG_IGN);
signal(SIGINT, hupsig);
signal(SIGALRM, logsig);
signal(SIGTERM, hupsig);
/*
signal(SIGSEGV, badcrash);
signal(SIGBUS, badcrash);
*/
/* set up the deadlock-protection */
interval.tv_sec = 900; /* 15 minutes */
interval.tv_usec = 0;
itime.it_interval = interval;
itime.it_value = interval;*/
setitimer(ITIMER_VIRTUAL, &itime, 0); <====== 58
signal(SIGVTALRM, checkpointing); <====== 59
}
Messages Erros:
signals.c: In function `signal_setup':
signals.c:35: storage size of `itime' isn't known
signals.c:58: `ITIMER_VIRTUAL' undeclared (first use this function)
signals.c:58: (Each undeclared identifier is reported only once
signals.c:58: for each function it appears in.)
signals.c:59: `SIGVTALRM' undeclared (first use this function)
signals.c:59: warning: passing arg 2 of `signal' from incompatible
pointer type
After that I coment this part of code and compile in link step a
receive one more fatal
error message:
comm.o(.text+0x3ce):comm.c: undefined reference to `srandom'
act.social.o(.text+0x91c):act.social.c: undefined reference to `random'
utility.o(.text+0x41):utility.c: undefined reference to `random'
utility.o(.text+0x75):utility.c: undefined reference to `random'
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".
- Raw text -