Re: using rpmbuild with PostgreSQL 9.2.6 source code

From: Boszormenyi Zoltan <zboszor(at)pr(dot)hu>
To: Sameer Kumar <sameer(dot)kumar(at)ashnik(dot)com>, Devrim GÜNDÜZ <devrim(at)gunduz(dot)org>
Cc: Craig Ringer <craig(at)2ndquadrant(dot)com>, PostgreSQL General Discussion Forum <pgsql-general(at)postgresql(dot)org>
Subject: Re: using rpmbuild with PostgreSQL 9.2.6 source code
Date: 2014-01-20 11:06:23
Message-ID: 52DD032F.7010701@pr.hu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

2014-01-20 10:50 keltezéssel, Sameer Kumar írta:
> Hi,
>
> I still get issues with uuid-devel.
>
> [root(at)pflex75 SOURCES]# rpmbuild -ba postgresql-9.2.spec
> error: Failed build dependencies:
> uuid-devel is needed by postgresql92-9.2.6-2PGDG.el6.ppc64
>
>
> On googling a bit I found that uuid-devel is libuuid-devel on RHEL (is that the case?).
> I have below packages:

Both exist. libuuid[-devel] is part of util-linux, uuid[-devel] is a standalone library
with a different API.
This is from Fedora 20:

$ rpm -q libuuid-devel uuid-devel
libuuid-devel-2.24-2.fc20.x86_64
uuid-devel-1.6.2-21.fc20.x86_64

You need to install uuid-devel, this is the one needed for building PostgreSQL.

http://mirrors.kernel.org/centos/6.5/os/x86_64/Packages/ carries both
uuid-1.6.1-10.el6.x86_64.rpm
and
uuid-devel-1.6.1-10.el6.x86_64.rpm

You just need to find a mirror that has ppc64 packages.

> [root(at)pflex75 SOURCES]# yum install *uuid*
> Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
> This system is not registered to Red Hat Subscription Management. You can use
> subscription-manager to register.
> Setting up Install Process
> Package uuidd-2.17.2-12.9.el6.ppc64 already installed and latest version
> Package libuuid-2.17.2-12.9.el6.ppc64 already installed and latest version
> Package libuuid-devel-2.17.2-12.9.el6.ppc64 already installed and latest version
> Package uuid-1.6.1-10.el6.ppc64 already installed and latest version
> Nothing to do
>
> So I changed the requires parameter from uuid-devel to libuuid-devel (which I have
> reverted back now) and tried rpmbuild. I got below error:
>
> checking for uuid_export in -lossp-uuid... no
> checking for uuid_export in -luuid... no
> configure: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID
> error: Bad exit status from /var/tmp/rpm-tmp.O9zMnW (%build)
>
>
> RPM build errors:
> Bad exit status from /var/tmp/rpm-tmp.O9zMnW (%build)
>
>
> Apologies for earlier cross posting to Hackers thread.
>
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Leonardo M. Ramé 2014-01-20 13:21:25 Filtering queries by IP
Previous Message Marti Raudsepp 2014-01-20 10:54:29 Re: json_array_elements_text?

Browse pgsql-hackers by date

  From Date Subject
Next Message Jov 2014-01-20 12:04:11 Re: improve the help message about psql -F
Previous Message Albe Laurenz 2014-01-20 10:53:09 Re: Compiling extensions on Windows