Re: compilation problem
Mark Frey <[email protected]> Sat, 30 Aug 2003 08:30:17 -0400
| Newsgroups | org.kernel.vger.linux-diald |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format. --------------080008020604030703080507 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Hi VH, I've attached a patch that Duncan Haldane posted to this list Jan 12, 2002. diald.h is not including the correct file with the CLK_TCK definintion. Patch your diald.h and try compiling again. Mark. Martchukov Anton wrote: > Hello, here is output of make > > gcc -g -O2 -DHAVE_CONFIG_H -I. > -DDIALD_CONFIG_FILE=\"/usr/local/etc/diald.conf\" > -DDIALD_DEFS_FILE=\"/usr/local/lib/diald/diald.defs\" > -DRUN_PREFIX=\"/usr/local/var/run\" -c -o diald.o diald.c > diald.c: In function `main': > diald.c:192: `CLK_TCK' undeclared (first use in this function) > diald.c:192: (Each undeclared identifier is reported only once > diald.c:192: for each function it appears in.) > make: *** [diald.o] Error 1 > > diald version 1.0 > gcc version 2.95.3 20010315 > linux kernel 2.4.20 Vector Linux 2.0 (Slackware 8.1) > > Could anybody help me to compile diald? > Maybe there is a package for Slackware, isn't it? > > Please help. > --------------080008020604030703080507 Content-Type: text/plain; name="diald-1.0.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="diald-1.0.patch" diff -uNr diald-1.0/diald.h diald-1.0-patched/diald.h --- diald-1.0/diald.h Sat Jun 16 12:01:25 2001 +++ diald-1.0-patched/diald.h Fri Sep 7 02:57:56 2001 @@ -29,6 +29,11 @@ #include <signal.h> #if HAVE_SYS_TIME_H # include <sys/time.h> +#if TIME_WITH_SYS_TIME +# include <time.h> +#endif +#else +# include <time.h> #endif #ifdef _POSIX_PRIORITY_SCHEDULING # include <sched.h> --------------080008020604030703080507--