public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Notmuch mail indexer - talloc requirement?
@ 2015-03-19  2:23 Joe Rochette
  2015-03-19  8:51 ` Corinna Vinschen
  0 siblings, 1 reply; 11+ messages in thread
From: Joe Rochette @ 2015-03-19  2:23 UTC (permalink / raw)
  To: cygwin

Hi, 

I've been using mutt and offlineimap for sometime in cygwin to make my
windows system feel more at home.  

What I do miss however from my linux systems is the notmuch mail
indexer.  (http://notmuchmail.org/) 

According to the source tarball INSTALL file notmuch depends on four
libraries: Xapian, GMime 2.4 or 2.6,
Talloc, and zlib.  I believe i can get each of these from cygwin
packages with the exception of Talloc:

    Talloc
    ------
    Talloc is a memory-pool allocator used by Notmuch.

    Talloc is an extremely lightweight and easy-to-use tool for
    allocating memory in a hierarchical fashion and then freeing
    it with a single call of the top-level handle. Using it has
    made development of Notmuch much easier and much less prone to
    memory leaks.

    Talloc is available from http://talloc.samba.org/


I have attempted to compile Talloc (to in-turn compile Notmuch) and
after a long-running ./configure step i get an error on make which is
pasted below:   

[joe@my_pc talloc-2.1.1]$ make

WAF_MAKE=1 PATH=buildtools/bin:../../buildtools/bin:$PATH waf build
Waf: Entering directory `/cygdrive/c/Users/joe/talloc-2.1.1/bin'
[16/18] Linking default/cygpytalloc-util-2.dll
/usr/lib/gcc/i686-pc-cygwin/4.9.2/../../../../i686-pc-cygwin/bin/ld:
cannot find -ltalloc
collect2: error: ld returned 1 exit status
Waf: Leaving directory `/cygdrive/c/Users/joe/talloc-2.1.1/bin'
Build failed:  -> task failed (err #1):
        {task: cc_link pytalloc_util_6.o -> cygpytalloc-util-2.dll}
Makefile:6: recipe for target 'all' failed
make: *** [all] Error 1


Any ideas on what might be the issue?  Is anyone running notmuch (or
talloc) for anything out there?

Thanks in advance, 

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Notmuch mail indexer - talloc requirement?
  2015-03-19  2:23 Notmuch mail indexer - talloc requirement? Joe Rochette
@ 2015-03-19  8:51 ` Corinna Vinschen
  2015-03-19 15:00   ` joefromct
  0 siblings, 1 reply; 11+ messages in thread
From: Corinna Vinschen @ 2015-03-19  8:51 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 2118 bytes --]

On Mar 18 20:12, Joe Rochette wrote:
> Hi, 
> 
> I've been using mutt and offlineimap for sometime in cygwin to make my
> windows system feel more at home.  
> 
> What I do miss however from my linux systems is the notmuch mail
> indexer.  (http://notmuchmail.org/) 
> 
> According to the source tarball INSTALL file notmuch depends on four
> libraries: Xapian, GMime 2.4 or 2.6,
> Talloc, and zlib.  I believe i can get each of these from cygwin
> packages with the exception of Talloc:
> 
>     Talloc
>     ------
>     Talloc is a memory-pool allocator used by Notmuch.
> 
>     Talloc is an extremely lightweight and easy-to-use tool for
>     allocating memory in a hierarchical fashion and then freeing
>     it with a single call of the top-level handle. Using it has
>     made development of Notmuch much easier and much less prone to
>     memory leaks.
> 
>     Talloc is available from http://talloc.samba.org/
> 
> 
> I have attempted to compile Talloc (to in-turn compile Notmuch) and
> after a long-running ./configure step i get an error on make which is
> pasted below:   
> 
> [joe@my_pc talloc-2.1.1]$ make
> 
> WAF_MAKE=1 PATH=buildtools/bin:../../buildtools/bin:$PATH waf build
> Waf: Entering directory `/cygdrive/c/Users/joe/talloc-2.1.1/bin'
> [16/18] Linking default/cygpytalloc-util-2.dll
> /usr/lib/gcc/i686-pc-cygwin/4.9.2/../../../../i686-pc-cygwin/bin/ld:
> cannot find -ltalloc
> collect2: error: ld returned 1 exit status
> Waf: Leaving directory `/cygdrive/c/Users/joe/talloc-2.1.1/bin'
> Build failed:  -> task failed (err #1):
>         {task: cc_link pytalloc_util_6.o -> cygpytalloc-util-2.dll}
> Makefile:6: recipe for target 'all' failed
> make: *** [all] Error 1
> 
> 
> Any ideas on what might be the issue?  Is anyone running notmuch (or
> talloc) for anything out there?

Looks like a simple path problem in Makefile.  It just can't find
the lib when linking.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Notmuch mail indexer - talloc requirement?
  2015-03-19  8:51 ` Corinna Vinschen
