From owner-freebsd-ports@FreeBSD.ORG Fri Feb 20 08:42:21 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 19AA716A4CE for ; Fri, 20 Feb 2004 08:42:21 -0800 (PST) Received: from smtp1.netcologne.de (smtp1.netcologne.de [194.8.194.112]) by mx1.FreeBSD.org (Postfix) with ESMTP id E048143D2F for ; Fri, 20 Feb 2004 08:42:20 -0800 (PST) (envelope-from tmseck-lists@netcologne.de) Received: from laurel.tmseck.homedns.org (xdsl-195-14-220-178.netcologne.de [195.14.220.178]) by smtp1.netcologne.de (Postfix) with SMTP id 6E3CE3CB9A for ; Fri, 20 Feb 2004 17:33:25 +0100 (MET) Received: (qmail 59088 invoked by uid 1001); 20 Feb 2004 16:33:27 -0000 Date: Fri, 20 Feb 2004 17:33:04 +0100 From: Thomas-Martin Seck To: freebsd-ports@freebsd.org Message-ID: <20040220163304.GB549@laurel.tmseck.homedns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Organization: private site in Germany X-PGP-KeyID: DF46EE05 X-PGP-Fingerprint: A38F AE66 6B11 6EB9 5D1A B67D 2444 2FE1 DF46 EE05 X-Attribution: tms Subject: Porting libowfat: getting 'syntax error in ' on STABLE X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Feb 2004 16:42:21 -0000 Hi all, despite the fact that it's street carnival time in this part of Germany I work on a port of Felix von Leitner's libowfat library and his gatling http-daemon. Now I run into the following problem on a 4.9-STABLE box: ===> Building for local-libowfat-0.17 ... cc -c io/iob_prefetch.c -O -pipe -I. In file included from io/iob_prefetch.c:3: /usr/include/sys/mman.h:141: syntax error before `mode_t' gmake: *** [iob_prefetch.o] Error 1 *** Error code 2 Line 141 of : int shm_open __P((const char *, int, mode_t)); io/iob_prefetch.c: #include "iob_internal.h" #include #include void iob_prefetch(io_batch* b,uint64 bytes) { volatile char x; iob_entry* e,* last; if (b->bytesleft==0) return; last=(iob_entry*)(((char*)array_start(&b->b))+array_bytes(&b->b)); e=(iob_entry*)array_start(&b->b); if (!e) return; for (; etype==FROMFILE) { char* c,* d; uint64 before=bytes; if (e->nn; if (e->n>=1000000) { long l=e->offset&4095; d=c=mmap(0,bytes,PROT_READ,MAP_SHARED,e->fd,(e->offset|4095)+1); bytes-=l; if (c!=MAP_FAILED) { while (bytes>4095) { x=*d; bytes-=4096; d+=4096; } } munmap(c,before); } return; } } (void)x; } Could someone tell me what is going wrong here? Everything compiles just fine on 5.2.RC2.