Dont make Kernel

Polytropon freebsd at
Thu Jan 19 11:03:37 UTC 2012

On Thu, 19 Jan 2012 14:12:18 +0400, Artem Gocharenko wrote:
> vpn123# cd /usr/src/sys/i386/conf/
> vpn123# config GENERIC.current
> Kernel build directory is ../compile/GENERIC.current
> Don't forget to do ``make cleandepend && make depend''
> vpn123# cd ../compile/GENERIC.current/
> vpn123# make cleandepend && make depend
> rm -f .depend machine
> cd ../../../modules;
> MAKEOBJDIRPREFIX=/usr/src/sys/i386/compile/GENERIC.current/modules
> KMODDIR=/boot/kernel DEBUG_FLAGS="-g" MACHINE=i386
> KERNBUILDDIR="/usr/src/sys/i386/compile/GENERIC.current"
> SYSDIR="/usr/src/sys/i386/compile/GENERIC.current/../../.." make
>  cleandepend
> "Makefile", line 371: Malformed conditional (${MK_INET_SUPPORT} != "no" ||
> defined(ALL_MODULES))
> "Makefile", line 373: if-less endif
> make: fatal errors encountered -- cannot continue
> *** Error code 1
> Stop in /usr/src/sys/i386/compile/GENERIC.current.
> vpn123#
> Please , help me

Did you also try the "now normal" way of performing
the kernel compiling?

See "9.5 Building and Installing a Custom Kernel" in
the FreeBSD handbook:

Try the basic steps:

	# cd /usr/src
	# make clean
	# make buildkernel KERNCONF=GENERIC.current

Also see the comment header of /usr/src/Makefile which
illustrates the full upgrading process (kernel and world).

The error message

	"Makefile", line 371: Malformed conditional
		(${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES))
	"Makefile", line 373: if-less endif

indicates the problem. Maybe you should, just to be sure,
make sure your sources are complete and current (e. g.
use csup to re-get them from CVS), and start building in
a clean environment.

Also make sure /usr/obj doesn't contain any old stuff.

Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...

More information about the freebsd-bugs mailing list