Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 338254

Summary: net-analyzer/dsniff-2.4_beta1-r5 fails to merge with "No rule to make target mount.h, needed by pcaputil.o"
Product: Gentoo Linux Reporter: Willard Dawson <willard.dawson>
Component: Current packagesAssignee: Gentoo Netmon project <netmon>
Status: RESOLVED DUPLICATE    
Severity: normal CC: dkarasik, konrad.karczewski
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Build log
Emerge info
Emerge -pqv
Emerge environment

Description Willard Dawson 2010-09-21 01:23:13 UTC
See attachments for build log, etc.

Reproducible: Always

Steps to Reproduce:
1.emerge -puDN world
2.
3.

Actual Results:  
x86_64-pc-linux-gnu-gcc -O2 -pipe -ggdb -D_BSD_SOURCE -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H  -I.  -I./missing  -c ./dnsspoof.c
make: *** No rule to make target `mount.h', needed by `pcaputil.o'.  Stop.
make: *** Waiting for unfinished jobs....
emake failed
Comment 1 Willard Dawson 2010-09-21 01:24:40 UTC
Created attachment 248236 [details]
Build log
Comment 2 Willard Dawson 2010-09-21 01:24:53 UTC
Created attachment 248238 [details]
Emerge info
Comment 3 Willard Dawson 2010-09-21 01:25:06 UTC
Created attachment 248240 [details]
Emerge -pqv
Comment 4 Willard Dawson 2010-09-21 01:25:19 UTC
Created attachment 248242 [details]
Emerge environment
Comment 5 Konrad Karczewski 2010-09-21 13:48:35 UTC
The problem is in Makefile.in - there are no separate rules for rpc_gen -h and -c, while the dependencies on source and headers are separate. This fixes the issue:

diff -Nau Makefile.in.old Makefile.in
--- Makefile.in.old     2010-09-21 15:44:25.973159833 +0200
+++ Makefile.in 2010-09-21 15:45:29.581190137 +0200
@@ -82,13 +82,17 @@
 $(OBJS): $(GEN)
 
 mount.c: mount.x
-       rpcgen -h mount.x -o mount.h
        rpcgen -c mount.x -o mount.c
 
+mount.h: mount.x
+       rpcgen -h mount.x -o mount.h
+
 nfs_prot.c: nfs_prot.x
-       rpcgen -h nfs_prot.x -o nfs_prot.h
        rpcgen -c nfs_prot.x -o nfs_prot.c
 
+nfs_prot.h: nfs_prot.x
+       rpcgen -h nfs_prot.x -o nfs_prot.h
+
 $(LIBOBJS):
        $(CC) $(CFLAGS) $(INCS) -c $(srcdir)/missing/$*.c
 
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2010-09-21 15:35:48 UTC

*** This bug has been marked as a duplicate of bug 338086 ***