From: Emanuel <postgres.arg@gmail.com>
To: pgsql-bugs@postgresql.org
Subject: BUG #6045: Compilation of contribs fail
Date: Sun, 29 May 2011 11:16:30 GMT
Message-ID: <201105291116.p4TBGUcC023393@wwwmaster.postgresql.org> (raw)
The following bug has been logged online:
Bug reference: 6045
Logged by: Emanuel
Email address: postgres.arg@gmail.com
PostgreSQL version: 9.1beta
Operating system: Ubuntu 10.04 2.6.31
Description: Compilation of contribs fail
Details:
make and make installs work well. To compile correctly I must hardcode the
libdir. I happens with several contribs.
root@dell-desktop:/home/ecalvo-laptop/postgresql-9.1beta1/contrib/pgstattupl
e# /usr/local/pgsql/bin/psql -Upostgres < pgstattuple--1.0.sql
ERROR: could not access file "MODULE_PATHNAME": No existe el archivo o
directorio
ERROR: could not access file "MODULE_PATHNAME": No existe el archivo o
directorio
ERROR: could not access file "MODULE_PATHNAME": No existe el archivo o
directorio
ERROR: could not access file "MODULE_PATHNAME": No existe el archivo o
directorio
##### ECHO .control
root@dell-desktop:/home/ecalvo-laptop/postgresql-9.1beta1/contrib/pgstattupl
e# cat pgstattuple.control
# pgstattuple extension
comment = 'show tuple-level statistics'
default_version = '1.0'
module_pathname = '$libdir/pgstattuple'
relocatable = true
##### PG_CONFIG LIBDIR location
root@dell-desktop:/home/ecalvo-laptop/postgresql-9.1beta1/contrib/pgstattupl
e# /usr/local/pgsql/bin/pg_config | grep -i libdir
LIBDIR = /usr/local/pgsql/lib
PKGLIBDIR = /usr/local/pgsql/lib
#### Content of sql:
root@dell-desktop:/home/ecalvo-laptop/postgresql-9.1beta1/contrib/pgstattupl
e# grep -i MODULE pgstattuple--1.0.sql
AS 'MODULE_PATHNAME', 'pgstattuple'
AS 'MODULE_PATHNAME', 'pgstattuplebyid'
AS 'MODULE_PATHNAME', 'pgstatindex'
AS 'MODULE_PATHNAME', 'pg_relpages'
Seems that it didn't replace the correct MODULE_PATHNAME with
$libdir/contrib...
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: postgres.arg@gmail.com
Subject: Re: BUG #6045: Compilation of contribs fail
In-Reply-To: <201105291116.p4TBGUcC023393@wwwmaster.postgresql.org>
References: <201105291116.p4TBGUcC023393@wwwmaster.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox