Date: Wed, 6 Feb 2002 22:46:12 -0800 From: John Merryweather Cooper <john_m_cooper@yahoo.com> To: Jason <jason@inetworx.com.ph> Cc: freebsd-questions@freebsd.org, freebsd-stable@freebsd.org Subject: Re: compile error Message-ID: <20020206224612.E23198@johncoop.MSHOME> In-Reply-To: <023501c1af9b$7ce52bf0$b958a8c0@JASON>; from jason@inetworx.com.ph on Wed, Feb 06, 2002 at 21:51:28 -0800 References: <023501c1af9b$7ce52bf0$b958a8c0@JASON>
next in thread | previous in thread | raw e-mail | index | archive | help
Follow the instructions in the documentation for building a kernel.
'make all' is NOT the way to do it. :)
Generally, one builds a "world" to make sure that "world" stays in sync
with the kernel (or else very bad things may happen). Then (and only
then) does a kernel get built.
Assuming you have a working kernel configuration file in /sys/i386/conf
with "SOME_NAME," the safe-and-sane build sequence, usually looks like
(from memory):
# cd /usr/src
# make buildworld
# make buildkernel KERNCONF=SOME_NAME
# make installkernel KERNCONF=SOME_NAME
# make installworld
You may need to reboot into single-user mode to successfully install
(that will depend on your configuration, etc.) And the order may have
changed (read the documentation); and there are shortcuts for the
brave-or-foolhardy (which I won't discuss here).
But don't trust me, read the doc. :)
P.S. This belongs strictly on questions, cross-posting is "impolite."
On 2002.02.06 21:51 Jason wrote:
> 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
>
--
_
| |V| / ' || MacroHard -- \
\_| | | \_, || the perfection of form over |
----------------------------------|| substance, marketing over |
Web: http://www.borgsdemons.com || performance, and greed over |
AIM: johnmcooper || design . . . |
=====================================================================/
Public Key: http://www.borgsdemons.com/Personal/pgpkey.asc |
=====================================================================\
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020206224612.E23198>
