pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedcompilation troubles
2+ messages / 2 participants
[nested] [flat]
* compilation troubles
@ 2001-12-18 02:49 Yuri A. Kabaenkov <sec@artofit.com>
2001-12-18 03:39 ` Re: compilation troubles Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 2+ messages in thread
From: Yuri A. Kabaenkov @ 2001-12-18 02:49 UTC (permalink / raw)
To: pgsql-admin
Hello,
When i try to compile postgreSQL with --enable-multibyte=KOI8
Then run 'gmake'
Compilations stops on:
gcc -pipe -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../src/include -c -o pg_encoding.o pg_encoding.c
gcc -pipe -O2 -Wall -Wmissing-prototypes -Wmissing-declarations pg_encoding.o -L../../../src/interfaces/libpq -lpq -R/usr/local/pgsql/lib -lz -lcrypt -lcompat -lm -lutil -lreadline -o pg_encoding
pg_encoding.o: In function `main':
pg_encoding.o(.text+0x3d): undefined reference to `pg_char_to_encoding'
pg_encoding.o(.text+0x7c): undefined reference to `pg_encoding_to_char'
gmake[3]: *** [pg_encoding] Error 1
What is this? How can i solve this problem?
------------
With respect,
Yuri A. Kabaenkov
hellman@artofit.com
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: compilation troubles
2001-12-18 02:49 compilation troubles Yuri A. Kabaenkov <sec@artofit.com>
@ 2001-12-18 03:39 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2001-12-18 03:39 UTC (permalink / raw)
To: sec <sec@artofit.com>; +Cc: pgsql-admin
"Yuri A. Kabaenkov" <sec@artofit.com> writes:
> gcc -pipe -O2 -Wall -Wmissing-prototypes -Wmissing-declarations pg_encoding.o -L../../../src/interfaces/libpq -lpq -R/usr/local/pgsql/lib -lz -lcrypt -lcompat -lm -lutil -lreadline -o pg_encoding
> pg_encoding.o: In function `main':
> pg_encoding.o(.text+0x3d): undefined reference to `pg_char_to_encoding'
> pg_encoding.o(.text+0x7c): undefined reference to `pg_encoding_to_char'
> gmake[3]: *** [pg_encoding] Error 1
We have seen problems like this when multibyte-enabled programs (such as
pg_encoding) got linked against a non-multibyte-enabled libpq. The
routines pg_char_to_encoding and pg_encoding_to_char are in libpq ...
but only if it's been compiled multibyte.
I speculate that there is a non-multibyte libpq in /usr/local/pgsql/lib,
and for some reason your linker is seizing on that copy to use, rather
than the one in ../../../src/interfaces/libpq (which presumably is
multibyte enabled). Since you didn't mention your platform I have no
idea what might be done to fix this, short of clearing out
/usr/local/pgsql/lib while you build.
In the long run it might be a good idea if non-multibyte libpq still
contained (stub versions of) these routines ...
regards, tom lane
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2001-12-18 03:39 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-12-18 02:49 compilation troubles Yuri A. Kabaenkov <sec@artofit.com>
2001-12-18 03:39 ` Tom Lane <tgl@sss.pgh.pa.us>
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