Commit Graph

302 Commits

Author SHA1 Message Date
Peter Eisentraut c87bc779d4 Use RTLD_GLOBAL flag for dlopen-style dynamic loaders. 2001-05-14 21:45:53 +00:00
Peter Eisentraut f7bfb5518d Shared library and GCC support for SCO OpenServer. 2001-05-07 20:43:28 +00:00
Tom Lane d1864e388a Select optimization by default for HP's C compiler. 2001-02-20 19:04:04 +00:00
Tom Lane 41fe2a2a03 Darwin porting patches from Peter Bierman <bierman@apple.com> 2000-12-11 00:49:54 +00:00
Tom Lane 6ba959eee0 AIX patches from Andreas. 2000-11-18 05:40:03 +00:00
Bruce Momjian 312063c97b Make pgsql compile on FreeBSD-alpha.
Context diff this time.

Remove -m486 compile args for FreeBSD-i386, compile -O2 on i386.

Compile with only -O on alpha for codegen safety.

Make the port use the TEST_AND_SET for alpha and i386 on FreeBSD.

Fix a lot of bogus string formats for outputting pointers (cast to int
and %u/%x replaced with no cast and %p), and 'Size'(size_t) are now
cast to 'unsigned long' and output with %lu/

Remove an unused variable.

Alfred Perlstein
2000-11-16 05:51:07 +00:00
Peter Eisentraut 1fdf2edc9d Put -Ae into CC not CFLAGS, since it's not optional. 2000-11-04 14:34:54 +00:00
Peter Eisentraut b99ee7f37d This is the minimal version of the Darwin support patch from
Bruce Hartzler <bruceh@mail.utexas.edu>.  It contains shared library
support, regression test map, and the usual template files.  The dynamic
loader is missing, the spin lock code apparently doesn't assemble due to
syntax problems, and semaphores are to be hoped for from Apple.
2000-10-31 19:55:20 +00:00
Peter Eisentraut dc0f5cb090 Determine CXXFLAGS after the C++ compiler was detected. Also honor
--enable-debug and environment variable override.
2000-10-31 18:16:20 +00:00
Peter Eisentraut fba790ad58 Makeover for Unixware 7.1.1
* Makefile: Add more standard targets.  Improve shell redirection in GNU
make detection.
* src/backend/access/transam/rmgr.c: Fix incorrect(?) C.
* src/backend/libpq/pqcomm.c (StreamConnection): Work around accept() bug.
* src/include/port/unixware.h: ...with help from here.
* src/backend/nodes/print.c (plannode_type): Remove some "break"s after
"return"s.
* src/backend/tcop/dest.c (DestToFunction): ditto.
* src/backend/nodes/readfuncs.c: Add proper prototypes.
* src/backend/utils/adt/numutils.c (pg_atoi): Cope specially with strtol()
setting EINVAL. This saves us from creating an extra set of regression test
output for the affected systems.
* src/include/storage/s_lock.h (tas): Correct prototype.
* src/interfaces/libpq/fe-connect.c (parseServiceInfo): Don't use variable
as dimension in array definition.
* src/makefiles/Makefile.unixware: Add support for GCC.
* src/template/unixware: same here
* src/test/regress/expected/abstime-solaris-1947.out: Adjust whitespace.
* src/test/regress/expected/horology-solaris-1947.out: Part of this file
was evidently missing.
* src/test/regress/pg_regress.sh: Fix shell.  mkdir -p returns non-zero if
the directory exists.
* src/test/regress/resultmap: Add entries for Unixware.
2000-10-22 22:15:13 +00:00
Peter Eisentraut f8ff1ee5aa Move DLSUFFIX, AROPT, and CFLAGS_SL settings from template to
Makefile.port, since they are of no use to configure and much of the
library magic happens in Makefile.port anyway.

Use __alpha, not __alpha__, since the former is universally available.
Remove -DNOFIXADE from the compile command line and put it in the port
include file.
2000-10-21 22:36:14 +00:00
Bruce Momjian 02132c4a05 Remove CC and CXX. 2000-10-21 17:07:31 +00:00
Bruce Momjian 33581195d5 Per my ongoing discussion with PeterE, here is the patch I applied to
src/template/unixware:

Larry Rosenman
2000-10-21 15:50:32 +00:00
Peter Eisentraut 4d76a801c6 Unify solaris_i386 and solaris_sparc templates. They were almost identical
anyway, the rest being due to them not being kept in sync.  Add configure
test for lorder and use it (on Solaris) when found.
2000-10-10 21:22:29 +00:00
Bruce Momjian ed059eca88 This removes the LDFLAGS from the template and adds an autoconf check
for the library.  not sure if this will cause problems on other
platforms, but if it does it can be easily fixed.  Also remove the
references to the GeekGadgets includes as the majority of users don't
have them installed and they foul the build process.  We can document
that adding them if you have them installed is a good idea.

