Subject: libnbcompat compilation fails
To: None <tech-pkg@netbsd.org>
From: Martti Kuparinen <martti.kuparinen@iki.fi>
List: tech-pkg
Date: 09/10/2003 12:01:51
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'