@ 2015-03-19 15:00   ` joefromct
  2015-03-19 20:21     ` Corinna Vinschen
  2016-06-11 23:01     ` Jack Ostroff
  0 siblings, 2 replies; 11+ messages in thread
From: joefromct @ 2015-03-19 15:00 UTC (permalink / raw)
  To: cygwin

On Thu, Mar 19, 2015, at 04:36 AM, Corinna Vinschen wrote:
> On Mar 18 20:12, Joe Rochette wrote:
> > 
> > Any ideas on what might be the issue?  Is anyone running notmuch (or
> > talloc) for anything out there?
> 
> Looks like a simple path problem in Makefile.  It just can't find
> the lib when linking.
> 
> Corinna
> 
 
Ok, thanks for the hint.  Any idea on how i should go about correcting
this?  I have no idea where -ltalloc should be... but i'm assuming i can
link it with ld before the make?

Thanks again,  -Joe

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Notmuch mail indexer - talloc requirement?
  2015-03-19 15:00   ` joefromct
@ 2015-03-19 20:21     ` Corinna Vinschen
  2015-03-19 22:22       ` Yaakov Selkowitz
  2016-06-11 23:01     ` Jack Ostroff
  1 sibling, 1 reply; 11+ messages in thread
From: Corinna Vinschen @ 2015-03-19 20:21 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 940 bytes --]

On Mar 19 10:53, joefromct@fastmail.com wrote:
> On Thu, Mar 19, 2015, at 04:36 AM, Corinna Vinschen wrote:
> > On Mar 18 20:12, Joe Rochette wrote:
> > > 
> > > Any ideas on what might be the issue?  Is anyone running notmuch (or
> > > talloc) for anything out there?
> > 
> > Looks like a simple path problem in Makefile.  It just can't find
> > the lib when linking.
> > 
> > Corinna
> > 
>  
> Ok, thanks for the hint.  Any idea on how i should go about correcting
> this?  I have no idea where -ltalloc should be... but i'm assuming i can
> link it with ld before the make?

IIUC you're *building* talloc, so I assume the link lib is
part of the build directory.  I can't tell you why it doesn't
find the lib, though.  Something you have to hunt down.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Notmuch mail indexer - talloc requirement?
  2015-03-19 20:21     ` Corinna Vinschen
@ 2015-03-19 22:22       ` Yaakov Selkowitz
  0 siblings, 0 replies; 11+ messages in thread
From: Yaakov Selkowitz @ 2015-03-19 22:22 UTC (permalink / raw)
  To: cygwin

On Thu, 2015-03-19 at 21:03 +0100, Corinna Vinschen wrote:
> On Mar 19 10:53, joefromct@fastmail.com wrote:
> > On Thu, Mar 19, 2015, at 04:36 AM, Corinna Vinschen wrote:
> > > On Mar 18 20:12, Joe Rochette wrote:
> > > > Any ideas on what might be the issue?  Is anyone running notmuch (or
> > > > talloc) for anything out there?
> > > 
> > > Looks like a simple path problem in Makefile.  It just can't find
> > > the lib when linking.
> >  
> > Ok, thanks for the hint.  Any idea on how i should go about correcting
> > this?  I have no idea where -ltalloc should be... but i'm assuming i can
> > link it with ld before the make?
> 
> IIUC you're *building* talloc, so I assume the link lib is
> part of the build directory.  I can't tell you why it doesn't
> find the lib, though.  Something you have to hunt down.

Because this package uses waf, which is one of the very worst build
systems out there, and even worse is that IIRC samba products use a
*forked* waf.  You'll have to patch it in order for it to find the
in-tree libtalloc.  (Exactly how depends on which version of waf they're
using nowadays.)

--
Yaakov





--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Notmuch mail indexer - talloc requirement?
  2015-03-19 15:00   ` joefromct
  2015-03-19 20:21     ` Corinna Vinschen
@ 2016-06-11 23:01     ` Jack Ostroff
  2016-06-12  2:28       ` David Stacey
  2016-06-14 16:14       ` Corne Plas
  1 sibling, 2 replies; 11+ messages in thread
From: Jack Ostroff @ 2016-06-11 23:01 UTC (permalink / raw)
  To: cygwin

 <joefromct <at> fastmail.com> writes:
