Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Feb 2002 13:51:28 +0800
From:      "Jason" <jason@inetworx.com.ph>
To:        <freebsd-questions@freebsd.org>, <freebsd-stable@freebsd.org>
Subject:   compile error
Message-ID:  <023501c1af9b$7ce52bf0$b958a8c0@JASON>

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

[-- Attachment #1 --]
Hello,

I'm trying to compile my kernel.  Doing "make all" gives me this error.  Please help.  I'm using FreeBSD stable 4.5.

In file included from linux_sysent.c:14:
linux_proto.h:57: syntax error before `linux_time_t'
linux_proto.h:57: `linux_time_t' undeclared here (not in a function)
linux_proto.h:57: syntax error before `)'
linux_proto.h:57: `linux_time_t' undeclared here (not in a function)
linux_proto.h:57: syntax error before `)'
linux_proto.h:156: syntax error before `linux_handler_t'
linux_proto.h:156: `linux_handler_t' undeclared here (not in a function)
linux_proto.h:156: `linux_handler_t' undeclared here (not in a function)
linux_proto.h:184: syntax error before `linux_dev_t'
linux_proto.h:184: `linux_dev_t' undeclared here (not in a function)
linux_proto.h:184: `linux_dev_t' undeclared here (not in a function)
linux_proto.h:189: syntax error before `linux_osigaction_t'
linux_proto.h:189: `linux_osigaction_t' undeclared here (not in a function)
linux_proto.h:189: syntax error before `)'
linux_proto.h:189: `linux_osigaction_t' undeclared here (not in a function)
linux_proto.h:189: syntax error before `)'
linux_proto.h:190: syntax error before `linux_osigaction_t'
linux_proto.h:190: `linux_osigaction_t' undeclared here (not in a function)
linux_proto.h:190: syntax error before `)'
linux_proto.h:190: `linux_osigaction_t' undeclared here (not in a function)
linux_proto.h:190: syntax error before `)'
linux_proto.h:196: syntax error before `linux_osigset_t'
linux_proto.h:196: `linux_osigset_t' undeclared here (not in a function)
linux_proto.h:196: `linux_osigset_t' undeclared here (not in a function)
linux_proto.h:200: syntax error before `linux_osigset_t'
linux_proto.h:200: `linux_osigset_t' undeclared here (not in a function)
linux_proto.h:200: `linux_osigset_t' undeclared here (not in a function)
linux_proto.h:201: syntax error before `linux_osigset_t'
linux_proto.h:201: `linux_osigset_t' undeclared here (not in a function)
linux_proto.h:201: `linux_osigset_t' undeclared here (not in a function)
linux_proto.h:204: syntax error before `linux_osigset_t'
linux_proto.h:204: `linux_osigset_t' undeclared here (not in a function)
linux_proto.h:204: syntax error before `)'
linux_proto.h:204: `linux_osigset_t' undeclared here (not in a function)
linux_proto.h:204: syntax error before `)'
linux_proto.h:216: syntax error before `linux_gid_t'
linux_proto.h:216: `linux_gid_t' undeclared here (not in a function)
linux_proto.h:216: syntax error before `)'
linux_proto.h:216: `linux_gid_t' undeclared here (not in a function)
linux_proto.h:216: syntax error before `)'
linux_proto.h:220: syntax error before `linux_gid_t'
linux_proto.h:220: `linux_gid_t' undeclared here (not in a function)
linux_proto.h:220: syntax error before `)'
linux_proto.h:220: `linux_gid_t' undeclared here (not in a function)
linux_proto.h:220: syntax error before `)'
linux_proto.h:344: syntax error before `linux_osigset_t'
linux_proto.h:344: `linux_osigset_t' undeclared here (not in a function)
linux_proto.h:344: syntax error before `)'
linux_proto.h:344: `linux_osigset_t' undeclared here (not in a function)
linux_proto.h:344: syntax error before `)'
linux_proto.h:345: syntax error before `linux_osigset_t'
linux_proto.h:345: `linux_osigset_t' undeclared here (not in a function)
linux_proto.h:345: syntax error before `)'
linux_proto.h:345: `linux_osigset_t' undeclared here (not in a function)
linux_proto.h:345: syntax error before `)'
linux_proto.h:380: syntax error before `linux_uid_t'
linux_proto.h:380: `linux_uid_t' undeclared here (not in a function)
linux_proto.h:380: `linux_uid_t' undeclared here (not in a function)
linux_proto.h:383: syntax error before `linux_gid_t'
linux_proto.h:383: `linux_gid_t' undeclared here (not in a function)
linux_proto.h:383: `linux_gid_t' undeclared here (not in a function)
linux_proto.h:410: syntax error before `linux_pid_t'
linux_proto.h:410: `linux_pid_t' undeclared here (not in a function)
linux_proto.h:410: `linux_pid_t' undeclared here (not in a function)
linux_proto.h:439: syntax error before `linux_uid_t'
linux_proto.h:439: `linux_uid_t' undeclared here (not in a function)
linux_proto.h:439: syntax error before `)'
linux_proto.h:439: `linux_uid_t' undeclared here (not in a function)
linux_proto.h:439: syntax error before `)'
linux_proto.h:440: syntax error before `linux_uid_t'
linux_proto.h:440: `linux_uid_t' undeclared here (not in a function)
linux_proto.h:440: syntax error before `)'
linux_proto.h:440: `linux_uid_t' undeclared here (not in a function)
linux_proto.h:440: syntax error before `)'
linux_proto.h:441: syntax error before `linux_uid_t'
linux_proto.h:441: `linux_uid_t' undeclared here (not in a function)
linux_proto.h:441: syntax error before `)'
linux_proto.h:441: `linux_uid_t' undeclared here (not in a function)
linux_proto.h:441: syntax error before `)'
linux_proto.h:453: syntax error before `linux_gid_t'
linux_proto.h:453: `linux_gid_t' undeclared here (not in a function)
linux_proto.h:453: syntax error before `)'
linux_proto.h:453: `linux_gid_t' undeclared here (not in a function)
linux_proto.h:453: syntax error before `)'
linux_proto.h:454: syntax error before `linux_gid_t'
linux_proto.h:454: `linux_gid_t' undeclared here (not in a function)
linux_proto.h:454: syntax error before `)'
linux_proto.h:454: `linux_gid_t' undeclared here (not in a function)
linux_proto.h:454: syntax error before `)'
linux_proto.h:455: syntax error before `linux_gid_t'
linux_proto.h:455: `linux_gid_t' undeclared here (not in a function)
linux_proto.h:455: syntax error before `)'
linux_proto.h:455: `linux_gid_t' undeclared here (not in a function)
linux_proto.h:455: syntax error before `)'
linux_proto.h:465: syntax error before `linux_sigaction_t'
linux_proto.h:465: `linux_sigaction_t' undeclared here (not in a function)
linux_proto.h:465: syntax error before `)'
linux_proto.h:465: `linux_sigaction_t' undeclared here (not in a function)
linux_proto.h:465: syntax error before `)'
linux_proto.h:466: syntax error before `linux_sigaction_t'
linux_proto.h:466: `linux_sigaction_t' undeclared here (not in a function)
linux_proto.h:466: syntax error before `)'
linux_proto.h:466: `linux_sigaction_t' undeclared here (not in a function)
linux_proto.h:466: syntax error before `)'
linux_proto.h:471: syntax error before `linux_sigset_t'
linux_proto.h:471: `linux_sigset_t' undeclared here (not in a function)
linux_proto.h:471: syntax error before `)'
linux_proto.h:471: `linux_sigset_t' undeclared here (not in a function)
linux_proto.h:471: syntax error before `)'
linux_proto.h:472: syntax error before `linux_sigset_t'
linux_proto.h:472: `linux_sigset_t' undeclared here (not in a function)
linux_proto.h:472: syntax error before `)'
linux_proto.h:472: `linux_sigset_t' undeclared here (not in a function)
linux_proto.h:472: syntax error before `)'
linux_proto.h:485: syntax error before `linux_sigset_t'
linux_proto.h:485: `linux_sigset_t' undeclared here (not in a function)
linux_proto.h:485: syntax error before `)'
linux_proto.h:485: `linux_sigset_t' undeclared here (not in a function)
linux_proto.h:485: syntax error before `)'
linux_proto.h:516: syntax error before `*'
linux_proto.h:516: syntax error before `linux_stack_t'
linux_proto.h:516: syntax error before `linux_stack_t'
linux_proto.h:517: syntax error before `linux_stack_t'
linux_proto.h:517: `linux_stack_t' undeclared here (not in a function)
linux_proto.h:517: syntax error before `)'
linux_proto.h:517: `linux_stack_t' undeclared here (not in a function)
linux_proto.h:517: syntax error before `)'
linux_sysent.c:21: sizeof applied to an incomplete type
linux_sysent.c:21: warning: built-in function `exit' used without declaration
linux_sysent.c:21: warning: cast discards qualifiers from pointer target type
*** Error code 1

