From: "Lan Yixun (dlan)" Subject: [PATCH] fix occasional build error when enable parallel compiling Date: Thu, 25 Jul 2013 10:19:14 +0800 Message-ID: <1374718754-8961-1-git-send-email-dennis.yxun@gmail.com> Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:x-mailer; bh=7DJMfGHkaqG2K3oHaa5oxvkuZSnTJadQYxgOpYpOTg0=; b=kbDz8YNQVP180BDtVCKK6hCdAWOesU8tH+nf+SJskqohOcbRtF3dIkdcXBj76/Byyo XqTHwbEYBMyW3GZY+RDJ2hBf2XfsVtxyK37Phriq7Cw6piBQM6UQpd58L1W1Vx40bJ6s WujOy4dvNXtWdlR85J8cM3E4d4x7yB7MfZI6JpDfNzlPUeNrwmN0xkGR3p2CvsVpr4oN YiK/B6YjxlZTmR0W3W9/E2wz7ziA7TBwVlcpTqzXcmupPCShdHWLFKJWVtvHSBnZOHWm 9vNB0nWaQaql17WSlIH2/IlrZNS1LBacSqa4ioxBbej/Mpo2OYOJ28IUZa8rIoakq4to yVhg== Sender: autofs-owner@vger.kernel.org List-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: autofs@vger.kernel.org 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: -- 1.8.3.2