> On Thu, Mar 19, 2015, at 04:36 AM, Corinna Vinschen wrote:
> > On Mar 18 20:12, Joe Rochette wrote:
> > > 
> > > Any ideas on what might be the issue?  Is anyone running notmuch (or
> > > talloc) for anything out there?
> > 
> > Looks like a simple path problem in Makefile.  It just can't find
> > the lib when linking.
> > 
> > Corinna
> 
> Ok, thanks for the hint.  Any idea on how i should go about correcting
> this?  I have no idea where -ltalloc should be... but i'm assuming i can
> link it with ld before the make?

I realize this is a bit over a year old, but I'm in exactly the same
situation.  I was able to complete the talloc compile and install by going
into the bin/defaults directory and linking cygtalloc_2.dll to both
talloc.dll and cygtalloc.dll, and the same for cygpytalloc-util-2.dll.

However, even then, when doing ./configure on notmuch I still get errors:

/usr/include/xapian/version.h:28:2: error: #error The C++ ABI version of
compiler you are using does not match

/usr/include/xapian/version.h:31:2: error: #error The Xapian library was
built with g++ 4.8.3
 
My current g++ is 5.3.0.  At some point, I'll try recompiling Xapian myself,
but I wonder whether this hasn't caused problems for anyone else.

(I'm posting from gmane because I don't still have this message, although I
am subscribed to the list.)


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Notmuch mail indexer - talloc requirement?
  2016-06-11 23:01     ` Jack Ostroff
@ 2016-06-12  2:28       ` David Stacey
  2016-06-12  6:00         ` Jack Ostroff
  2016-06-12  7:53         ` Jack Ostroff
  2016-06-14 16:14       ` Corne Plas
  1 sibling, 2 replies; 11+ messages in thread
From: David Stacey @ 2016-06-12  2:28 UTC (permalink / raw)
  To: cygwin

On 11/06/16 19:55, Jack Ostroff wrote:
> I was able to complete the talloc compile and install by going
> into the bin/defaults directory and linking cygtalloc_2.dll to both
> talloc.dll and cygtalloc.dll, and the same for cygpytalloc-util-2.dll.
>
> However, even then, when doing ./configure on notmuch I still get errors:
>
> /usr/include/xapian/version.h:28:2: error: #error The C++ ABI version of
> compiler you are using does not match
>
> /usr/include/xapian/version.h:31:2: error: #error The Xapian library was
> built with g++ 4.8.3
>   
> My current g++ is 5.3.0.


Does this help?

     ./configure CXXFLAGS="-g -O2 -D_GLIBCXX_USE_CXX11_ABI=0"

It should force the compiler to use to older ABI.

Dave.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Notmuch mail indexer - talloc requirement?
  2016-06-12  2:28       ` David Stacey
@ 2016-06-12  6:00         ` Jack Ostroff
  2016-06-12  7:53         ` Jack Ostroff
  1 sibling, 0 replies; 11+ messages in thread
From: Jack Ostroff @ 2016-06-12  6:00 UTC (permalink / raw)
  To: cygwin

