uuid.h on Debian

Started by Heikki Linnakangasalmost 19 years ago2 messagespatches
Jump to latest
#1Heikki Linnakangas
heikki.linnakangas@enterprisedb.com

Compiling contrib/uuid-ossp on my Debian laptop failed, because
apparently on Debian the uuid.h header is installed as ossp/uuid.h.
That's probably to avoid confusion with other UUID implementations;
there's at least one included with e2fsprogs, but fortunately the header
file for that is called uuid/uuid.h.

Attached is a patch that adds some autoconf magic to deal with that. I'm
testing ossp/uuid.h first, because presumably if that exists it's the
right one, while I suspect there might be other files called just uuid.h
on other systems that are not the same thing.

--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com

Attachments:

uuid-header-autoconf-magic-1.patchtext/x-diff; name=uuid-header-autoconf-magic-1.patchDownload+31-18
#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Heikki Linnakangas (#1)
Re: uuid.h on Debian

"Heikki Linnakangas" <heikki@enterprisedb.com> writes:

Compiling contrib/uuid-ossp on my Debian laptop failed, because
apparently on Debian the uuid.h header is installed as ossp/uuid.h.
Attached is a patch that adds some autoconf magic to deal with that.

Applied, thanks.

BTW, src/include/pg_config.h.in is a derived file (cf. autoheader);
so there's no need to include it in a patch, any more than the configure
script. It's probably a good idea to remind the committer to run
autoheader, though.

regards, tom lane