FAQ
Hi all,

I would like to use postgresql under SCO.
The fault is probably mine but V8.0.1 has compile/link errors.

I have the time ( to do what I am told, not hack ) and a machine which I can test on and return the debug
if there is an interest in having postgres work on this plateform.

Anyone?

Allan

Search Discussions

  • Larry Rosenman at Mar 1, 2005 at 4:25 am

    On Monday 28 February 2005 10:02 pm, Harvey, Allan AC wrote:
    Hi all,

    I would like to use postgresql under SCO.
    The fault is probably mine but V8.0.1 has compile/link errors.

    I have the time ( to do what I am told, not hack ) and a machine which I
    can test on and return the debug if there is an interest in having postgres
    work on this plateform.

    Anyone?
    What errors are you getting?



    --
    Larry Rosenman http://www.lerctr.org/~ler
    Phone: +1 214-351-4152 E-Mail: ler@lerctr.org
    US Mail: 3535 Gaspar Drive, Dallas, TX 75220-3611
  • Larry Rosenman at Mar 2, 2005 at 11:19 am

    On Tuesday 01 March 2005 07:24 pm, Harvey, Allan AC wrote:
    Heres how I got V8.0.1 to compile on SCO 5.0.7

    The following issued by hand allowed psql to link,
    then returning to the top level a 'make' completed.

    postgres@scodev:/upgrades/postgres/postgresql-8.0.1/src/bin/psql$ cc -b
    elf -O command.o common.o help.o input.o stringutils.o mainloop.o copy.o
    startup.o prompt.o variables.o large_obj.o print.o describe.o
    psqlscan.o tab-complete.o mbprint.o
    /upgrades/postgres/postgresql-8.0.1/src/interfaces/libpq/libpq.a
    /upgrades/postgres/postgresql-8.0.1/src/port/libpgport.a
    -lz -lreadline -lresolv -lPW -lgen -lld -lsocket -lnsl -ldl -lm -o psql
    that makes a static link to libpq. Not exactly what you want. :(

    That tells me that the libpq.so may not necessarilly be valid.

    I'd need to see the whole make output.

    --
    Larry Rosenman http://www.lerctr.org/~ler
    Phone: +1 214-351-4152 E-Mail: ler@lerctr.org
    US Mail: 3535 Gaspar Drive, Dallas, TX 75220-3611
  • Harvey, Allan AC at Mar 7, 2005 at 10:09 pm
    The results are:-

    To build V8.0.1 under SCO 5.0.7 ...

    For the "Legacy Development" environment
    1. make sure there are NO installed previous versions

    2. Make these changes to the src/test/regress/pg_regress
    198c198
    < *-*-cygwin* | *-*-mingw32* | *-*-qnx* | *beos* | *-*-sco3.2v5*)
    ---
    *-*-cygwin* | *-*-mingw32* | *-*-qnx* | *beos*)
    401c401
    < "$bindir/initdb" -D "$PGDATA" -L "$datadir" --noclean --locale=C $initdb_options >"$LOGDIR/initdb.log" 2>&1
    ---
    "$bindir/initdb" -D "$PGDATA" -L "$datadir" --noclean $initdb_options >"$LOGDIR/initdb.log" 2>&1
    532c532
    < "$bindir/createdb" -h localhost $encoding_opt $psql_options --template template0 "$dbname"
    ---
    "$bindir/createdb" $encoding_opt $psql_options --template template0 "$dbname"
    and expect to get from a 'make check'

    ========================
    10 of 96 tests failed.
    ========================

    The errors are in the addition, or not, of a timezone string and
    int8, float4 and float8 handling. A known issue with strtod() I think I read.
    Don't know about int8.

    For GCC as loaded from the SCO source CD's. ie gcc 2.95.3.
    1. Add /usr/gnu/lib/gcc-lib/i586-pc-sco3.2v5.0/2.95.3 to your path.
    ie PATH=$PATH:/usr/gnu/lib/gcc-lib/i586-pc-sco3.2v5.0/2.95.3:

    2. Apply this patch to src/template/sco as directed by Larry.
    if test "$GCC" != yes ; then
    CC="$CC -b elf"
    fi
    from
    http://archives.postgresql.org/pgsql-novice/2004-03/msg00162.php

    3. Do 2. from above.

    and expect a 'make check'

    ========================
    2 of 96 test failed.
    ========================
    The same strtod() issue I believe, Nan and infinity interpretation.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppgsql-ports @
categoriespostgresql
postedMar 1, '05 at 4:09a
activeMar 7, '05 at 10:09p
posts4
users2
websitepostgresql.org
irc#postgresql

People

Translate

site design / logo © 2022 Grokbase