From dev-return-16694-apmail-couchdb-dev-archive=couchdb.apache.org@couchdb.apache.org Tue Jun 14 18:43:22 2011 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 738846D4D for ; Tue, 14 Jun 2011 18:43:22 +0000 (UTC) Received: (qmail 27720 invoked by uid 500); 14 Jun 2011 18:43:21 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 27684 invoked by uid 500); 14 Jun 2011 18:43:21 -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 27676 invoked by uid 99); 14 Jun 2011 18:43:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Jun 2011 18:43:21 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of fdmanana@gmail.com designates 209.85.160.52 as permitted sender) Received: from [209.85.160.52] (HELO mail-pw0-f52.google.com) (209.85.160.52) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Jun 2011 18:43:16 +0000 Received: by pwi4 with SMTP id 4so3625633pwi.11 for ; Tue, 14 Jun 2011 11:42:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=uF390Ve9iM8SNQfyLskknOgtsbNaZW+8MfNy7odqBUs=; b=N4Leeec7xuvG1Kuyghpt2ztVQUvtezjY09LjbTo1shFP7HeieIwvMbk0vqkFG6ke0V n/6AKD1OM/bhnqD9XPEhj62ymsB7R13c/+Dig3EaldJU9pCVqf0ihkYr1cR1tDxL0YCJ VEy5EWaiYUnr+/75rB0g6GEJTVBxlXF6QjX0c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=YoWIM2a5VW2HUaqJ/sq1IGlZHZbdcN8V1QQVLRISDtu5H0bF6rlDWYcCQidywX9z0I wzwxWXPu12mCLUekwIpeprsc8SkApdsXuF3ohLjBXfEIiaE1vRy3/ZFW5y+TxlJkCtqF oxos/BQa11PdMS9NnHwyR+mohD3b5YwikOB8c= MIME-Version: 1.0 Received: by 10.68.12.35 with SMTP id v3mr3286515pbb.78.1308076976103; Tue, 14 Jun 2011 11:42:56 -0700 (PDT) Sender: fdmanana@gmail.com Received: by 10.68.64.202 with HTTP; Tue, 14 Jun 2011 11:42:56 -0700 (PDT) In-Reply-To: References: Date: Tue, 14 Jun 2011 19:42:56 +0100 X-Google-Sender-Auth: 9neDb2yjFDW7yXio-psSKJ-EoGk Message-ID: Subject: Re: make error with latest trunk (ICU related autotools config) From: Filipe David Manana To: dev@couchdb.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, Jun 14, 2011 at 7:41 PM, Randall Leeds wr= ote: > On Tue, Jun 14, 2011 at 11:29, Filipe David Manana = wrote: >> Funny thing, this only happens with "iTerm". Using the standard >> Terminal that comes with OS X I don't get the \c from the icu-config >> command. *uckin weird. >> That said, with Terminal I'm able to build trunk successfully. > > Weird indeed. Are you comfortable calling this a bug in iTerm and > leaving the commit alone? Yes I am. Thanks for looking into it > >> >> On Tue, Jun 14, 2011 at 7:02 PM, Filipe David Manana >> wrote: >>> Seems to come from the icu-config command itself: >>> >>> $ icu-config --shlib-c >>> /usr/bin/gcc-4.2 -dynamiclib -dynamic -O2 =C2=A0-O2 -Wall -ansi -pedant= ic >>> -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings >>> -Wno-long-long =C2=A0 =C2=A0\c >>> >>> $ icu-config --shlib-cc >>> /usr/bin/g++-4.2 -dynamiclib -dynamic -O2 =C2=A0-O2 -W -Wall -ansi >>> -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long =C2=A0 =C2=A0\= c >>> >>> So, either something that can be added to >>> http://svn.apache.org/viewvc?view=3Drevision&revision=3D1133287 =C2=A0o= r revert >>> this? >>> >>> >>> On Tue, Jun 14, 2011 at 6:57 PM, Filipe David Manana >>> wrote: >>>> On Tue, Jun 14, 2011 at 6:53 PM, Randall Leeds wrote: >>>>>> "... -Wwrite-strings -Wno-long-long =C2=A0\c >>>>>> -I/opt/otp14/lib/erlang/usr/include ..." >>>>>> >>>>> >>>>> Based on the settings that I have in my build, I think that's at the >>>>> border of ICU_CFLAGS and ERLANG_FLAGS. >>>>> Can you check src/couchdb/priv/Makefile for both of these variables >>>>> and see if either has the \c? >>>> >>>> Forgot to mention it before. The \c's appear only in the top level >>>> Makefile, generted by configure: >>>> >>>> ICU_BIN =3D >>>> ICU_CFLAGS =3D -O2 =C2=A0-O2 -Wall -ansi -pedantic -Wshadow -Wpointer-= arith >>>> -Wmissing-prototypes -Wwrite-strings -Wno-long-long =C2=A0\c >>>> ICU_CONFIG =3D /opt/local/bin/icu-config >>>> ICU_CXXFLAGS =3D -O2 =C2=A0-O2 -W -Wall -ansi -pedantic -Wpointer-arit= h >>>> -Wwrite-strings -Wno-long-long =C2=A0\c >>>> ICU_LIBS =3D =C2=A0-lpthread -lm =C2=A0 -L/opt/local/lib -licui18n -li= cuuc >>>> -licudata =C2=A0-lpthread -lm =C2=A0\c >>>> >>>> Funny, they only appear in the ICU related variables. On Linux these >>>> lines end with 4 spaces instead of a \c >>>> Emacs whitespace-mode doesn't seem to highlight any weird unprintable >>>> characters. >>>> >>>> >>>>> >>>>>> Full command line: >>>>>> >>>>>> /bin/sh ../../../libtool =C2=A0--tag=3DCC =C2=A0 --mode=3Dcompile gc= c >>>>>> -DHAVE_CONFIG_H -I. -I../../.. -I../../../src/snappy/google-snappy >>>>>> -I/opt/local/include -I/usr/local/include -I/usr/include =C2=A0-O2 = =C2=A0-O2 >>>>>> -Wall -ansi -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes >>>>>> -Wwrite-strings -Wno-long-long =C2=A0\c >>>>>> -I/opt/otp14/lib/erlang/usr/include =C2=A0-MT >>>>>> couch_icu_driver_la-couch_icu_driver.lo -MD -MP -MF >>>>>> .deps/couch_icu_driver_la-couch_icu_driver.Tpo -c -o >>>>>> couch_icu_driver_la-couch_icu_driver.lo `test -f >>>>>> 'icu_driver/couch_icu_driver.c' || echo >>>>>> './'`icu_driver/couch_icu_driver.c >>>>>> libtool: compile: =C2=A0gcc -DHAVE_CONFIG_H -I. -I../../.. >>>>>> -I../../../src/snappy/google-snappy -I/opt/local/include >>>>>> -I/usr/local/include -I/usr/include -O2 -O2 -Wall -ansi -pedantic >>>>>> -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings >>>>>> -Wno-long-long \c -I/opt/otp14/lib/erlang/usr/include -MT >>>>>> couch_icu_driver_la-couch_icu_driver.lo -MD -MP -MF >>>>>> .deps/couch_icu_driver_la-couch_icu_driver.Tpo -c >>>>>> icu_driver/couch_icu_driver.c =C2=A0-fno-common -DPIC -o >>>>>> .libs/couch_icu_driver_la-couch_icu_driver.o >>>>>> i686-apple-darwin10-gcc-4.2.1: c: No such file or directory >>>>>> >>>>>> The same at friendpaste might be more readble: >>>>>> http://friendpaste.com/3ERusm7juiyJLY0grCBQ97 >>>>>> >>>>>> Any idea about this? >>>>>> >>>>>>> >>>>>>>> >>>>>>>> Agreed. >>>>>>>> >>>>>>>>> On Jun 12, 2011 4:07 PM, "Filipe David Manana" wrote: >>>>>>>>>> Hi all, >>>>>>>>>> >>>>>>>>>> After all the recent changes in the autotools config, I'm able t= o >>>>>>>>>> build trunk on Linux, however I'm no longer able to do it on a 3= 2bits >>>>>>>>>> Mac OS X (snow leopard). It seems the include path is not what i= t used >>>>>>>>>> to be. The relevant `make`/`make dev` output: >>>>>>>>>> >>>>>>>>>> /bin/sh ../../../libtool --tag=3DCC --mode=3Dcompile gcc >>>>>>>>>> -DHAVE_CONFIG_H -I. -I../../../../src/couchdb/priv -I../../.. >>>>>>>>>> -I../../../src/snappy/google-snappy -O2 -O2 -Wall -ansi -pedanti= c >>>>>>>>>> -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings >>>>>>>>>> -Wno-long-long \c >>>>>>>>>> >>>>>>>>> -I/Users/fdmanana/tmp/couchdb/apache-couchdb-1.2.0a-0d27a97-git/_= inst/lib/erlang/usr/include >>>>>>>>>> -I/usr/lib/erlang/usr/include -I/usr/local/lib/erlang/usr/includ= e >>>>>>>>>> -I/opt/local/lib/erlang/usr/include -MT >>>>>>>>>> couch_icu_driver_la-couch_icu_driver.lo -MD -MP -MF >>>>>>>>>> .deps/couch_icu_driver_la-couch_icu_driver.Tpo -c -o >>>>>>>>>> couch_icu_driver_la-couch_icu_driver.lo `test -f >>>>>>>>>> 'icu_driver/couch_icu_driver.c' || echo >>>>>>>>>> '../../../../src/couchdb/priv/'`icu_driver/couch_icu_driver.c >>>>>>>>>> libtool: compile: gcc -DHAVE_CONFIG_H -I. >>>>>>>>>> -I../../../../src/couchdb/priv -I../../.. >>>>>>>>>> -I../../../src/snappy/google-snappy -O2 -O2 -Wall -ansi -pedanti= c >>>>>>>>>> -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings >>>>>>>>>> -Wno-long-long c >>>>>>>>>> >>>>>>>>> -I/Users/fdmanana/tmp/couchdb/apache-couchdb-1.2.0a-0d27a97-git/_= inst/lib/erlang/usr/include >>>>>>>>>> -I/usr/lib/erlang/usr/include -I/usr/local/lib/erlang/usr/includ= e >>>>>>>>>> -I/opt/local/lib/erlang/usr/include -MT >>>>>>>>>> couch_icu_driver_la-couch_icu_driver.lo -MD -MP -MF >>>>>>>>>> .deps/couch_icu_driver_la-couch_icu_driver.Tpo -c >>>>>>>>>> ../../../../src/couchdb/priv/icu_driver/couch_icu_driver.c >>>>>>>>>> -fno-common -DPIC -o .libs/couch_icu_driver_la-couch_icu_driver.= o >>>>>>>>>> i686-apple-darwin10-gcc-4.2.1: c: No such file or directory >>>>>>>>>> ../../../../src/couchdb/priv/icu_driver/couch_icu_driver.c:27:26= : >>>>>>>>>> error: unicode/ucol.h: No such file or directory >>>>>>>>>> ../../../../src/couchdb/priv/icu_driver/couch_icu_driver.c:28:30= : >>>>>>>>>> error: unicode/ucasemap.h: No such file or directory >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> With trunk revision 1132947 (and before), on this same machine, >>>>>>>>>> couch_icu_driver compiles just fine. Relevant make output: >>>>>>>>>> >>>>>>>>>> /bin/sh ../../../libtool --tag=3DCC --mode=3Dcompile gcc >>>>>>>>>> -DHAVE_CONFIG_H -I. -I../../.. -I../../../src/snappy/google-snap= py >>>>>>>>>> -L/usr/local/lib -L/opt/local/lib -I/opt/otp14/lib/erlang/usr/in= clude >>>>>>>>>> -I/usr/include -I/usr/include/js -I/usr/include/mozjs >>>>>>>>>> -I/usr/local/include -I/opt/local/include -I/usr/local/include/j= s >>>>>>>>>> -I/opt/local/include/js -DXP_UNIX -I/opt/local/include\c >>>>>>>>>> -L/opt/local/lib\c -g -O2 -MT couch_icu_driver_la-couch_icu_driv= er.lo >>>>>>>>>> -MD -MP -MF .deps/couch_icu_driver_la-couch_icu_driver.Tpo -c -o >>>>>>>>>> couch_icu_driver_la-couch_icu_driver.lo `test -f >>>>>>>>>> 'icu_driver/couch_icu_driver.c' || echo >>>>>>>>>> './'`icu_driver/couch_icu_driver.c >>>>>>>>>> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../.. >>>>>>>>>> -I../../../src/snappy/google-snappy -L/usr/local/lib -L/opt/loca= l/lib >>>>>>>>>> -I/opt/otp14/lib/erlang/usr/include -I/usr/include -I/usr/includ= e/js >>>>>>>>>> -I/usr/include/mozjs -I/usr/local/include -I/opt/local/include >>>>>>>>>> -I/usr/local/include/js -I/opt/local/include/js -DXP_UNIX >>>>>>>>>> -I/opt/local/includec -L/opt/local/libc -g -O2 -MT >>>>>>>>>> couch_icu_driver_la-couch_icu_driver.lo -MD -MP -MF >>>>>>>>>> .deps/couch_icu_driver_la-couch_icu_driver.Tpo -c >>>>>>>>>> icu_driver/couch_icu_driver.c -fno-common -DPIC -o >>>>>>>>>> .libs/couch_icu_driver_la-couch_icu_driver.o >>>>>>>>>> mv -f .deps/couch_icu_driver_la-couch_icu_driver.Tpo >>>>>>>>>> .deps/couch_icu_driver_la-couch_icu_driver.Plo >>>>>>>>>> /bin/sh ../../../libtool --tag=3DCC --mode=3Dlink gcc >>>>>>>>>> -I/opt/local/include\c -L/opt/local/lib\c -g -O2 -module >>>>>>>>>> -avoid-version -I/opt/local/include\c -L/opt/local/lib\c >>>>>>>>>> -L/usr/local/lib -L/opt/local/lib -I/opt/otp14/lib/erlang/usr/in= clude >>>>>>>>>> -I/usr/include -I/usr/include/js -I/usr/include/mozjs >>>>>>>>>> -I/usr/local/include -I/opt/local/include -I/usr/local/include/j= s >>>>>>>>>> -I/opt/local/include/js -DXP_UNIX -lm -o couch_icu_driver.la -rp= ath >>>>>>>>>> /opt/couchdb/lib/couchdb/erlang/lib/couch-1.2.0a-99a4982-git/pri= v/lib >>>>>>>>>> couch_icu_driver_la-couch_icu_driver.lo -licuuc -licudata -licui= 18n >>>>>>>>>> -L/usr/local/lib -L/opt/local/lib >>>>>>>>>> libtool: link: gcc -Wl,-undefined -Wl,dynamic_lookup -o >>>>>>>>>> .libs/couch_icu_driver.so -bundle >>>>>>>>>> .libs/couch_icu_driver_la-couch_icu_driver.o -L/opt/local/libc >>>>>>>>>> -L/usr/local/lib -L/opt/local/lib -lm -licuuc -licudata -licui18= n >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> Does anyone else has this issue as well? This is happening to me= even >>>>>>>>>> with a fresh git checkout. Or does one needs to specify some >>>>>>>>>> parameters to configure, etc? >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> Filipe David Manana, >>>>>>>>>> fdmanana@gmail.com, fdmanana@apache.org >>>>>>>>>> >>>>>>>>>> "Reasonable men adapt themselves to the world. >>>>>>>>>> =C2=A0Unreasonable men adapt the world to themselves. >>>>>>>>>> =C2=A0That's why all progress depends on unreasonable men." >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Filipe David Manana, >>>>>>>> fdmanana@gmail.com, fdmanana@apache.org >>>>>>>> >>>>>>>> "Reasonable men adapt themselves to the world. >>>>>>>> =C2=A0Unreasonable men adapt the world to themselves. >>>>>>>> =C2=A0That's why all progress depends on unreasonable men." >>>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Filipe David Manana, >>>>>> fdmanana@gmail.com, fdmanana@apache.org >>>>>> >>>>>> "Reasonable men adapt themselves to the world. >>>>>> =C2=A0Unreasonable men adapt the world to themselves. >>>>>> =C2=A0That's why all progress depends on unreasonable men." >>>>>> >>>>> >>>> >>>> >>>> >>>> -- >>>> Filipe David Manana, >>>> fdmanana@gmail.com, fdmanana@apache.org >>>> >>>> "Reasonable men adapt themselves to the world. >>>> =C2=A0Unreasonable men adapt the world to themselves. >>>> =C2=A0That's why all progress depends on unreasonable men." >>>> >>> >>> >>> >>> -- >>> Filipe David Manana, >>> fdmanana@gmail.com, fdmanana@apache.org >>> >>> "Reasonable men adapt themselves to the world. >>> =C2=A0Unreasonable men adapt the world to themselves. >>> =C2=A0That's why all progress depends on unreasonable men." >>> >> >> >> >> -- >> Filipe David Manana, >> fdmanana@gmail.com, fdmanana@apache.org >> >> "Reasonable men adapt themselves to the world. >> =C2=A0Unreasonable men adapt the world to themselves. >> =C2=A0That's why all progress depends on unreasonable men." >> > --=20 Filipe David Manana, fdmanana@gmail.com, fdmanana@apache.org "Reasonable men adapt themselves to the world. =C2=A0Unreasonable men adapt the world to themselves. =C2=A0That's why all progress depends on unreasonable men."