David Reid
2000-10-08 13:49:47 +00:00
Peter Eisentraut 8650454640 Remove stuff that shouldn't be here. 2000-10-07 18:59:12 +00:00
Peter Eisentraut a3578c13e6 Separate -Wl,-E or equivalent into separate make variable, since it's only
necessary for the postgres/postmaster link, not every link.
2000-10-07 18:43:23 +00:00
Bruce Momjian 7ea8403c8a The beos port in the source tree doesn't even compile. and even
after that dynamic loading isn't working and shared memory handling is
broken.

        Attached with this message, there is a Zip file which contain :

        * beos.diff = patch file generated with difforig
        * beos = folder with beos support files which need to be moved in /
src/backend/port
        * expected = foler with three file for message and precision
difference in regression test
        * regression.diff = rule problem (need to kill the backend manualy)
        * dynloader = dynloader files (they are also in the pacth files,
but there is so much modification that I have join full files)

        Everything works except a problem in 'rules' Is there some problems
with rules in the current tree ? It used to works with last week tree.

Cyril VELTER
2000-10-07 14:39:21 +00:00
Bruce Momjian 87c0e623ba New diff that now covers the entire tree. Applying this gets postgresql
working on the VERY latest version of BeOS.  I'm sure there will be
alot of comments, but then if there weren't I'd be disappointed!

Thanks for your continuing efforts to get this into your tree.

Haven't bothered with the new files as they haven't changed.

BTW Peter, the compiler is "broken" about the bool define and so on.
I'm filing a bug report to try and get it addressed.  Hopefully then we
can tidy up the code a bit.

I await the replies with interest :)

David Reid
2000-10-03 03:11:26 +00:00
Bruce Momjian 7a7e0240ea Here is the first batch of files and diffs for the BeOS port. I've run into
problems with some bits of it, but when all the patches are in it'll build
and we can fix it from there :)  I've got a version that builds and runs and
that is the basis for these patches.

The first file has the new additional files that are required,
    template/beos
    backend/port/dynloader/beos.c
    backend/port/dynloader/beos.h
    include/port/beos.h
    makefiles/Makefile.beos

The second is a tarball of diffs against a few files.  I've added sys/ipc.h
to configure and config.h via configure.in and config.h.in and then started
adding the check as this file isn't needed on BeOS and having loads of
#ifdef BEOS isn't as obvious as #ifdef HAVE_SYS_IPC_H and isn't as
autconf'ish :)
Files touched are
    include/c.h
    configure.in
    include/config.h.in
    include/storage/ipc.h
    include/utils/int8.h

Let me know how these go.  I'll await a response before submitting any more.

Any problems just get in touch.

David Reid
2000-10-02 17:16:01 +00:00
Peter Eisentraut 6f64c2e54a New unified regression test driver, test/regress makefile cleanup,
add "check" and "installcheck" targets, straighten out make variable naming
of host_os, host_cpu, etc.
2000-09-29 17:17:41 +00:00
Bruce Momjian b9e6f068dc Update bsdi template 2000-07-24 13:53:16 +00:00
Peter Eisentraut 3eec6ee145 Rename templates to match names in makefiles/Makefile.* and include/port.
Read templates after compiler is detected. Convert all templates to real
shell scripts. Rename bsd->openbsd, alpha->osf.
2000-07-15 15:54:52 +00:00
Peter Eisentraut 385470f8c6 Fixes for Solaris/cc suggested by <pgsql-hackers@thewrittenword.com>
Don't use DISABLE_COMPLEX_MACRO on Solaris. Don't define the
replacement function in the header file. Use -KPIC, not -K PIC.
Use CC to link C++ libraries, not ld/ar.

Eliminate file not found warnings in tcl build code.
2000-06-30 16:11:02 +00:00
Bruce Momjian a53dc5ee61 Linux/alpha patch. 2000-06-19 00:51:23 +00:00
Bruce Momjian 2635bef524 Remove -O0 linux ppc flag 2000-06-14 17:01:35 +00:00
Peter Eisentraut e3059fc0f5 Gen_fmgrtab.sh is strange: it is a platform dependent way (because it uses
CPP) to create platform independent files. Unfortunately, that means that
every config.status (or configure) run invariably causes a relink of the
postmaster and also that we can't put these files in the distribution
(usefully). So we make it a little smarter: when the output files already
exist and it notices that it would recreate them in identical form, it
doesn't touch them. In order to avoid re-running the make rule all the time
we update a timestamp file instead.

