Re: Makefile Problem of FreeBSD-Current

From: Thomas Hoffmann <trh411_at_gmail.com>
Date: Sun, 11 May 2014 09:49:23 -0400
On Sun, May 11, 2014 at 9:39 AM, Sean Bruno <sbruno_at_ignoranthack.me> wrote:

> On Sun, 2014-05-11 at 20:49 +0800, bycn82 wrote:
> > As you can see below . it still did not find the src.opts.mk
> >
> >
> > root_at_FB10Head:/usr/src/sbin/ipfw # make
> > make: "/usr/src/sbin/ipfw/Makefile" line 3: Could not find src.opts.mk
> > make: "/usr/src/sbin/ipfw/Makefile" line 9: Malformed conditional
> > (${MK_PF} != "no")
> > make: "/usr/src/sbin/ipfw/../Makefile.inc" line 4: Could not find
> > src.opts.mk
> > make: "/usr/src/sbin/ipfw/../Makefile.inc" line 9: Malformed conditional
> > (${MK_DYNAMICROOT} == "no")
> > make: Fatal errors encountered -- cannot continue
> > make: stopped in /usr/src/sbin/ipfw
> > root_at_FB10Head:/usr/src/sbin/ipfw # uname -a
> > FreeBSD FB10Head 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r265868: Sun May
> > 11 11:44:35 UTC 2014     root_at_FB10Head:/usr/obj/usr/src/sys/GENERIC
>  amd64
> > _______________________________________________
> > freebsd-current_at_freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-current
> > To unsubscribe, send any mail to "
> freebsd-current-unsubscribe_at_freebsd.org"
>
>
> I suspect you are seeing the same issue as described in the thread
> "delete-old issue with src.opts.mk" on -current.
>

I successfully built -CURRENT 265866 last night and did not run into this
problem. However, I ran -DNO_CLEAN and had no need to rebuild ipfw from my
previous build(s). If I now go into the /usr/src/sbin/ipfw directory and
simply do a 'make', I can duplicate this error.

The /usr/src/sbin/ipfw/Makefile includes an .include for src.opts.mk:

# $FreeBSD: head/sbin/ipfw/Makefile 265420 2014-05-06 04:22:01Z imp $

.include <src.opts.mk>

PROG= ipfw
SRCS= ipfw2.c dummynet.c ipv6.c main.c nat.c
WARNS?= 2
...

Maybe it should not?

-Tom
Received on Sun May 11 2014 - 11:49:24 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:49 UTC