[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Check time.h existence in the configure script
From: |
Petr Pavlu |
Subject: |
Re: [PATCH] Check time.h existence in the configure script |
Date: |
Mon, 21 Mar 2011 00:07:43 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On 20. bře 11 18:12, Thomas Dickey wrote:
> On Sun, 20 Mar 2011, Petr Pavlu wrote:
>
> >Hello,
> >ncurses compilation failed for me because time.h header was
> >missing on my system. I think that existence of time.h header
> >should be checked already in the configure script thus I'm
> >attaching a one-liner fix. It also contains a fix for one
> >typo. ;)
>
> thanks - this doesn't seem to be a new problem. There's no corresponding
> ifdef's in the code for HAVE_TIME_H however - so simply adding the
> configure check wouldn't do much. What was the failure?
I apologize, the actually missing check was for math.h. There
isn't needed any extra check for time.h on my system (Solaris 11)
because it's contained in a same package as sys/time.h.
Running "./configure; make"..
cc -I. -I. -I../test -DHAVE_CONFIG_H -D__EXTENSIONS__
-D_XOPEN_SOURCE=500 -D_FILE_OFFSET_BITS=64 -I. -I../include
-I/usr/local/include/ncurses -c ../test/tclock.c -o
../objects/tclock.o
"../test/tclock.c", line 5: cannot find include file: <math.h>
"../test/tclock.c", line 174: warning: implicit function
declaration: sin
"../test/tclock.c", line 175: warning: implicit function
declaration: cos
cc: acomp failed for ../test/tclock.c
make[1]: *** [../objects/tclock.o] Error 2
make[1]: Leaving directory `/home/setup/ncurses-5.8/test'
make: *** [all] Error 2
--
Petr Pavlu