Update release_prep accordingly. Also make Gen_fmgrtab.sh use the awk that
is detected at configure time, not necessarily named `awk' and have it check
for exit statuses a little better.

In other news... Remove USE_LOCALE from the templates, it was set to `no'
everywhere anyway. Also remove YACC and YFLAGS from the templates, configure
is smart enough to find bison or yacc itself. Use AC_PROG_YACC for that
instead of the hand-crafted code. Do not set YFLAGS to `-d'. The make rules
that need this flag should explicitly invoke it. YFLAGS should be a user
variable. Update the makefiles to that effect.
2000-06-07 16:27:00 +00:00
Tom Lane ef6c33f3b9 Finally figured out that HP's cpp won't do ANSI preprocessing constructs
unless you feed it -Aa or -Ae switch.  Autoconf does not know about this,
but we can fix it in the hpux_cc template file.  I knew templates were
good for something ;-)
2000-04-21 03:07:51 +00:00
Tom Lane b90e3e4cbb linux_alpha pattern should allow for more-detailed machine type such
as 'alphaev5', cf report from Stepanov 13-Apr-00.
2000-04-18 05:57:45 +00:00
Tom Lane 609f93a436 Revert no-longer-needed relaxation of compiler errors. 2000-04-18 00:27:34 +00:00
Bruce Momjian 3b192c232d Add comment for -qhalt=w removal so it can be re-added later 2000-04-17 22:21:07 +00:00
Bruce Momjian aafff4af16 Aix additions 2000-04-17 18:11:43 +00:00
Bruce Momjian ae16968051 Remove -qhalt=w flag from aix42. 2000-04-17 15:50:18 +00:00
Bruce Momjian 6995c5fbad Please forget all I said about gcc and AIX in my previous mail.
It does work with the following patch applied and gcc 2.95.2 .

Use --with-template=aix_gcc to compile the whole lot with gcc.

The geometry regression test produces different precision.
With optimization I run into regression failures starting at oidjoins,
thus no -O2. Anybody else try gcc 2.95.2 and -O2 on beta4 ?

This is an important patch, since recent versions of the IBM compiler
are not for free, and thus most questions I get concern gcc.

Andreas

PS.: I am testing with beta4
2000-04-05 14:47:21 +00:00
Tom Lane fa02af8f8b Update alpha templates as suggested by SL Baur and Adriaan Joubert.
Make similar changes to hpux templates.  Might want to do the same for
other foo_cc and foo_gcc pairs, but will desist until I hear from
someone who uses those platforms.
2000-03-31 05:03:39 +00:00
Bruce Momjian c07118b3b3 Remove -O2 for aix. 2000-03-24 14:39:07 +00:00
Bruce Momjian f8645018bc Back out // compiler flag. 2000-03-23 22:25:36 +00:00
Bruce Momjian b2d867fb08 Some points for portability improvements:
1. C++ style comments in C source for ecpg ( // comment )
2. compiler finds wrong include file extern.h in ecpg/lib/descriptor.c
from
include path instead of workdir (rename it ?)
3. fe-connect getsockopt takes a socklen_t as fifth arg not int (use
SOCKET_SIZE_TYPE instead)
4. char vs unsigned char in psql calls to libpq
5. empty define that results in an empty but terminated line ( ; )

Now for all but point 3 I can supply changes to the
compiler flags, to make the compiler less pedantic.
Or is someone interested in the complications ?

in the meantime can someone apply the attached patch ?

Andreas
2000-03-23 17:27:36 +00:00
Tom Lane 966b5337e9 Make use of pre-existing regexp match capability to eliminate redundant
entries in template selection rules.  Also, change alpha-dec-osf pattern
to cope with version info attached to the 'alpha' part.
2000-03-19 22:48:30 +00:00
Bruce Momjian a7e0ee9a0e Since it has been confirmed working on the bugs list, please apply the
attached patch.

Andreas Kardos
2000-03-16 15:35:34 +00:00
Bruce Momjian e3fb902991 > To make PostgreSQL compilable on Digital Unix I had to modify the
alpha_cc
> template file. Patch attached.
>
> Andreas Kardos
>
2000-03-14 16:00:22 +00:00
Bruce Momjian 7585deb087 I have done the QNX4 port with the current source tree. The number of
backend/Makefiles to be patched could significantly be reduced since
they
have been adopted to the QNX4 needs.

Andreas Kardos
1999-12-16 01:25:23 +00:00
Bruce Momjian 0fe4a20891 Add Linux ARM. 1999-11-06 01:55:44 +00:00
Bruce Momjian 1696dd1121 Update bsdi for bsd/os 4.1 1999-11-04 16:22:23 +00:00
Bruce Momjian c3ac9f07b7 Hi,
I have changed a bit the makefiles for the win32 port - the *.def files
(created when building shared libraries) are now clean from
Makefile.shlib.

I have also removed "-g" from CFLAGS in the "cygwin32" template - it can
be
enabled when running configure.

                        Dan
1999-10-13 11:38:42 +00:00
Bruce Momjian 3114f92122 Add bsdi sparc port. 1999-09-27 00:48:42 +00:00
Bruce Momjian 7d0a5342a3 test 1999-09-06 15:15:07 +00:00
Bruce Momjian 12c51d9c6e Remove comment after optimization flag. 1999-07-29 15:39:05 +00:00
Bruce Momjian e740c9b1d1 Move -ieee to adt Makefile, and add CPU Makefile variable. 1999-07-20 02:42:20 +00:00
Tatsuo Ishii 4fceee0e71 -mieee and # does not work for certain version of egcs 1999-07-10 12:33:10 +00:00
Bruce Momjian ffe0097519 Add linux_m68k template file. 1999-07-09 02:35:37 +00:00
Bruce Momjian ef15ed17a0 Remove -m486 on Openbsd. 1999-06-26 15:54:36 +00:00
Bruce Momjian 371a9d7ad8 linux_ppc now use -O0 to fix problem in optimization of fmgr calls. 1999-06-18 00:46:11 +00:00
Bruce Momjian 4c65382596 Remove QUERY_LIMIT and documenation on same. Change _ALIGN to TYPEALIGN
for Irix.
1999-06-17 15:16:09 +00:00
Bruce Momjian 4b9ccbe3cf Make linux_ppc use only -O, not -O2. 1999-06-17 13:44:43 +00:00
Bruce Momjian f4de72cc6b add m86 similar entries. 1999-06-11 14:34:02 +00:00
Bruce Momjian 0ac955540b Remove -O2 for linux/alpha, make -O. 1999-06-09 12:39:46 +00:00
Bruce Momjian ccdad51a73 Linux-alpha gets -O 1999-06-08 19:19:51 +00:00
Bruce Momjian 2544f2d0bb Remove optimization on linux/alpha. 1999-06-08 17:34:43 +00:00
Bruce Momjian 094616ec83 On AIX 4.3.2 the third line in template/aix_42:
SHARED_LIB:

needs to be changed to:
SHARED_LIB:-lc

I think this was also needed on AIX 4.2. Comments Please !!

If nobody objects, I suggest to make this change, since it cannot
break AIX 4.2 and is necessary on AIX 4.3

Andreas
1999-06-07 17:20:24 +00:00
Bruce Momjian 7f79496aa5 NT similar file update. 1999-05-31 16:18:53 +00:00
Tatsuo Ishii a2c96a16e4 add mipsel-unknown-linux-gnu support. config.guess seems slightly changed
since April 1?
1999-04-12 04:04:54 +00:00
Tom Lane 2e7ef7477c We use CFLAGS = -O2 on every other gcc platform, so why not
hpux_gcc too?
1999-04-04 20:16:50 +00:00
Bruce Momjian 909c519733 Add missing Windows files. 1999-01-18 12:43:55 +00:00
Bruce Momjian 7a6b562fdf Apply Win32 patch from Horak Daniel. 1999-01-17 06:20:06 +00:00
Bruce Momjian b8d5f02e4e I have ported PostgreSQL 6.4 to Cobalt Qube running Linux 2.0.33 with
MIPS cpu (I think it's R4000). I have tested the patches on LinuxPPC
and FreeBSD. I believe they do not harm other platforms.
--
Tatsuo Ishii
1998-12-18 17:25:41 +00:00
Bruce Momjian 03f1648872 Attached is a patch with some fixes that (I think that) should go into
6.4.1. Here is the list:

- The type int8 now works. In fact, the bug(s) were in
src/backend/port/snprintf.c, so int8 is probably broken in every platform
that hasn't a native snprintf/vsnprintf. The type itself worked as
expected, only the output was wrong. Anyway, this patch should be checked
in other platforms.

- The regression tests for int2 and int4, which were broken due to
differences in the error messages, are fixed.

- The regression test for float8, which was broken in the reference
platform, is also fixed. I don't know if the new file (float8-OSF1.out)
will work on other platforms, but it might be worth to try it.

- Two new template files are provided (alpha_cc, which includes
optimization, and alpha_gcc), and src/templates/.similar is updated
accordingly. src/templates/alpha should be removed from the distribution.
*IMPORTANT NOTE*: I don't know if you can use gcc to compile postgres;
I've written the alpha_gcc file because alpha_cc has some flags that are
specific to DEC C.

- There is a (very basic) Digital Unix specific FAQ in
doc/FAQ_DigitalUnix.

--
-------------------------------------------------------------------
Pedro José Lobo Perea                   Tel:    +34 91 336 78 19
1998-12-18 07:08:03 +00:00
Tom Lane e791d86012 Partial fix for vendor-cc-versus-gcc incompatibility on HPUX:
prefer aCC as c++ compiler if hpux_cc is selected as template.
Doesn't solve the problem if you have g++ and not aCC, however...
1998-12-13 20:05:16 +00:00
Tom Lane 6fef1a26cc modify configure so that template/.similar entries can be
selected when they match a prefix of the  value.  The previous method,
which stripped all version data from  and then tried to match that
against .similar entries, was entirely useless when .similar contained
several entries for different version numbers of a single OS name.
1998-11-23 04:40:58 +00:00
Tom Lane 0852fbbb55 Compiler options not spelled quite right... 1998-10-26 00:57:33 +00:00
Bruce Momjian aeb277c405 Update for bsdi 3.0. 1998-10-23 01:02:10 +00:00
Bruce Momjian 62bc4de45b Remove /usr/local/* from templates. 1998-09-18 05:00:52 +00:00
Bruce Momjian af8e2760ba Here are some additional patches needed to get the UnixWare 7 C++
compiler to
attempt to compile libpq++.  The patches address the following problems:

1.  In my first pass at changing the libpq++ makefile, I forgot to
include the
    PORTNAME in the Makefile.in file.

2.  The UnixWare 7 C++ compiler did not like the '-K alloca' option in
CXXFLAGS.

Billy G. Allie
1998-09-13 04:00:44 +00:00
Bruce Momjian 56a2d8042b bsdi 4.0. 1998-09-10 04:46:45 +00:00
Bruce Momjian 42cc8c019e Add some support for BSDI 4.0. 1998-09-10 04:39:47 +00:00
Bruce Momjian 6d3a5482aa Aix4 fixes from Andreas Zeugswetter 1998-09-09 18:39:33 +00:00
Bruce Momjian b07f4b4efb Configure fix for install script search. 1998-09-02 01:54:18 +00:00
Bruce Momjian 61d673b2ea bsdi cleanup 1998-09-01 16:31:19 +00:00
Marc G. Fournier c8b3d5d3f8 Add nextstep to similar template file 1998-08-25 14:12:27 +00:00
Bruce Momjian a738478ad8 Here are additional patches for the UnixWare 7 port.
Summary of changes:

In pqcomm.h, use the SUN_LEN macro if it is defined to calculate
the size of the sockaddr_un structure.

In unixware.h, drop the use of the UNIXWARE macro.  Everything can
be handled with the USE_UNIVEL_CC and DISABLE_COMPLEX_MACRO macros.

In s_lock.h, remove the reference to the UNIXWARE macro (see above).

In the unixware template, add the YFLAGS:-d line.

In various makefile templates, add (or cleanup) unixware and univel
port specific information.

-- Billy G. Allie
1998-08-22 04:24:41 +00:00
Bruce Momjian b41468dad2 Make sparc/solaris not use complex macr. 1998-07-19 05:02:51 +00:00
Bruce Momjian cf21d71a14 Attached are the three patches that were needed to get PostgreSQL
6.3.2 to compile (and run) on my Sparc Solaris 2.5.1 box. Details
below:

	pgsql.sparc.patch-template: Adds -D__sparc__ and -D__sun__,
defintions which gcc does define, but Sun's cc does not. :(
	pgsql.sparc.patch-makefile: Adds a define so that 'lorder'
	is not used, as it is not found on my machine.


Ryan Kirkpatrick
1998-07-19 04:30:04 +00:00
Bruce Momjian 0624f3dcbd My mailer munged the intro text in my last post. Here is the text
in a more readable form.  -- I am submitting the following patches
to the June 6, 1998 snapshot of PostgreSQL.  These patches implement
a port of PostgreSQL to SCO UnixWare 7, and updates the Univel port
(UnixWare 2.x).  The patched files, and the reason
 for the patch are:

File            Reason for the patch ---------------
---------------------------------------------------------------
src/backend/port/dynloader/unixware.c src/backend/port/dynloader/unixware.h
src/include/port/unixware.h src/makefiles/Makefile.unixware
src/template/unixware
		Created for the UNIXWARE port.

src/include/port/univel.h
		Modifed this file to work with the changes made to
		s_lock.[ch].

src/backend/storage/buffer/s_lock.c src/include/storage/s_lock.h
		Moved the UNIXWARE (and Univel) tas() function from
		s_lock.c to s_lock.h.  The UnixWare compiler asm
		construct is treated as a macro and needs to be in
		the s_lock.h file.  I also reworked the tas()
		function to correct some errors in the code.

src/include/version.h.in
		The use of the ## operator with quoted strings in
		the VERSION macro caused problems with the UnixWare
		C compiler.  I removed the ## operators since they
		were not needed in this case.  The macro expands
		into a sequence of quoted strings that will be
		concatenated by any ANSI C compiler.

src/config.guess
		This script was modified to recognize SCO UnixWare
		7.

src/configure src/configure.in
		The configure script was modified to recognize SCO
		UnixWare 7.

Billy G. Allie
1998-07-19 04:17:13 +00:00
Bruce Momjian 62b124b4ee new linux_ppc port. 1998-06-22 02:04:29 +00:00
Bruce Momjian 4d96f02394 Update .similar file for new template names. 1998-06-18 04:29:53 +00:00
Bruce Momjian 693b156a70 Add flag for linux-alpha. 1998-06-16 04:04:00 +00:00
Bruce Momjian d939f60ca7 template change 1998-06-12 22:42:12 +00:00
Bruce Momjian 6a08857cc8 template changes 1998-06-12 22:26:24 +00:00
Bruce Momjian af73db0697 Solaris 5 fix. 1998-05-22 04:48:45 +00:00
Marc G. Fournier 1af6b56427 From: Ryan Kirkpatrick <rkirkpat@nag.cs.colorado.edu>
Ok, I have finally gotten all of the defines for Dec/Alpha and
Linux/Alpha sorted out as Marc asked. There is no longer any need for
'-Dalpha' or '-Dlinuxalpha' in either the Dec/Alpha or the Linux/Alpha
template files (./src/template/{alpha,linuxalpha}). I have replaced every
instance of 'alpha' or '__alpha__' with '__alpha', as that appears to be
the common symbol between C compilers on both operating systems (RH4.2 &
DecUnix 4.0b) for alpha.
1998-04-27 14:46:51 +00:00
Bruce Momjian 85519eea83 Fix cc-specifc compiler flags in templatees. 1998-04-27 03:32:11 +00:00
Marc G. Fournier 19d41d4438 From: Darren King <darrenk@insightdist.com>
This will force the aix compiler to insert trapping code to
check for division by zero for the 4.1 port.
1998-04-17 02:44:01 +00:00
Marc G. Fournier d4d26f9c33 From: Diab Jerius <dj@pelf.harvard.edu>
Fix for Solaris/cc problem
1998-04-13 14:46:48 +00:00
Marc G. Fournier a362212a17 linuxalpha patches from Ryan Kirkpatrick <rkirkpat@nag.cs.colorado.edu> 1998-04-11 21:14:50 +00:00
Bruce Momjian bc40727042 cleanup and possible alpha-linux fix. 1998-04-06 02:03:08 +00:00
Bruce Momjian 1e801a8f16 Hi,
Attached you'll find a (big) patch that fixes make dep and make
depend in all Makefiles where I found it to be appropriate.

It also removes the dependency in Makefile.global for NAMEDATALEN
and OIDNAMELEN by making backend/catalog/genbki.sh and bin/initdb/initdb.sh
a little smarter.

This no longer requires initdb.sh that is turned into initdb with
a sed script when installing Postgres, hence initdb.sh should be
renamed to initdb (after the patch has been applied :-) )

This patch is against the 6.3 sources, as it took a while to
complete.

Please review and apply,

Cheers,

Jeroen van Vianen
1998-04-06 00:32:26 +00:00
Bruce Momjian f6c0fc1959 The real trick is to add -Dalpha to the CFLAGS setting. The changes
to main.c are only to add some extra includes to support some code
that's suddenly being used.

The #define ASSEMBLER is to prevent most of the code of sys/proc.h
from being included, as it ends up conflicting with some of the
postgresql definitions.  This may or may not work on other versions
of Digital Unix.


Get alpha working.  Yea.  Dwayne Bailey
1998-03-20 03:55:52 +00:00
Bruce Momjian 94abcc1665 SunOS .similar cleanup. 1998-03-16 15:14:50 +00:00
Bruce Momjian 45ce9e4030 Add SunOS entries. 1998-03-16 14:46:37 +00:00
Marc G. Fournier 56b3182241 From: "Billy G. Allie" <Bill.Allie@mug.org>
The following patches will allow postgreSQL 6.3 to compile and run on a
UNIXWARE 2.1.2 system with the native C compiler with the following library
change:

        The alloca function must be copied from the libucb.a archive and added
        to the libgen.a archive.

Also, the GNU flex program is needed to successfully build postgreSQL.
1998-03-01 04:47:38 +00:00
Marc G. Fournier 9ceaa677ad Add for port hppa-??-hpux... 1998-02-27 21:55:22 +00:00
Marc G. Fournier 0daa8c3745 A few misc fixes brought up by Andrew 1998-02-23 15:44:25 +00:00
Marc G. Fournier ded3f3b3fc Remove all backend/port/${PORTNAME} references from template files, since
they don't exist anymore
1998-02-16 14:39:29 +00:00
Marc G. Fournier e3f2224664 Remove -m486 option, since it is platform specific...this should technically
be removed everywhere, but so far linux-elf is the only platform that is
being reported a problem with...
1998-02-13 04:57:23 +00:00
Marc G. Fournier fe3737f6f9 Fixes for linux-elf-sparc related template file
From: "Thomas A. Szybist" <szybist@boxhill.com>
1998-02-03 01:00:50 +00:00
Marc G. Fournier 6e9558e639 From: "Billy G. Allie" <Bill.Allie@mug.org>
The following patches will bring the UNIVEL port in line with the new porting
model used in postgreSQL 6.3
1998-02-01 07:44:00 +00:00
Marc G. Fournier b7ed95ae15 don't forget to 'template' i386_solaris 1998-01-29 17:16:02 +00:00
Marc G. Fournier 9efbe8d761 From what I can tell, -DNOFIXADE does absolutely nothing under HP/ux 1998-01-27 05:03:15 +00:00
Marc G. Fournier 7aeda9d667 add CC:cc so that configure uses cc on non-gcc machine
From: Stan Brown <stanb@awod.com>
1998-01-27 05:02:11 +00:00
Marc G. Fournier 8700377384 Start an openbsd port 1998-01-20 03:11:11 +00:00
Marc G. Fournier 36c1c94bca From: "Billy G. Allie" <Bill.Allie@mug.org>
The attached patches will allow postgreSQL to compile successfully on SCO
UNIXWARE 2.1.x.  The patches fix the following problems:

1.  Configure did not properly recognize the UNIXWARE system as needing the
    univel port.  It used the sys4 port.

2.  Configure did not properly process the CC flag in the template file.

3.  There was no working test and set locking implementation for the native
    UNIXWARE compiler.

4.  The test and set locking used for Intel X86 that was selected by defining
    NEED_I386_TAS_ASM could fail in a multi-processor environment.

5.  The makefiles for libpq and libpgtcl did not make a shared library for
    the univel port.
1998-01-17 23:33:58 +00:00
Marc G. Fournier 9257cb65b2 Linux related change to .similar to handle 'a.out' files...
From: Herb Richter <hgr@buynet.com>
1997-12-02 02:43:08 +00:00
Bruce Momjian 58527aa227 Add to .similar file, Tatsuo Ishii 1997-11-19 17:57:42 +00:00
Marc G. Fournier 0f367cf8c8 From: "Gillies, Robert" <GilliesR@Nichols.com>
Add: Stratus computer (a fault tolerant Unix box running an Intel I960
processor).
1997-11-10 03:31:49 +00:00
Marc G. Fournier 8d0fe2d0d4 Oops, shouldn't have added that extra, it seems... :) 1997-11-09 03:58:20 +00:00
Marc G. Fournier 3dfcef7c5f Add i586-pc-sco3.2v5.0.2 to .similar file
Pointed out by: Pieter Huyser <pieter@inetsys.alt.za>
1997-11-09 03:45:39 +00:00
Bruce Momjian 868859b7e3 AIX patch from Darren King. 1997-10-30 03:37:28 +00:00
Thomas G. Lockhart 2cad160f13 Have compiler use 486 instruction set. (Should add item in linux FAQ). 1997-10-25 05:58:56 +00:00
Bruce Momjian a4cffdcf82 HPUX 10 fix. 1997-09-30 15:19:32 +00:00
Bruce Momjian 28c2edcb3d Remove aix power pc. 1997-09-24 15:49:46 +00:00
Bruce Momjian 88325bd010 AIX fixes. 1997-09-23 22:53:47 +00:00
Marc G. Fournier 359cd689f8 Ack, I missed a template file here :( 1997-09-18 01:32:14 +00:00
Bruce Momjian f05642bbcc Linux seems to have 3/4/5/686. 1997-09-16 18:51:49 +00:00
Bruce Momjian 9b7f362d0a -Linux configure additoin, libtcl Makefile patch. 1997-09-14 23:34:16 +00:00
Bruce Momjian 281ba3f40d Update .similar version file. 1997-08-22 18:48:25 +00:00
Marc G. Fournier eaae21fb4d Fixes for alphalinux port by abrams@philos.umass.edu 1997-08-17 02:40:00 +00:00
Bruce Momjian 105889e1d8 Makei configure less os-version specific, were possible. 1997-08-02 16:32:51 +00:00
Bruce Momjian 8338f90d4e Add SCO files. 1997-07-28 01:34:24 +00:00
Bruce Momjian 79e78f0b80 Added SCO support, from Daniel Harris. 1997-07-28 00:57:08 +00:00
Bruce Momjian 3ac9d2fff3 Various compile errors concerning overflow due to shifts, unsigned, and bad prototypes, from Solaris, from Diab Jerius 1997-07-24 20:19:10 +00:00
Bruce Momjian 41b805b913 Solaris .similar update. 1997-07-16 02:25:16 +00:00
Bruce Momjian 441648d955 .similar patch for irix 1997-07-15 17:16:46 +00:00
Marc G. Fournier 11c7d75560 From: Phil Nelson <phil@cs.wwu.edu>
Subject: [PATCHES] Patches to allow generic NetBSD support
1997-06-06 01:38:24 +00:00
Bruce Momjian ce2fcd0180 bsdi configure detection fix. 1997-06-05 17:36:43 +00:00
Bruce Momjian 21437b747b Add bsdi to template detection. 1997-06-03 20:08:06 +00:00
Bruce Momjian f93bd64504 Add bsdi 3.0 to configure. 1997-06-01 04:05:26 +00:00
Marc G. Fournier 9860926148 From: Darren King <aixssd!darrenk@abs.net>
Subject: [PATCHES] AIX 6.2 make patch.

New template files to replace the old AIX template
1997-05-20 03:00:17 +00:00
Marc G. Fournier 500b17eadf These two files got reversed somehow... -K PIC is a cc'ism and -fPIC is a
gcc'ism
1997-05-19 03:21:55 +00:00
Marc G. Fournier e454d8a116 From: David Friend <dfriend@atlsci.atlsci.com>
Add an entry for the Sparc/Linux port in .similar
1997-05-17 03:02:04 +00:00
Marc G. Fournier 9f2d714620 From: "Paul M. Aoki" <aoki@CS.Berkeley.EDU>
Subject: [PATCHES] port patch: ultrix4

ultrix4 doesn't compile without this.  this also fixes a problem
with dynamic loading (ultrix relocatable objects must be loaded
with -G 0).
1997-05-07 03:12:46 +00:00
Marc G. Fournier 81acad4932 Add a netbsd template file and update linux-elf and .similar 1997-04-28 16:19:50 +00:00
Marc G. Fournier b2f2e0316e More misc patches from Thomas for regression tests and linux templates 1997-04-26 05:50:25 +00:00
Marc G. Fournier 87fffc4342 Various bug fixes based on a bug report submitted by
Doug Neuhauser <doug@seismo.berkeley.edu> on April 15th
1997-04-24 20:02:02 +00:00
Marc G. Fournier cf398593fd From: System Administrator <igor@sba.miami.edu>
Subject: [PORTS] Configure for DEC-Alpha

Configure script properly detects alpha-dec-osf4.0 machine, but
sets a default GENERIC template for it. I modified tempplate/.similar to
add alpha-dec-osf4.0=alpha. Then configure properly set the template to
alpha.
1997-04-22 17:55:20 +00:00
Marc G. Fournier ba697c8c0b Fix a problem with Linux where yacc is *really* bison -y 1997-04-16 14:13:51 +00:00
Marc G. Fournier bb0a17412d Change BACKEND to CFLAGS 1997-04-11 18:55:10 +00:00
Marc G. Fournier 063190a5fa Add in support so that build will at least guess which template file
should be used :)
1997-04-06 04:43:28 +00:00
Marc G. Fournier eda9d69d6c Move YACC and YFLAGS into the template files
Clean up the .sample files...comment out all sample entries except for
the localhost one
1997-04-04 11:23:15 +00:00
Marc G. Fournier c7b40e6058 This commit represents a clean compile with the new templates under
FreeBSD

The Makefile(s) have all been cleaned up such that there is a single
LDFLAGS vs LD_ADD or LDADD or LDFLAGS or LDFLAGS_BE.  The Makefile(s)
should be alot more straightforward then they were before...and
consistent
1997-04-04 10:43:16 +00:00
Marc G. Fournier e292a9d627 Got AROPT setting backwards...correct it 1997-04-04 09:02:34 +00:00
Marc G. Fournier 50db09185d Remove some files that were inadvertantly created
Clean up format of linux-elf
1997-04-04 08:16:37 +00:00
Marc G. Fournier f2eb14ad0d One helluva mess.
Further extended Makefile.global/build/configure so that we can
have a 'template' file for each OS (and each version of OS, as in BSDi)
which is used as much as possible to generate Makefile.global

	Any future ports should look at using the template file as a basis,
before moving over to Makefile.global.

	This will most probably break alot of the ports, atho I've tried to
be very neat about it...
1997-04-04 07:59:48 +00:00