On Tuesday 06 March 2001 12:25, Ben Collins wrote: > On Tue, Mar 06, 2001 at 12:55:57PM +0900, Olaf Meeuwissen wrote: > > Andrea Vettorello <[EMAIL PROTECTED]> writes: > > > Yes, two/three days ago, look in the mailing list of this week > > > about "trouble compiling gs (ghostscript) from source". I've > > > forced the inclusion of the time.h header, and a couple of > > > trivial change in the stp driver itself about some incorrect > > > inclusion path. > > > > <time.h> you say? I had kaffe break on that recently after I > > upgraded my system a bit. Same kaffe source, same configuration > > compiled fine just a few days earlier. From my change-log, I > > installed perl-5.6 on February 27 which upgrades libc6 and > > libc6-dev from unstable and then upgraded from testing the next > > day. > > > > I fixed it by adding a check for time.h in configure.in. > > > > Any chance that this is a bug somewhere in libc or perhaps in > > autoconf (don't know if that got upgraded :-{) > > This is a bug in kaffe. Recent changes in libc6-dev were made > (upstream) to make the headers more standards compliant. This had > the affect of certain things that were implicitly defined when > sys/time.h was included, not being defined unless time.h was > included. You need to make this change.
I was just wondering if this is related to my problems compiling icewm-gnome (apt get source icewm-gnome). The compilation exits with something about "implicit declaration of function `int time(...)' " See the partial output below: <cut> gcc -DLIBDIR='"//usr/X11R6/lib/X11/icewm"' -DCONFIGDIR='"/etc/X11/icewm"' -DVERSION='"1.0.4"' -DEXEEXT='"-gnome"' -I/usr/include -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/X11R6/include -fpermissive -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Winline -Woverloaded-virtual -W -fno-exceptions -fno-rtti -g -O2 -I/usr/X11R6/include -DHAVE_DIRENT_H=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_FCNTL_H=1 -DHAVE_LIMITS_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DTIME_WITH_SYS_TIME=1 -DRETSIGTYPE=void -DHAVE_STRFTIME=1 -DHAVE_VPRINTF=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_PUTENV=1 -DHAVE_SELECT=1 -DHAVE_SOCKET=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DSELECT_TYPE_ARG1=int -DSELECT_TYPE_ARG234=\(fd_set\ \*\) -DSELECT_TYPE_ARG5=\(struct\ timeval\ \*\) -DI18N=1 -DHAVE_XINTERNATOMS=1 -DSM=1 -DSHAPE=1 -DIMLIB=1 -DGNOME=1 -c aclock.cc aclock.cc: In method `void YClock::autoSize()': aclock.cc:58: warning: implicit declaration of function `int time(...)' aclock.cc:59: variable `struct tm t' has initializer but incomplete type aclock.cc:59: warning: implicit declaration of function `int localtime(...)' aclock.cc:59: invalid type argument of `unary *' aclock.cc:70: confused by earlier errors, bailing out make[2]: *** [aclock.o] Error 1 make[2]: Leaving directory `/hackspace/icewm-1.0.4/src' make[1]: *** [all] Error 2 make[1]: Leaving directory `/hackspace/icewm-1.0.4' make: *** [build] Error 2