delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/07/01/10:48:57

From: dsantos AT procempa DOT com DOT br (Daniel Santos)
Subject: PROBLEMs
1 Jul 1997 10:48:57 -0700 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <c=BR%a=_%p=PMPA%l=PROCEMPA1-970701155038Z-26049.cygnus.gnu-win32@suporte3.procempa.com.br>
Mime-Version: 1.0
Original-To: "'gnu-win32 AT cygnus DOT com'" <gnu-win32 AT cygnus DOT com>
X-Mailer: Microsoft Exchange Server Internet Mail Connector Version 4.0.995.52
Original-Sender: owner-gnu-win32 AT cygnus DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019