From: hellkite500@gmail.com
To: pgsql-bugs@postgresql.org
Subject: BUG #14380: pg_config fails to build.
Date: Tue, 18 Oct 2016 22:59:05 +0000
Message-ID: <20161018225905.1413.3919@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
The following bug has been logged on the website:
Bug reference: 14380
Logged by: Nels Frazier
Email address: hellkite500@gmail.com
PostgreSQL version: 9.2.18
Operating system: Red Hat Enterprise Linux Server release 6.4 (Santi
Description:
I am attempting a build on a RHEL 6.4 machine using gcc 4.4.7.
I get the following error during the build. I even tried without --prefix,
and the show_ldflags error still happens. I tried this in both postgresql
9.2.17 and 9.2.18 with no difference.
make -C pg_config all
make[3]: Entering directory
`/glade/p/work/nfrazie1/CI-WATER-tools/sources/postgresql-9.2.18/src/bin/pg_config'
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute
-Wformat-security -fno-strict-aliasing -fwrapv -I../../../src/include
-D_GNU_SOURCE
-DVAL_CONFIGURE="\"'--prefix=/glade/p/work/nfrazie1/CI-WATER-tools/'\""
-DVAL_CC="\"gcc\"" -DVAL_CPPFLAGS="\"-D_GNU_SOURCE\"" -DVAL_CFLAGS="\"-O2
-Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement
-Wendif-labels -Wmissing-format-attribute -Wformat-security
-fno-strict-aliasing -fwrapv\"" -DVAL_CFLAGS_SL="\"-fpic\""
-DVAL_LDFLAGS="\"-Wl,--as-needed
-Wl,-rpath,'/glade/p/work/nfrazie1/CI-WATER-tools/lib',--enable-new-dtags\""
-DVAL_LDFLAGS_EX="\"\"" -DVAL_LDFLAGS_SL="\"\"" -DVAL_LIBS="\"-lpgport -lz
-lreadline -lcrypt -lm \"" -c -o pg_config.o pg_config.c
pg_config.c: In function 'show_configure':
pg_config.c:239: error: 'prefix' undeclared (first use in this function)
pg_config.c:239: error: (Each undeclared identifier is reported only once
pg_config.c:239: error: for each function it appears in.)
pg_config.c:239: error: expected expression before '/' token
pg_config.c: In function 'show_ldflags':
pg_config.c:319: error: 'Wl' undeclared (first use in this function)
pg_config.c:319: error: 'as' undeclared (first use in this function)
pg_config.c:319: error: 'needed' undeclared (first use in this function)
make[3]: *** [pg_config.o] Error 1
make[3]: Leaving directory
`/glade/p/work/nfrazie1/CI-WATER-tools/sources/postgresql-9.2.18/src/bin/pg_config'
make[2]: *** [all-pg_config-recurse] Error 2
make[2]: Leaving directory
`/glade/p/work/nfrazie1/CI-WATER-tools/sources/postgresql-9.2.18/src/bin'
make[1]: *** [all-bin-recurse] Error 2
make[1]: Leaving directory
`/glade/p/work/nfrazie1/CI-WATER-tools/sources/postgresql-9.2.18/src'
make: *** [all-src-recurse] Error 2
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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: hellkite500@gmail.com
Subject: Re: BUG #14380: pg_config fails to build.
In-Reply-To: <20161018225905.1413.3919@wrigleys.postgresql.org>
References: <20161018225905.1413.3919@wrigleys.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