Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DB1AF4749 for ; Wed, 8 Jun 2011 15:26:44 +0000 (UTC) Received: (qmail 71146 invoked by uid 500); 8 Jun 2011 15:26:44 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 71084 invoked by uid 500); 8 Jun 2011 15:26:44 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 71076 invoked by uid 99); 8 Jun 2011 15:26:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jun 2011 15:26:44 +0000 X-ASF-Spam-Status: No, hits=4.0 required=5.0 tests=FREEMAIL_FROM,FREEMAIL_REPLY,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of randall.leeds@gmail.com designates 209.85.214.52 as permitted sender) Received: from [209.85.214.52] (HELO mail-bw0-f52.google.com) (209.85.214.52) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jun 2011 15:26:37 +0000 Received: by bwj24 with SMTP id 24so752213bwj.11 for ; Wed, 08 Jun 2011 08:26:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=AlhFDcsaG/IB6VXGUEI2lPRlEtkNd2FSvoekLj+pI8E=; b=qxbbx40yTVLbWqjR7tb0Na/8uJTM1MijLZlLjoA+ctSecDA9ORaYXpNxm2Rt0mMdK4 VS4U6c98IVkBbD4GQ3JaFoIK7cjV8Je3y5HshMaXNnqDQf/FIZbs5FvXzyamEHo2b0TC Oqmmvto1jOCvvu6yrEM8OCmSBKvuQ5Cz7tFRg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=OZKDOZBslPBw/Fg5qeu14mqhHWpz+eHUu25txPYYegk5vaRynjY5uJjBUG9l36wPLS r9s2pvahODX/tqiEVeYb+d6irHgh1x6B+UtEGGZQiVAfiiS1BsigT4DuVt539xVt3aXp 3v/lM/2YkIBVj6dxAqSATYkq16KlOfNVWLDYU= MIME-Version: 1.0 Received: by 10.204.73.206 with SMTP id r14mr949731bkj.181.1307546776886; Wed, 08 Jun 2011 08:26:16 -0700 (PDT) Received: by 10.204.62.12 with HTTP; Wed, 8 Jun 2011 08:26:16 -0700 (PDT) Received: by 10.204.62.12 with HTTP; Wed, 8 Jun 2011 08:26:16 -0700 (PDT) In-Reply-To: References: <20110608095500.7C8F52388A39@eris.apache.org> <6B7A8FD7-78FA-4182-AAC5-AD33B16977B0@dionne-associates.com> Date: Wed, 8 Jun 2011 08:26:16 -0700 Message-ID: Subject: Re: svn commit: r1133319 - /couchdb/trunk/src/ejson/Makefile.am From: Randall Leeds To: dev@couchdb.apache.org Content-Type: multipart/alternative; boundary=0016e6dbe84229de3704a534f5d0 X-Virus-Checked: Checked by ClamAV on apache.org --0016e6dbe84229de3704a534f5d0 Content-Type: text/plain; charset=UTF-8 Strange. On my machine that command includes -I for erlang includes. Paul, that's ERLANG_FLAGS as set by configure, not ERL_FLAGS. Does it help if you switch it to CXX or CPP? Maybe your systems are stricter about using those variables for the .cc based stuff. Look in that folder's generated Makefile. Does ERLANG_FLAGS have info for finding erl_nif.h? What's that make target have for variables and does it include the la_CFLAGS automake is supposed to have stuck in there? And does that include ERLANG_FLAGS? Sorry for breaking this for you. Thanks for your help. On Jun 8, 2011 7:24 AM, "Filipe David Manana" wrote: > Breaks my build (make dev) as well: > > make[3]: Entering directory `/home/fdmanana/git/hub/couchdb/src/snappy' > /bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H > -I. -I../.. -I../../src/snappy/google-snappy -D_XOPEN_SOURCE -g > -O2 -MT snappy_nif.lo -MD -MP -MF .deps/snappy_nif.Tpo -c -o > snappy_nif.lo snappy_nif.cc > libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. > -I../../src/snappy/google-snappy -D_XOPEN_SOURCE -g -O2 -MT > snappy_nif.lo -MD -MP -MF .deps/snappy_nif.Tpo -c snappy_nif.cc -fPIC > -DPIC -o .libs/snappy_nif.o > In file included from snappy_nif.cc:21: > erl_nif_compat.h:27: fatal error: erl_nif.h: No such file or directory > compilation terminated. > make[3]: *** [snappy_nif.lo] Error 1 > > > On Wed, Jun 8, 2011 at 3:21 PM, Paul Davis wrote: >> On Wed, Jun 8, 2011 at 10:20 AM, Robert Dionne >> wrote: >>> well it breaks my build :) >>> >>> >>> >>> >>> >>> On Jun 8, 2011, at 10:15 AM, Paul Davis wrote: >>> >>>> On Wed, Jun 8, 2011 at 5:55 AM, wrote: >>>>> Author: randall >>>>> Date: Wed Jun 8 09:55:00 2011 >>>>> New Revision: 1133319 >>>>> >>>>> URL: http://svn.apache.org/viewvc?rev=1133319&view=rev >>>>> Log: >>>>> include $(ERLANG_FLAGS) when building ejson nif >>>>> >>>>> Modified: >>>>> couchdb/trunk/src/ejson/Makefile.am >>>>> >>>>> Modified: couchdb/trunk/src/ejson/Makefile.am >>>>> URL: http://svn.apache.org/viewvc/couchdb/trunk/src/ejson/Makefile.am?rev=1133319&r1=1133318&r2=1133319&view=diff >>>>> ============================================================================== >>>>> --- couchdb/trunk/src/ejson/Makefile.am (original) >>>>> +++ couchdb/trunk/src/ejson/Makefile.am Wed Jun 8 09:55:00 2011 >>>>> @@ -65,6 +65,7 @@ if USE_OTP_NIFS >>>>> ejsonpriv_LTLIBRARIES = ejson.la >>>>> >>>>> ejson_la_SOURCES = $(EJSON_C_SRCS) >>>>> +ejson_la_CFLAGS = $(ERLANG_FLAGS) >>>>> ejson_la_LDFLAGS = -module -avoid-version >>>>> >>>>> if WINDOWS >>>>> >>>>> >>>>> >>>> >>>> Is this right? >>> >>> >> >> Pretty sure ERL_FLAGS is for flags for erlc which probably aren't >> gonna go so hot for gcc. Just saying is all. >> > > > > -- > Filipe David Manana, > fdmanana@gmail.com, fdmanana@apache.org > > "Reasonable men adapt themselves to the world. > Unreasonable men adapt the world to themselves. > That's why all progress depends on unreasonable men." --0016e6dbe84229de3704a534f5d0--