Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Mar 2012 01:32:19 GMT
From:      Liu <liuw@supermicro.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   i386/166331: /vm/vm.h:73: error: expected '=', ',', '; ', 'asm' or '__attribute__' before 'vm_prot_t'
Message-ID:  <201203230132.q2N1WJxs022658@red.freebsd.org>
Resent-Message-ID: <201203230140.q2N1e1S7096814@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         166331
>Category:       i386
>Synopsis:       /vm/vm.h:73: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vm_prot_t'
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-i386
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 23 01:40:01 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Liu
>Release:        9.0-RELEASE
>Organization:
Supermicro Inc.
>Environment:
$ uname -a
FreeBSD LiuFreeBSD 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:15:25 UTC 2012     root@obrian.cse.buffalo.edu:/u
sr/obj/usr/src/sys/GENERIC  i386
>Description:
/*----------
  smc_os.h
----------*/
..
..
#include <vm/vm.h>
..

Compile error:

In file included from smc_os.h:6,
                 from smc_core_type.h:4,
                 from smc_core_sata.c:47:
@/vm/vm.h:73: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vm_prot_t'
@/vm/vm.h:87: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'objtype_t'
@/vm/vm.h:133: error: expected specifier-qualifier-list before 'vm_offset_t'
@/vm/vm.h:145: error: expected ')' before 'incr'
@/vm/vm.h:146: error: expected ')' before 'incr'
@/vm/vm.h:147: error: expected ')' before 'incr'
@/vm/vm.h:148: error: expected ')' before 'decr'
@/vm/vm.h:149: error: expected ')' before 'decr'
In file included from /usr/home/Liuw/freebsddriverforaoc_sas2lp_mv8/machine/pmap.h:158,
                 from @/vm/pmap.h:89,
                 from smc_os.h:7,
                 from smc_core_type.h:4,
                 from smc_core_sata.c:47:
@/sys/_cpuset.h:49: error: 'MAXCPU' undeclared here (not in a function)
@/sys/_cpuset.h:49: error: 'NBBY' undeclared here (not in a function)
@/sys/_cpuset.h:49: error: variably modified '__bits' at file scope
In file included from /usr/home/Liuw/freebsddriverforaoc_sas2lp_mv8/machine/pmap.h:159,
                 from @/vm/pmap.h:89,
                 from smc_os.h:7,
                 from smc_core_type.h:4,
                 from smc_core_sata.c:47:
@/sys/_lock.h:36: error: expected specifier-qualifier-list before 'u_int'
In file included from /usr/home/Liuw/freebsddriverforaoc_sas2lp_mv8/machine/pmap.h:160,
                 from @/vm/pmap.h:89,
                 from smc_os.h:7,
                 from smc_core_type.h:4,
                 from smc_core_sata.c:47:
@/sys/_mutex.h:39: error: expected ':', ',', ';', '}' or '__attribute__' before 'mtx_lock'
In file included from @/vm/pmap.h:89,
                 from smc_os.h:7,
                 from smc_core_type.h:4,
                 from smc_core_sata.c:47:
>How-To-Repeat:
..
#include <vm/vm.h>
..
>Fix:
investigating

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201203230132.q2N1WJxs022658>