Re: [pgsql-hackers-win32] build error in initdb on win32

From: "Magnus Hagander" <mha(at)sollentuna(dot)net>
To: "PostgreSQL Developers" <pgsql-hackers(at)postgresql(dot)org>
Cc: <pgsql-hackers-win32(at)postgresql(dot)org>, "Bruce Momjian" <pgman(at)candle(dot)pha(dot)pa(dot)us>
Subject: Re: [pgsql-hackers-win32] build error in initdb on win32
Date: 2004-10-10 19:25:11
Message-ID: 6BCB9D8A16AC4241919521715F4D8BCE456A13@algol.sollentuna.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-hackers-win32

>Current cvs does not compile on win32. Error is:
>
>gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes
>-Wmissing-declarations initdb.o win32ver.o
>-L../../../src/interfaces/libpq -lpq -L../../../src/port
>-L/c/openssl/lib/MingW -lpgport -lssleay32 -leay32 -lwsock32 -lm
>-lws2_32 -o initdb.exe
>initdb.o(.text+0xad6):initdb.c: undefined reference to
>`pg_char_to_encoding'
>initdb.o(.text+0xae8):initdb.c: undefined reference to
>`pg_valid_server_encoding'
>initdb.o(.text+0x3dc0):initdb.c: undefined reference to `pqsignal'
>initdb.o(.text+0x5c76):initdb.c: undefined reference to `pqsignal'
>initdb.o(.text+0x5c84):initdb.c: undefined reference to `pqsignal'
>initdb.o(.text+0x5c92):initdb.c: undefined reference to `pqsignal'
>initdb.o(.text+0x5ca0):initdb.c: undefined reference to `pqsignal'
>initdb.o(.text+0x5cab):initdb.c: more undefined references to
>`pqsignal'
>follow
>make: *** [initdb] Error 1
>
>
>
>I beleive this stopped working sometime the past couple of days. Ideas?

Not so. It came from a patch of my own :-)

The underlying problem is still there, though. initdb is pulling all
these symbols in from libpq.dll, which is clearly the wrong place to get
them... Or are they supposed to be available? If so, they should be
added to the official API, no?

(The problem occured when I tried to fix the problem "fix MinGW libpq to
export only required symbols". I have a patch that fixes this problem,
but causes these others instead)

Best way to fix this?

//Magnus

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2004-10-10 20:07:37 Re: [pgsql-hackers-win32] build error in initdb on win32
Previous Message Magnus Hagander 2004-10-10 18:55:39 build error in initdb on win32

Browse pgsql-hackers-win32 by date

  From Date Subject
Next Message Tom Lane 2004-10-10 20:07:37 Re: [pgsql-hackers-win32] build error in initdb on win32
Previous Message Magnus Hagander 2004-10-10 18:55:39 build error in initdb on win32