Skip site navigation (1) Skip section navigation (2)

Re: pg_config broken in 7.1.1 on FreeBSD with Tcl + Java

From: Glenn Trewitt <glenn(at)trewitt(dot)org>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: pg_config broken in 7.1.1 on FreeBSD with Tcl + Java
Date: 2001-05-11 22:27:29
Message-ID: 3AFC6750.820A45A0@trewitt.org (view raw or flat)
Thread:
Lists: pgsql-bugs
I'm not sure that I understand the question.  I just installed PostgreSQL
from the FreeBSD port and selected the Tcl, Java, and OpenSSL options.  I'm
guessing that whatever generated pg_config saw the spaces in, for example,
"--with-includes=/usr/local/include /usr/local/include/tcl8.3
/usr/local/include/tk8.3" and added the single-quotes to protect them.  Using
the same flavor of quotes at the outer level caused sh to terminate the
string early and attempt to interpret "/usr/local/include/tcl8.3" as a
command.

I presume that the configure arguments were:
    --enable-locale --enable-syslog --with-CXX
    --sysconfdir=/usr/local/etc/postgresql
    '--with-includes=/usr/local/include /usr/local/include/tcl8.3
/usr/local/include/tk8.3'
    --with-libraries=/usr/local/lib
    --docdir=/usr/local/share/doc
    --includedir=/usr/local/include/pgsql
    --with-java --with-openssl --enable-multibyte --with-tcl
    '--with-tclconfig=/usr/local/lib/tcl8.3 /usr/local/lib/tk8.3'
    --with-tkconfig=/usr/local/lib/tk8.3
    --prefix=/usr/local i386--freebsd4.3

The original quoted text got mangled by my mailer - there are many extra
newlines.  Some of the above may get mangled, as well.

I think that this problem can be solved by using double quotes when
val_configure="....." is generated.

    - Glenn

Peter Eisentraut wrote:

> Glenn Trewitt writes:
>
> > When I build PostgreSQL 7.1.1 from the port on FreeBSD 4.3, pg_config
> > gets built with a syntax error in the "val_configure=..." line.  It
> > looks like multiple levels of single quotes, where different kinds of
> > quotes should have been used.
>
> What is the configure line that this installation uses?
>
> > val_configure='--enable-locale --enable-syslog --with-CXX
> > --sysconfdir=/usr/local/etc/p
> > ostgresql '--with-includes=/usr/local/include /usr/local/include/tcl8.3
> > /usr/local/incl
> > ude/tk8.3' --with-libraries=/usr/local/lib --docdir=/usr/local/share/doc
> > --includedir=/
> > usr/local/include/pgsql --with-java --with-openssl --enable-multibyte
> > --with-tcl '--wit
> > h-tclconfig=/usr/local/lib/tcl8.3 /usr/local/lib/tk8.3'
> > --with-tkconfig=/usr/local/lib/
> > tk8.3 --prefix=/usr/local i386--freebsd4.3'
>
> Where do these extra quotes come from?
>
> --
> Peter Eisentraut   peter_e(at)gmx(dot)net   http://funkturm.homeip.net/~peter


In response to

pgsql-bugs by date

Next:From: A.V.ShutkoDate: 2001-05-12 01:48:55
Subject: Postgres bug (working with iserverd)
Previous:From: Tom LaneDate: 2001-05-11 21:23:18
Subject: Re: instalation problems!

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group