On Sat, 2007-11-17 at 13:49 +0100, Holger Levsen wrote:
> Hi,
> 
> olsrd 0.5-1 failed to build on debian kfreebsd-i386 and -amd64 (that is debian 
> userland with a freebsd kernel), logs are available at 
> http://experimental.ftbfs.de/fetch.php?&pkg=olsrd&ver=0.5.4-1&arch=kfreebsd-amd64&stamp=1195217209&file=log&as=raw 
> and
> http://experimental.ftbfs.de/fetch.php?&pkg=olsrd&ver=0.5.4-1&arch=kfreebsd-i386&stamp=1195217204&file=log&as=raw
> 
> I guess this is the relevant output:
> 
> src/olsr_types.h:86:9: error: #error "Unsupported system"
> make[1]: Leaving directory `/build/buildd/olsrd-0.5.4'
> make[1]: Entering directory `/build/buildd/olsrd-0.5.4'
> 
> ***** olsr.org olsr daemon Make ****
>  Automatic detection of your OS     
>  failed!                            
>  You can provide a valid target OS  
>  by setting the OS variable! Valid  
>  target OSes are:                   
>  ---------------------------------  
>  linux - GNU/Linux                  
>  win32 - MS Windows                 
>  fbsd  - FreeBSD                    
>  nbsd  - NetBSD                     
>  obsd  - OpenBSD                    
>  osx   - Mac OS X                   
>  ---------------------------------  
>  Example - build for windows:       
>  make OS=win32                      
>  If you are developing olsrd code,  
>  exporting the OS variable might    
>  be a good idea :-) Have fun!       
> ************************************
> 
> 
> Any idea what do you need to know to fix this, what I need to do to fix this?

The simplest is to try sell it as FreeBSD as I expect the kernel to be
more relevant than the user-space part (e.g. for the ioctl()s for
routing).
So just try "make OS=fbsd" (and finally fixup
olsrd-current/make/guess_os.sh to set deliver the correct result).
It that doesn't work (and the thing should also run, not only compile),
we can try "Linux" since the user-space part is that.
If that also doesn't work, we need probably another "OS".

	Bernd
-- 
Firmix Software GmbH                   http://www.firmix.at/
mobil: +43 664 4416156                 fax: +43 1 7890849-55
          Embedded Linux Development and Services