I'll let you know.  Right now, I'm almost done compiling xapian with my 
current setup.  If that fails, or takes too long, I'll try your 
suggestion.  (Then we'll see what other issues pop up with notmuch.)

On 6/11/2016 7:01 PM, David Stacey wrote:
> On 11/06/16 19:55, Jack Ostroff wrote:
>> I was able to complete the talloc compile and install by going
>> into the bin/defaults directory and linking cygtalloc_2.dll to both
>> talloc.dll and cygtalloc.dll, and the same for cygpytalloc-util-2.dll.
>>
>> However, even then, when doing ./configure on notmuch I still get errors:
>>
>> /usr/include/xapian/version.h:28:2: error: #error The C++ ABI version of
>> compiler you are using does not match
>>
>> /usr/include/xapian/version.h:31:2: error: #error The Xapian library was
>> built with g++ 4.8.3
>>   My current g++ is 5.3.0.
>
>
> Does this help?
>
>     ./configure CXXFLAGS="-g -O2 -D_GLIBCXX_USE_CXX11_ABI=0"
>
> It should force the compiler to use to older ABI.
>
> Dave.
>
>
> --
> Problem reports:       http://cygwin.com/problems.html
> FAQ:                   http://cygwin.com/faq/
> Documentation:         http://cygwin.com/docs.html
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Notmuch mail indexer - talloc requirement?
  2016-06-12  2:28       ` David Stacey
  2016-06-12  6:00         ` Jack Ostroff
@ 2016-06-12  7:53         ` Jack Ostroff
  1 sibling, 0 replies; 11+ messages in thread
From: Jack Ostroff @ 2016-06-12  7:53 UTC (permalink / raw)
  To: cygwin

On 6/11/2016 7:01 PM, David Stacey wrote:
> On 11/06/16 19:55, Jack Ostroff wrote:
>> I was able to complete the talloc compile and install by going
>> into the bin/defaults directory and linking cygtalloc_2.dll to both
>> talloc.dll and cygtalloc.dll, and the same for cygpytalloc-util-2.dll.
>>
>> However, even then, when doing ./configure on notmuch I still get errors:
>>
>> /usr/include/xapian/version.h:28:2: error: #error The C++ ABI version of
>> compiler you are using does not match
>>
>> /usr/include/xapian/version.h:31:2: error: #error The Xapian library was
>> built with g++ 4.8.3
>>   My current g++ is 5.3.0.
>
>
> Does this help?
>
>     ./configure CXXFLAGS="-g -O2 -D_GLIBCXX_USE_CXX11_ABI=0"
>
> It should force the compiler to use to older ABI.
Oddly, no.  With that line, I get "Unrecognized option: CXXFLAGS=-g -O2 
-D_GLIBCXX_USE_CXX11_ABI=0".  Passing it as an environment variable 
seems to have no effect.  (I thought I had recompiled xapian, which I 
thought would have used the new ABI, but even that didn't seem to make 
any difference.)

Other ideas?

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Notmuch mail indexer - talloc requirement?
  2016-06-11 23:01     ` Jack Ostroff
  2016-06-12  2:28       ` David Stacey
@ 2016-06-14 16:14       ` Corne Plas
  2016-06-14 19:41         ` Jack
  1 sibling, 1 reply; 11+ messages in thread
From: Corne Plas @ 2016-06-14 16:14 UTC (permalink / raw)
  To: cygwin

Jack Ostroff <ostroffjh <at> users.sourceforge.net> writes:

> 
> I realize this is a bit over a year old, but I'm in exactly the same
> situation.  I was able to complete the talloc compile and install by going
> into the bin/defaults directory and linking cygtalloc_2.dll to both
> talloc.dll and cygtalloc.dll, and the same for cygpytalloc-util-2.dll.
> 

Hi Jack,

What exactly did you do by 'going into the bin/defaults directory and
linking cygtalloc_2.dll to both talloc.dll and cygtalloc.dll, and the same
for cygpytalloc-util-2.dll'? I'll still trying to 'make' talloc, but still
get the error 'cannot find -ltalloc'.

Kind regards,

Corne




--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Notmuch mail indexer - talloc requirement?
  2016-06-14 16:14       ` Corne Plas
@ 2016-06-14 19:41         ` Jack
  0 siblings, 0 replies; 11+ messages in thread
From: Jack @ 2016-06-14 19:41 UTC (permalink / raw)
  To: cygwin

On 2016.06.14 04:44, Corne Plas wrote:
> Jack Ostroff <ostroffjh <at> users.sourceforge.net> writes:

>> I realize this is a bit over a year old, but I'm in exactly the same  
>> situation.  I was able to complete the talloc compile and install by  
>> going into the bin/defaults directory and linking cygtalloc_2.dll to  
>> both talloc.dll and cygtalloc.dll, and the same for  
>> cygpytalloc-util-2.dll.

> What exactly did you do by 'going into the bin/defaults directory and  
> linking cygtalloc_2.dll to both talloc.dll and cygtalloc.dll, and the  
> same for cygpytalloc-util-2.dll'? I'll still trying to 'make' talloc,  
> but still get the error 'cannot find -ltalloc'.
> 
Starting from the main directory where the the tarball has been  
expanded, "cd bin/defaults" then "ln -s cygtalloc_2.dll talloc.dll" and  
"ln -s cygtalloc_2.dll cygtalloc.dll" and the equivalent two for the  
other dll.  I did this from a cygwin shell in mintty.  (I don't have  
that laptop booted up right now, so this is from memory.  My desktop is  
Linux, so I can't confirm from here.)

Jack
--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2016-06-14 16:14 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-19  2:23 Notmuch mail indexer - talloc requirement? Joe Rochette
2015-03-19  8:51 ` Corinna Vinschen
2015-03-19 15:00   ` joefromct
2015-03-19 20:21     ` Corinna Vinschen
2015-03-19 22:22       ` Yaakov Selkowitz
2016-06-11 23:01     ` Jack Ostroff
2016-06-12  2:28       ` David Stacey
2016-06-12  6:00         ` Jack Ostroff
2016-06-12  7:53         ` Jack Ostroff
2016-06-14 16:14       ` Corne Plas
2016-06-14 19:41         ` Jack

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).