On RedHat 8.0 (upgraded from Red Hat 7.2 with PostgreSQL 7.2.3), "make
check" gives the following error:

"/home/postgres/postgresql-7.3/src/test/regress/./tmp_check/install//usr/loc
al/pgsql/bin/pg_encoding: relocation error:
/home/postgres/postgresql-7.3/src/test/regress/./tmp_check/install//usr/loca
l/pgsql/bin/pg_encoding: undefined symbol: pg_char_to_encoding
createdb: "SQL_ASCII" is not a valid encoding name
pg_regress: createdb failed"

./configure line was:
CFLAGS='-O2 -pipe' ./configure --enable-integer-datetimes --with-perl
--with-python --with-tcl --enable-syslog

On a different machine, I have successfully compiled and installed running
RedHat 8.0 (but without an existing PostgreSQL installation) and passed all
tests.

Any help with this problem would be much appreciated.

Thanks,
	Murthy

-----Original Message-----
From: Bruce Momjian [mailto:pgman@candle.pha.pa.us]
Sent: Monday, December 09, 2002 20:09
To: Shibashish
Cc: pgsql-admin@postgresql.org; pgsql-bugs@postgresql.org;
pgsql-hackers@postgresql.org
Subject: Re: [ADMIN] PostgreSQL 7.3 Installation on SCO



It should have worked, but edit Makefile.shlib and remove that offending
export from the link line.  That may fix it.

---------------------------------------------------------------------------

Shibashish wrote:
> Dear Sir,
> 
> I use SCO Open Server 5.0.5 on an intel box. Although I have installed and
> used PostgreSQL on Linux, setting it on SCO has not been successful :$
> I have downloaded the latest version ie "Postgresql-7.3" I have also tried
> installing postgresql-7.1 and postgresql-7.2.3, but never succeeded.
> 
> I also installed "ant" package for using java. I have "tcl8.0," "tk8.0,"
>  "itclsh3.0" and "itkwish3.0" installed in my system.
>  "gcc version 2.7.2.1"
>  "Java 2 SDK, Standard Edition, v. 1.2.1"
>  "GNU Make 3.80"
> 
> My "configure" command was as following ...
> ./configure --prefix=/data/pgsql --with-perl --with-tcl
> --with-tclconfig=/data/tcl/lib/ --with-tkconfig=/data/tk/lib/
> --with-java --without-readline --without-zlib
> 
> The output has been attached as file "configoutput.txt"
> 
> Then i give the "make" command. The compiling stops on an error and
> exits after some time. The output has been attached as file
> "makeoutput.txt"
> 
> I'd be thankful to you if you can help me out sort the problem. I got your
> mail-ids from the net and came to know that you are working on the similar
> lines.
> 
> Also, in the file doc/FAQ_SCO, does the section "Compiling PostgreSQL 7.1
> with the UDK" apply to release 7.3 of Postgresql ? I am not using UDK.
> 
> Waiting for a quick response from your end. kindly inform me if you have
> already solved the problem, or whether any patch is available. Any
> documentation or url will be highly helpful.
> 
> Thanking You in anticipation.
> 
> with regards
> Shibashish
> 
> shiba@it.iitb.ac.in
> On Yahoo Messenger : shib_leo
> 
> Software Engineer
> IIT Bombay, India.

Content-Description: 

[ Attachment, skipping... ]

Content-Description: 

[ Attachment, skipping... ]

Content-Description: 

[ Attachment, skipping... ]

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Fri, 13 Dec 2002 15:57:42 -0500
Murthy Kambhampaty <murthy.kambhampaty@goeci.com>
PostgreSQL 7.3 installation on RedHat 8.0 fails
Murthy Kambhampaty <murthy.kambhampaty@goeci.com> writes:
> "/home/postgres/postgresql-7.3/src/test/regress/./tmp_check/install//usr/loc
> al/pgsql/bin/pg_encoding: relocation error:
> /home/postgres/postgresql-7.3/src/test/regress/./tmp_check/install//usr/loca
> l/pgsql/bin/pg_encoding: undefined symbol: pg_char_to_encoding

This usually means that the dynamic linker is picking up a version of
libpq.so that doesn't have MULTIBYTE support, but the program you are
trying to run requires MULTIBYTE.  Fix: update your ldconfig settings
so that the thing finds the version of libpq.so you just built, rather
than whatever old version it's finding.

pg_regress tries to get the system to notice the libpq.so that it
installed in the tmp_check/install area, but I believe it's quite a
ways short of making that work correctly everywhere.

			regards, tom lane

Fri, 13 Dec 2002 19:24:43 -0500
Tom Lane <tgl@sss.pgh.pa.us>
Re: PostgreSQL 7.3 installation on RedHat 8.0 fails 