[Reconnoiter-devel] fix build on systems without JAVA & DTrace

Piotr Sikora piotr.sikora at frickle.com
Tue May 25 10:10:44 EDT 2010


Hi,
I've attached fix for build on systems without JAVA & DTrace.

For the reference:

Problem on systems without JAVA (.in + generated output):

reconnoiter/src/Makefile.in:
============================
java-bits:
        @test -n "@JAVAPARTS@" && (cd java && make -s)

reconnoiter/src/Makefile:
=========================
java-bits:
        @test -n "" && (cd java && make -s)

make:
=====
(...)
- linking stratcond
*** Error code 1

This code looks OK, but failed "test" results in error that stops build 
process.


Problem on systems without DTrace (.in + generated output):

reconnoiter/src/utils/Makefile.in:
==================================
@DTRACEOBJ@:    $(OBJS)
        @DTRACE@ @DTRACEFLAGS@ -G -s dtrace_probes.d -o @DTRACEOBJ@ $(OBJS)

noit_log.o:     @DTRACEHDR@

@DTRACEHDR@:    dtrace_probes.d
        @DTRACE@ -h -s dtrace_probes.d

reconnoiter/src/utils/Makefile:
===============================
:       $(OBJS)
          -G -s dtrace_probes.d -o  $(OBJS)

noit_log.o:     @DTRACEHDR@

@DTRACEHDR@:    dtrace_probes.d
         -h -s dtrace_probes.d

make:
=====
(...)
- compiling noit_skiplist.c
h: not found
*** Error code 1 (ignored)
- compiling noit_log.c
(...)

This error is fortunately ignored (thanks to the leading "-"), but should be 
fixed anyway.

Best regards,
Piotr Sikora < piotr.sikora at frickle.com >
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: build_without_java_and_dtrace.patch
Type: application/octet-stream
Size: 1338 bytes
Desc: not available
Url : http://lists.omniti.com/pipermail/reconnoiter-devel/attachments/20100525/996c4787/attachment.obj 


More information about the Reconnoiter-devel mailing list