From: | Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | SunOS4 |
Date: | 2001-02-21 06:52:58 |
Message-ID: | 20010221155258R.t-ishii@sra.co.jp |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
I've been working to make PostgreSQL run on SunOS4 (again).
So far I have found following issues:
o c.h 's sunos4 part should not include varargs.h. (Tom has already
fixed it) Instead, stdlib.h and stdarg.h should be included.
o no RAND_MAX or EXIT_FAILURE found. I simply added them to c.h.
o regex/utils.h included twice somewhere. I added #ifndef
UTILS_H... to utils.h
o utils/adt/formatting.c rely on sprintf() returns length of formatted
strings. This is not true for SunOS4. I have changed sprintf to
snprintf.
o SunOS4 does not have strdup, strtoul. --> use backend/port/strtoul.c
etc.
o SunOS4 does not have atexit (used in psql). --> igore it
o SunOS4 does not have getopt. --> use utils/getopt.c. also getopt.h
need to be created, and checking for getopt is needed to configure.in.
o to make shared library I have added an entry for SunOS4 in
Makefile.shlib.
o to make shared libraries (such as libpgeasy.so) relying on libpq,
"ld foo.o bar.o ... -L ../libpq -lpq" is executed but fails. I
changed it to:
ld foo.o bar.o ... ../libpq.a
instead.
o pg_id needs Makefile.in.
included are patched for *7.0.x*. Sould I make same changes to 7.1?
Comments anyone?
Attachment | Content-Type | Size |
---|---|---|
sunos4.patch.gz | application/octet-stream | 9.8 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Karel Zak | 2001-02-21 09:17:36 | Encoding names |
Previous Message | Hannu Krosing | 2001-02-21 06:29:57 | Re: beta5 ... |