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. http://comments.gmane.org/gmane.comp.search.xapian.general/8244 Am I on track? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xapian.org/pipermail/xapian-devel/attachments/20100806/80c7b4ec/attachment.html>
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
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. > > http://comments.gmane.org/gmane.comp.search.xapian.general/8244 > > Am I on track? >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xapian.org/pipermail/xapian-devel/attachments/20100807/9c2cef0b/attachment-0001.html>
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
Reasonably Related Threads
- Compile xapian-core on CentOS 7: configure: error: uuid.h found, but uuid_create() not found?
- Xapian 1.1.5 (release candidate for 1.2.0) released
- Build failure for isohybrid
- WISH: Built-in R session-specific universally unique identifier (UUID)
- 答复:Compile xapian-core on CentOS 7: configure: error: uuid.h found, but uuid_create() not found?