From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Kent Subject: [PATCH 15/25] autofs-5.0.7 - fix occasional build error when enable parallel compiling Date: Mon, 19 Aug 2013 09:13:35 +0800 Message-ID: <20130819011334.6472.61544.stgit@perseus.fritz.box> References: <20130819010909.6472.32512.stgit@perseus.fritz.box> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=themaw.net; h= subject:to:from:cc:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=mesmtp; bh=ocYKEO8uTtffPhz5DnwndSz6UkM=; b=vj2CXSk33HXK4yEq8FWKpsuG2q7t /EMwSyM9uJoOmgwb0G0x5ah5KgQHift4txgZJOE59ywc4xzkHL0JYTmK4kbVCx6l /WZ8eENjyN80AqYoTHJ7UKmjGxQ2iImSjUruXkrvxPu6Sh5wt51RJD/HuQ3FueAW 9EvAR7q3ZnjBDCY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=subject:to:from:cc:date:message-id :in-reply-to:references:mime-version:content-type :content-transfer-encoding; s=smtpout; bh=ocYKEO8uTtffPhz5DnwndS z6UkM=; b=meysa8tpfBFh9jNctUHHSoLkDW0/t5tdVGUtNWNCWrOujwRrci3qCQ Bb+qGlfAazNi527W0PS1qnO12mnw7X4A/L0jLZ+VFThgk9oBkxSrAPEuHIay9IDD t58PrFebTOZkZLjuxS+ESsxoBf7nR53XfYu0/8d9vCTf3njT22vNk= In-Reply-To: <20130819010909.6472.32512.stgit@perseus.fritz.box> Sender: autofs-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" To: autofs mailing list Cc: Gordon Lack , "Lan Yixun (dlan)" , Leonardo Chiquitto , Dustin Polke 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". 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: