Subject: Re: libnbcompat compilation fails
To: None <tech-pkg@NetBSD.org>
From: Juan RP <juan@xtraeme.UnixBSD.org>
List: tech-pkg
Date: 09/10/2003 11:10:59
El 2003.09.10 11:01, Martti Kuparinen escribió:
> i can't compile this on Linux:-(
> 
> Martti
> 
> 
> ===> Building for libnbcompat-20030830
> gcc -o bits bits.c
> ./bits nbcompat/nbtypes.h
> /usr/bin/awk '                                                   BEGIN  
> { process = 1 }                                   /NBCOMPAT template section  
> follows\./ { process = 0 }   /^\#[  ]*define[       ]+PACKAGE_.*/ { next }        / 
> ^\#[ ]*define[        ]+/ {                            if (process == 1) {            guard  
> = $0;                              sub("^\#[ ]*define[       ]+", "",  
> guard);  sub("[        ]+.*", "", guard);    print "\#ifndef " guard;                 
> print $0;       print "\#endif";       next;                                    }                                 }              
> { print }              ' nbcompat/nbconfig.h > nbcompat/nbconfig.hi
> awk: cmd. line:1: warning: escape sequence `\#' treated as plain `#'
> gcc  -I. -I.  -O2 -march=pentiumpro -DHAVE_CONFIG_H -c fgetln.c
> In file included from nbcompat.h:514,
>                  from fgetln.c:39:
> nbcompat/statfs.h:29: redefinition of `struct statfs'
>

Same on FreeBSD ...

--
Juan RP
<juan AT xtraeme DOT UnixBSD DOT org>