* Larry Rosenman <[EMAIL PROTECTED]> [010907 21:06]:
> I finally got all the way through a compile set:
>
> CC=cc CXX=CC ./configure --prefix=/usr/local/pgsql --enable-syslog \
> --with-CXX --with-perl --enable-multibyte --enable-cassert \
> --with-includes=/usr/local/include --with-libs=/usr/local/lib \
> --enable-debug \
> --with-tcl --with-tclconfig=/usr/local/lib \
> --with-tkconfig=/usr/local/lib --enable-locale
> and when I try to connect to an existing DB, loaded from a pg_dump
> from the previous 7.2devel sources, I get:
> TRAP: Failed Assertion("!(ClientEncoding):", File: "mbutils.c", Line:
> 314)
> !(ClientEncoding) (0) [No such file or directory]
> DEBUG: server process (pid 3077) was terminated by signal 6
> DEBUG: terminating any other active server processes
> DEBUG: all server processes terminated; reinitializing shared memory
> and semaphores
> DEBUG: database system was interrupted at 2001-09-07 21:00:33 CDT
> DEBUG: checkpoint record is at 0/2922408
> DEBUG: redo record is at 0/2922408; undo record is at 0/0; shutdown
> TRUE
> DEBUG: next transaction id: 824; next oid: 371237
> DEBUG: database system was not properly shut down; automatic recovery
> in progress
> DEBUG: ReadRecord: record with zero length at 0/2922448
> DEBUG: redo is not required
> DEBUG: database system is ready
>
>
>
> THIS IS UNACCEPTABLE.
>
> How do I get out of it?
>
> LER
The following patch fixes it:
Index: mbutils.c
===================================================================
RCS file: /home/projects/pgsql/cvsroot/pgsql/src/backend/utils/mb/mbutils.c,v
retrieving revision 1.20
diff -c -r1.20 mbutils.c
*** mbutils.c 2001/09/06 04:57:29 1.20
--- mbutils.c 2001/09/08 02:11:55
***************
*** 21,27 ****
*
* Karel Zak (Aug 2001)
*/
! static pg_enc2name *ClientEncoding = NULL;
static pg_enc2name *DatabaseEncoding = &pg_enc2name_tbl[ PG_SQL_ASCII ];
static void (*client_to_mic) (); /* something to MIC */
--- 21,27 ----
*
* Karel Zak (Aug 2001)
*/
! static pg_enc2name *ClientEncoding = &pg_enc2name_tbl[ PG_SQL_ASCII ];
static pg_enc2name *DatabaseEncoding = &pg_enc2name_tbl[ PG_SQL_ASCII ];
static void (*client_to_mic) (); /* something to MIC */
--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 E-Mail: [EMAIL PROTECTED]
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749
---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])