Porting postgreSQL to Windows NT - Mailing list pgsql-hackers

From Joost Kraaijeveld
Subject Porting postgreSQL to Windows NT
Date
Msg-id 000101bddce4$e941f4f0$0200a8c0@panoramix
Whole thread Raw
List pgsql-hackers
Hi,

Problems running configure:

1. Cannot find a template: cygwin32_nt, solved by copying generic to
cygwin32_nt

2. In the configure script I changed (see the "if test" statements)

    ECHO_N_OUT=`echo -n "" | wc -c`
    ECHO_C_OUT=`echo "\c" | wc -c`

    if test "$ECHO_N_OUT" -eq 0; then
        DASH_N='-n'
        BACKSLASH_C=
    else
        if test "ECHO_C_OUT" -eq 0; then
            DASH_N=
            BACKSLASH_C='\\\\c'
        else
            { echo "configure: error: "echo behaviour undetermined"" 1>&2; exit 1; }
        fi
    fi

   to

    ECHO_N_OUT=`echo -n "" | wc -c`
    ECHO_C_OUT=`echo "\c" | wc -c`

    if test $ECHO_N_OUT -eq 0; then
        DASH_N='-n'
        BACKSLASH_C=
    else
        if test $ECHO_C_OUT -eq 0; then
            DASH_N=
            BACKSLASH_C='\\\\c'
        else
            { echo "configure: error: "echo behaviour undetermined"" 1>&2; exit 1; }
        fi
    fi

3. Configure gave the following errors because of missing files:
    creating include/config.h
    linking ./backend/port/tas/dummy.s to backend/port/tas.s
    linking ./backend/port/dynloader/win.c to backend/port/dynloader.c
    configure: error: ./backend/port/dynloader/win.c: File not found

    idem for /pgsql/src/backend/port/dynloader/win.h

    idem for /pgsql/src/include/port/win.h

    idem for /pgsql/src/makefiles/makefile.win

Short term sollution was to create empty files. Can anyone give me an idea
what the purpose of these files is (I can guess the Makefile.win I think)?

TIA

Joost


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] open 6.4 items
Next
From: "Joost Kraaijeveld"
Date:
Subject: Missing headers Windows NT port