Thread: Porting postgreSQL to Windows NT

Porting postgreSQL to Windows NT

From
"Joost Kraaijeveld"
Date:
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