Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 56E446DE0924 for ; Tue, 30 Jun 2015 10:04:48 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.176 X-Spam-Level: X-Spam-Status: No, score=0.176 tagged_above=-999 required=5 tests=[AWL=0.176] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08y1oqnvwyX8 for ; Tue, 30 Jun 2015 10:04:46 -0700 (PDT) Received: from mx.xen14.node3324.gplhost.com (gitolite.debian.net [87.98.215.224]) by arlo.cworth.org (Postfix) with ESMTPS id 781466DE09FB for ; Tue, 30 Jun 2015 10:04:43 -0700 (PDT) Received: from remotemail by mx.xen14.node3324.gplhost.com with local (Exim 4.80) (envelope-from ) id 1Z9ywF-0004nW-PA; Tue, 30 Jun 2015 17:03:15 +0000 Received: (nullmailer pid 3685 invoked by uid 1000); Tue, 30 Jun 2015 17:02:52 -0000 From: David Bremner To: Suvayu Ali , notmuch@notmuchmail.org Subject: Re: notmuch release 0.20.2 now available In-Reply-To: <20150630084018.GO24926@chitra.no-ip.org> References: <87h9pplqer.fsf@maritornes.cs.unb.ca> <20150630063942.GM24926@chitra.no-ip.org> <87a8vhlkdv.fsf@maritornes.cs.unb.ca> <20150630084018.GO24926@chitra.no-ip.org> User-Agent: Notmuch/0.20.2 (http://notmuchmail.org) Emacs/24.4.1 (x86_64-pc-linux-gnu) Date: Tue, 30 Jun 2015 19:02:52 +0200 Message-ID: <87r3otjfib.fsf@maritornes.cs.unb.ca> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Jun 2015 17:04:48 -0000 Suvayu Ali writes: > > Yes, I have looked at what the official packages[1] do, I do exactly the > same[2]. Essentially the spec file does the following: > > pushd bindings/ruby > ruby extconf.rb --vendor --with-cflags="%{optflags}" > make %{?_smp_mflags} > popd I think the problem is contained in the original message. Since we want to create a shared library "notmuch.so" for ruby to import, we need to compile the C files in bindings/ruby with -fPIC. I don't know if this is Debian specific, or ruby version specific, but on my Debian Jessie machine with ruby 2.1, the generated Makefile bindings/ruby/Makefile has CFLAGS = $(CCDLFLAGS) -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC $(ARCH_FLAG) in it even when invoked outside the notmuch build system; e.g. % cd bindings/ruby && ruby extconf.rb I guess the first step is to see if the -fPIC flag is also there on Fedora, and if not, why not. If I look at the builds for 0.19 [1] it seems it is. But notice there it is not required to pass it in to "--with-cflags" d [1] https://kojipkgs.fedoraproject.org/packages/notmuch/0.19/1.fc21/data/logs/x86_64/build.log - I couldn't find x86_64 build logs for 0.20