Stop in /usr/src/sys/modules/linux.
*** Error code 1

Stop in /usr/src/sys/modules.
*** Error code 1

Stop in /usr/src/sys/compile/WWW.


TIA

Jason

[-- Attachment #2 --]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I'm trying to compile my kernel.&nbsp; Doing "make 
all" gives me this error.&nbsp; Please help.&nbsp; I'm using FreeBSD stable 
4.5.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>In file included from 
linux_sysent.c:14:<BR>linux_proto.h:57: syntax error before 
`linux_time_t'<BR>linux_proto.h:57: `linux_time_t' undeclared here (not in a 
function)<BR>linux_proto.h:57: syntax error before `)'<BR>linux_proto.h:57: 
`linux_time_t' undeclared here (not in a function)<BR>linux_proto.h:57: syntax 
error before `)'<BR>linux_proto.h:156: syntax error before 
`linux_handler_t'<BR>linux_proto.h:156: `linux_handler_t' undeclared here (not 
in a function)<BR>linux_proto.h:156: `linux_handler_t' undeclared here (not in a 
function)<BR>linux_proto.h:184: syntax error before 
`linux_dev_t'<BR>linux_proto.h:184: `linux_dev_t' undeclared here (not in a 
function)<BR>linux_proto.h:184: `linux_dev_t' undeclared here (not in a 
function)<BR>linux_proto.h:189: syntax error before 
`linux_osigaction_t'<BR>linux_proto.h:189: `linux_osigaction_t' undeclared here 
(not in a function)<BR>linux_proto.h:189: syntax error before 
`)'<BR>linux_proto.h:189: `linux_osigaction_t' undeclared here (not in a 
function)<BR>linux_proto.h:189: syntax error before `)'<BR>linux_proto.h:190: 
syntax error before `linux_osigaction_t'<BR>linux_proto.h:190: 
`linux_osigaction_t' undeclared here (not in a function)<BR>linux_proto.h:190: 
syntax error before `)'<BR>linux_proto.h:190: `linux_osigaction_t' undeclared 
here (not in a function)<BR>linux_proto.h:190: syntax error before 
`)'<BR>linux_proto.h:196: syntax error before 
`linux_osigset_t'<BR>linux_proto.h:196: `linux_osigset_t' undeclared here (not 
in a function)<BR>linux_proto.h:196: `linux_osigset_t' undeclared here (not in a 
function)<BR>linux_proto.h:200: syntax error before 
`linux_osigset_t'<BR>linux_proto.h:200: `linux_osigset_t' undeclared here (not 
in a function)<BR>linux_proto.h:200: `linux_osigset_t' undeclared here (not in a 
function)<BR>linux_proto.h:201: syntax error before 
`linux_osigset_t'<BR>linux_proto.h:201: `linux_osigset_t' undeclared here (not 
in a function)<BR>linux_proto.h:201: `linux_osigset_t' undeclared here (not in a 
function)<BR>linux_proto.h:204: syntax error before 
`linux_osigset_t'<BR>linux_proto.h:204: `linux_osigset_t' undeclared here (not 
in a function)<BR>linux_proto.h:204: syntax error before 
`)'<BR>linux_proto.h:204: `linux_osigset_t' undeclared here (not in a 
function)<BR>linux_proto.h:204: syntax error before `)'<BR>linux_proto.h:216: 
syntax error before `linux_gid_t'<BR>linux_proto.h:216: `linux_gid_t' undeclared 
here (not in a function)<BR>linux_proto.h:216: syntax error before 
`)'<BR>linux_proto.h:216: `linux_gid_t' undeclared here (not in a 
function)<BR>linux_proto.h:216: syntax error before `)'<BR>linux_proto.h:220: 
syntax error before `linux_gid_t'<BR>linux_proto.h:220: `linux_gid_t' undeclared 
here (not in a function)<BR>linux_proto.h:220: syntax error before 
`)'<BR>linux_proto.h:220: `linux_gid_t' undeclared here (not in a 
function)<BR>linux_proto.h:220: syntax error before `)'<BR>linux_proto.h:344: 
syntax error before `linux_osigset_t'<BR>linux_proto.h:344: `linux_osigset_t' 
undeclared here (not in a function)<BR>linux_proto.h:344: syntax error before 
`)'<BR>linux_proto.h:344: `linux_osigset_t' undeclared here (not in a 
function)<BR>linux_proto.h:344: syntax error before `)'<BR>linux_proto.h:345: 
syntax error before `linux_osigset_t'<BR>linux_proto.h:345: `linux_osigset_t' 
undeclared here (not in a function)<BR>linux_proto.h:345: syntax error before 
`)'<BR>linux_proto.h:345: `linux_osigset_t' undeclared here (not in a 
function)<BR>linux_proto.h:345: syntax error before `)'<BR>linux_proto.h:380: 
syntax error before `linux_uid_t'<BR>linux_proto.h:380: `linux_uid_t' undeclared 
here (not in a function)<BR>linux_proto.h:380: `linux_uid_t' undeclared here 
(not in a function)<BR>linux_proto.h:383: syntax error before 
`linux_gid_t'<BR>linux_proto.h:383: `linux_gid_t' undeclared here (not in a 
function)<BR>linux_proto.h:383: `linux_gid_t' undeclared here (not in a 
function)<BR>linux_proto.h:410: syntax error before 
`linux_pid_t'<BR>linux_proto.h:410: `linux_pid_t' undeclared here (not in a 
function)<BR>linux_proto.h:410: `linux_pid_t' undeclared here (not in a 
function)<BR>linux_proto.h:439: syntax error before 
`linux_uid_t'<BR>linux_proto.h:439: `linux_uid_t' undeclared here (not in a 
function)<BR>linux_proto.h:439: syntax error before `)'<BR>linux_proto.h:439: 
`linux_uid_t' undeclared here (not in a function)<BR>linux_proto.h:439: syntax 
error before `)'<BR>linux_proto.h:440: syntax error before 
`linux_uid_t'<BR>linux_proto.h:440: `linux_uid_t' undeclared here (not in a 
function)<BR>linux_proto.h:440: syntax error before `)'<BR>linux_proto.h:440: 
`linux_uid_t' undeclared here (not in a function)<BR>linux_proto.h:440: syntax 
error before `)'<BR>linux_proto.h:441: syntax error before 
`linux_uid_t'<BR>linux_proto.h:441: `linux_uid_t' undeclared here (not in a 
function)<BR>linux_proto.h:441: syntax error before `)'<BR>linux_proto.h:441: 
`linux_uid_t' undeclared here (not in a function)<BR>linux_proto.h:441: syntax 
error before `)'<BR>linux_proto.h:453: syntax error before 
`linux_gid_t'<BR>linux_proto.h:453: `linux_gid_t' undeclared here (not in a 
function)<BR>linux_proto.h:453: syntax error before `)'<BR>linux_proto.h:453: 
`linux_gid_t' undeclared here (not in a function)<BR>linux_proto.h:453: syntax 
error before `)'<BR>linux_proto.h:454: syntax error before 
`linux_gid_t'<BR>linux_proto.h:454: `linux_gid_t' undeclared here (not in a 
function)<BR>linux_proto.h:454: syntax error before `)'<BR>linux_proto.h:454: 
`linux_gid_t' undeclared here (not in a function)<BR>linux_proto.h:454: syntax 
error before `)'<BR>linux_proto.h:455: syntax error before 
`linux_gid_t'<BR>linux_proto.h:455: `linux_gid_t' undeclared here (not in a 
function)<BR>linux_proto.h:455: syntax error before `)'<BR>linux_proto.h:455: 
`linux_gid_t' undeclared here (not in a function)<BR>linux_proto.h:455: syntax 
error before `)'<BR>linux_proto.h:465: syntax error before 
`linux_sigaction_t'<BR>linux_proto.h:465: `linux_sigaction_t' undeclared here 
(not in a function)<BR>linux_proto.h:465: syntax error before 
`)'<BR>linux_proto.h:465: `linux_sigaction_t' undeclared here (not in a 
function)<BR>linux_proto.h:465: syntax error before `)'<BR>linux_proto.h:466: 
syntax error before `linux_sigaction_t'<BR>linux_proto.h:466: 
`linux_sigaction_t' undeclared here (not in a function)<BR>linux_proto.h:466: 
syntax error before `)'<BR>linux_proto.h:466: `linux_sigaction_t' undeclared 
here (not in a function)<BR>linux_proto.h:466: syntax error before 
`)'<BR>linux_proto.h:471: syntax error before 
`linux_sigset_t'<BR>linux_proto.h:471: `linux_sigset_t' undeclared here (not in 
a function)<BR>linux_proto.h:471: syntax error before `)'<BR>linux_proto.h:471: 
`linux_sigset_t' undeclared here (not in a function)<BR>linux_proto.h:471: 
syntax error before `)'<BR>linux_proto.h:472: syntax error before 
`linux_sigset_t'<BR>linux_proto.h:472: `linux_sigset_t' undeclared here (not in 
a function)<BR>linux_proto.h:472: syntax error before `)'<BR>linux_proto.h:472: 
`linux_sigset_t' undeclared here (not in a function)<BR>linux_proto.h:472: 
syntax error before `)'<BR>linux_proto.h:485: syntax error before 
`linux_sigset_t'<BR>linux_proto.h:485: `linux_sigset_t' undeclared here (not in 
a function)<BR>linux_proto.h:485: syntax error before `)'<BR>linux_proto.h:485: 
`linux_sigset_t' undeclared here (not in a function)<BR>linux_proto.h:485: 
syntax error before `)'<BR>linux_proto.h:516: syntax error before 
`*'<BR>linux_proto.h:516: syntax error before 
`linux_stack_t'<BR>linux_proto.h:516: syntax error before 
`linux_stack_t'<BR>linux_proto.h:517: syntax error before 
`linux_stack_t'<BR>linux_proto.h:517: `linux_stack_t' undeclared here (not in a 
function)<BR>linux_proto.h:517: syntax error before `)'<BR>linux_proto.h:517: 
`linux_stack_t' undeclared here (not in a function)<BR>linux_proto.h:517: syntax 
error before `)'<BR>linux_sysent.c:21: sizeof applied to an incomplete 
type<BR>linux_sysent.c:21: warning: built-in function `exit' used without 
declaration<BR>linux_sysent.c:21: warning: cast discards qualifiers from pointer 
target type<BR>*** Error code 1</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Stop in /usr/src/sys/modules/linux.<BR>*** Error 
code 1</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Stop in /usr/src/sys/modules.<BR>*** Error code 
1</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Stop in /usr/src/sys/compile/WWW.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>TIA</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Jason</FONT></DIV></BODY></HTML>

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?023501c1af9b$7ce52bf0$b958a8c0>