From: Ian Kent Subject: Re: [PATCH] fix occasional build error when enable parallel compiling Date: Thu, 25 Jul 2013 16:23:42 +0800 Message-ID: <1374740622.2408.47.camel@perseus.fritz.box> References: <1374718754-8961-1-git-send-email-dennis.yxun@gmail.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=themaw.net; h= message-id:subject:from:to:cc:date:in-reply-to:references :content-type:mime-version:content-transfer-encoding; s=mesmtp; bh=fbz7+3BJII6aOZ7HJHf5mLZa8j4=; b=kAvv7KJvbl6YTPQ4FgdYyEr8jGzE 8D7BgwMX4w5z+6pnUdApcCIDuEe1jZIuuBekFNQbzTC9QJWiyi19CRjQOJ/SaPve gunBxonHZKaJhW+ull5AVeJZKfOvK+Pnwk1UH6DrlMRj/p0vwG4foQwuLrEJxx1K i48CDjzDKacBcew= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:subject:from:to:cc:date :in-reply-to:references:content-type:mime-version :content-transfer-encoding; s=smtpout; bh=fbz7+3BJII6aOZ7HJHf5mL Za8j4=; b=H0zjia/1ZfShUkzS4+Bz+yHq+EYk0gitgDPQizndK3Oa62feyp3Nmj IljKPD5uVW5KxjehvTi/mcgjoj9Dd+CXlnEh3apYgWfuKmct7ysfA6pWuBUxyP7M kLJ4BYwZSYFOYdhUv6veuY9HUyfyTGX1kYRrq26Gr2cuwejuX/qiE= In-Reply-To: <1374718754-8961-1-git-send-email-dennis.yxun@gmail.com> Sender: autofs-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" To: "Lan Yixun (dlan)" Cc: autofs@vger.kernel.org On Thu, 2013-07-25 at 10:19 +0800, Lan Yixun (dlan) wrote: > From: "Lan Yixun (dlan)" > > the problem here we pass "-jX" ( X> 1) to "make", and "rpc_subs.c" > occasionally fail to compile due to it can't find "mount.h", > the root cause it that "mount.h" haven't generated by that time, > add this patch should fix this problem. > to make rpc_subs.o explicitly depend on "mount.h". This one is included in the list of patches now as well. Ian > > --- > error message: > > x86_64-pc-linux-gnu-gcc -O2 -pipe -march=core2 -D_REENTRANT > -D_FILE_OFFSET_BITS=64 -I/usr/include/tirp c -D_REENTRANT > -D_FILE_OFFSET_BITS=64 -I/usr/include/tirpc -I../include -fPIC > -D_GNU_SOURCE -DAUTOFS_MA P_DIR=\"/etc/autofs\" > -DAUTOFS_CONF_DIR=\"/etc/conf.d\" -c rpc_subs.c > rpc_subs.c:46:19: fatal error: mount.h: No such file or directory > #include "mount.h" > ^ > compilation terminated. > make[1]: *** [rpc_subs.o] Error 1 > make[1]: *** Waiting for unfinished > jobs.... > > Signed-off-by: Lan Yixun (dlan) > --- > lib/Makefile | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/lib/Makefile b/lib/Makefile > index 5418009..314779b 100644 > --- a/lib/Makefile > +++ b/lib/Makefile > @@ -70,6 +70,8 @@ nss_tok.o: nss_tok.c nss_parse.tab.h > > nss_parse.tab.o: nss_parse.tab.c nss_parse.tab.h > > +rpc_subs.o: mount.h > + > install: all > > clean: