build failure and fix for typo

Julian Stecklina der_julian at
Fri Jul 8 12:16:20 CEST 2005

On Thu, 7 Jul 2005 22:17:30 +0200
Adam Lackorzynski <adam at> wrote:

> > 
> > The bogus include directory was -I/usr/bin//include, sorry for the
> > typo. It seems that the configuration process tries to locate
> > libgcc.a and assumes that the directory containing this library
> > also has gcc specific headers. On FreeBSD however libgcc.a is
> > installed in the base system under /usr/lib and its headers are in /
> > usr/include. A real fix here would be using autoconf. :-/
> gcc usually installs this way and that's how it's done on any Linux
> we've seen. A fix for this isn't that hard though, I guess.

If I install another GCC version besides the one that comes with the
base system one (3.4.4) it will get approximately the same directory
layout as on Linux. But the current config magic would probably find /
usr/lib/, though.

> So, is there any way of getting the modification time of a file on BSD
> without coding something myself?

~> date
Fr  8 Jul 2005 11:15:15 CEST
~> touch foo
~> stat -f "%Sm" foo
Jul  8 11:15:17 2005
~> date -r `stat -f "%Dm" foo`
Fr  8 Jul 2005 11:15:17 CEST

Note that stat on FreeBSD and NetBSD (dunno about OpenBSD) does exactly
the same thing as the stat on, say, RedHat, but with completely
different syntax. Shell coding is a nightmare...

Julian Stecklina

LISP has survived for 21 years because it is an approximate local
optimum in the space of programming languages. - John McCarthy (1980)

More information about the l4-hackers mailing list