David Jeske | 6 Aug 23:34 2010
Picon

uuid configure issue?

I'm trying to build xapian-core-1.2.2 on Linux. After manually installing uuid.h and libuuid.a from e2fsprogs-1.41.12, I receive the following configure error:


checking for uuid.h... yes
checking for uuid_create... no
configure: error: uuid.h found, but uuid_create() not found.  You probably wants to install libuuid from e2fsprogs (you may need to install the uuid-dev, libuuid-devel or e2fsprogs-devel package)


However, there is no uuid_create in uuid.h/libuuid.a. 

This thread on gmane leads me to believe this might be from an attempt to make the configure work for FreeBSD, since it says the FreeBSD comes with uuid_create out of the box instead of uuid_generate. 


Am I on track? 
_______________________________________________
Xapian-devel mailing list
Xapian-devel <at> lists.xapian.org
http://lists.xapian.org/mailman/listinfo/xapian-devel
Olly Betts | 7 Aug 16:51 2010

Re: uuid configure issue?

On Fri, Aug 06, 2010 at 02:34:12PM -0700, David Jeske wrote:
> I'm trying to build xapian-core-1.2.2 on Linux. After manually installing
> uuid.h and libuuid.a from e2fsprogs-1.41.12, I receive the following
> configure error:
> 
> checking for uuid.h... yes
> checking for uuid_create... no
> configure: error: uuid.h found, but uuid_create() not found.  You probably
> wants to install libuuid from e2fsprogs (you may need to install the
> uuid-dev, libuuid-devel or e2fsprogs-devel package)
> 
> However, there is no uuid_create in uuid.h/libuuid.a.
> 
> This thread on gmane leads me to believe this might be from an attempt to
> make the configure work for FreeBSD, since it says the FreeBSD comes with
> uuid_create out of the box instead of uuid_generate.

Currently configure expects the e2fsprogs uuid header to be uuid/uuid.h
(not uuid.h) which is how it is installed on at least Debian and Ubuntu.

You don't say how you "manually installed" - if you copied the files
by hand, then I'd argue you've just put uuid.h in the wrong place.

But if you ran "make install" on e2fsprogs and it didn't put uuid.h in
a uuid subdirectory of PREFIX/include, then we ought to patch configure
to cope with this.

Cheers,
    Olly
David Jeske | 7 Aug 17:41 2010
Picon

Re: uuid configure issue?

That was the problem. I manually copied uuid.h and libuuid.a to /usr/local/*. Once I moved uuid.h to /usr/local/include/uuid/uuid.h configure worked fine.

Before I did any of this, I did a "make install" on e2fsprogs. The build did get hung up on some doc-build part because I don't have texi2dvi installed, but I don't see any target to install libuuid.a or uuid.h, only one to install the binaries for uuid and uuidgen. 

On Fri, Aug 6, 2010 at 2:34 PM, David Jeske <davidj <at> gmail.com> wrote:
I'm trying to build xapian-core-1.2.2 on Linux. After manually installing uuid.h and libuuid.a from e2fsprogs-1.41.12, I receive the following configure error:

checking for uuid.h... yes
checking for uuid_create... no
configure: error: uuid.h found, but uuid_create() not found.  You probably wants to install libuuid from e2fsprogs (you may need to install the uuid-dev, libuuid-devel or e2fsprogs-devel package)


However, there is no uuid_create in uuid.h/libuuid.a. 

This thread on gmane leads me to believe this might be from an attempt to make the configure work for FreeBSD, since it says the FreeBSD comes with uuid_create out of the box instead of uuid_generate. 


Am I on track? 

_______________________________________________
Xapian-devel mailing list
Xapian-devel <at> lists.xapian.org
http://lists.xapian.org/mailman/listinfo/xapian-devel
Olly Betts | 9 Aug 17:53 2010

Re: uuid configure issue?

On Sat, Aug 07, 2010 at 08:41:37AM -0700, David Jeske wrote:
> That was the problem. I manually copied uuid.h and libuuid.a to
> /usr/local/*. Once I moved uuid.h to /usr/local/include/uuid/uuid.h
> configure worked fine.
> 
> Before I did any of this, I did a "make install" on e2fsprogs. The build did
> get hung up on some doc-build part because I don't have texi2dvi installed,
> but I don't see any target to install libuuid.a or uuid.h, only one to
> install the binaries for uuid and uuidgen.

Looking into this it seems libuuid moved to linux-util-ng just over a year
ago:

http://lwn.net/Articles/341659/

I suspect the copy in e2fsprogs is just there for convenience now, which is
why it doesn't get installed.

I'll update the installation instructions - thanks for catching this

Cheers,
    Olly
Simon Litchfield | 23 Aug 13:42 2010
Picon

Sort ordering

Using MultiValueSorter, I can sort by key1, key2, relevance; or relevance, key1, key2.

But AFAIK, I can't sort by key1, relevance, key2. Unless I spool out the entire result set or write some C++.

I wonder if we need a new 'sort by' function that accepts any combination of keys and relevance in any order? The function would make it's own optimisations (ie is relevance first or last, etc)





Simon Litchfield
S29.com.au

M  +61-416-027-826
F  +61-2-8569-2377

_______________________________________________
Xapian-devel mailing list
Xapian-devel <at> lists.xapian.org
http://lists.xapian.org/mailman/listinfo/xapian-devel

Gmane