build failure and fix for typo

Adam Lackorzynski adam at os.inf.tu-dresden.de
Fri Jul 8 23:38:06 CEST 2005


On Fri Jul 08, 2005 at 12:16:20 +0200, Julian Stecklina wrote:
> On Thu, 7 Jul 2005 22:17:30 +0200
> Adam Lackorzynski <adam at os.inf.tu-dresden.de> 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.

I changed the path "detection" yesterday. It should work, or not?

> > 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...

Ok. Not nice but doable.




Adam
-- 
Adam                 adam at os.inf.tu-dresden.de
  Lackorzynski         http://os.inf.tu-dresden.de/~adam/




More information about the l4-hackers mailing list