i have a pedantic build system that nukes my build area, copies the
source files out of the checked out tree (sans CVS directories), and
builds completely afresh.

today i noticed it dying in the libpcap build with:

        ...
        creating ./config.status
        creating Makefile
        creating config.h
        gcc -O2 -I. -DHAVE_CONFIG_H -c ./pcap-bpf.c
        gcc -O2 -I. -DHAVE_CONFIG_H -c ./fad-getad.c
        gcc -O2 -I. -DHAVE_CONFIG_H -c ./pcap.c
        ./pcap.c:619: version.h: No such file or directory

the fix is simple (and attached): add a dependency in Makefile.in that
says that pcap.o is dependent on version.h.

-- 
|-----< "CODE WARRIOR" >-----|
[EMAIL PROTECTED]             * "ah!  i see you have the internet
[EMAIL PROTECTED] (Andrew Brown)                that goes *ping*!"
[EMAIL PROTECTED]       * "information is power -- share the wealth."
Index: Makefile.in
===================================================================
RCS file: /tcpdump/master/libpcap/Makefile.in,v
retrieving revision 1.94
diff -u -r1.94 Makefile.in
--- Makefile.in 13 Feb 2003 07:56:38 -0000      1.94
+++ Makefile.in 20 Feb 2003 17:14:00 -0000
@@ -108,6 +108,8 @@
 scanner.o: scanner.c tokdefs.h
        $(CC) $(CFLAGS) -c scanner.c
 
+pcap.o: version.h
+
 tokdefs.h: grammar.c
 grammar.c: $(srcdir)/grammar.y
        @rm -f grammar.c tokdefs.h

Reply via email to