Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id E0187B5DBC8 for ; Sun, 29 May 2011 08:16:31 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 90261-06 for ; Sun, 29 May 2011 11:16:31 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mail.postgresql.org (Postfix) with ESMTP id 1D376B5DBC2 for ; Sun, 29 May 2011 08:16:30 -0300 (ADT) Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.3/8.14.3) with ESMTP id p4TBGU0b023394 for ; Sun, 29 May 2011 11:16:30 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id p4TBGUcC023393; Sun, 29 May 2011 11:16:30 GMT (envelope-from www) Date: Sun, 29 May 2011 11:16:30 GMT Message-Id: <201105291116.p4TBGUcC023393@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #6045: Compilation of contribs fail From: "Emanuel" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201105/214 X-Sequence-Number: 30353 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...