Commit Graph

563 Commits

Author SHA1 Message Date
Alvaro Herrera 105f3ef492 Disable -faggressive-loop-optimizations in gcc 4.8+ for pre-9.2 branches.
With this optimization flag enabled, recent versions of gcc can generate
incorrect code that assumes variable-length arrays (such as oidvector)
are actually fixed-length because they're embedded in some larger struct.
The known instance of this problem was fixed in 9.2 and up by commit
8137f2c323 and followon work, which hides
actually-variable-length catalog fields from the compiler altogether.
And we plan to gradually convert variable-length fields to official
"flexible array member" notation over time, which should prevent this type
of bug from reappearing as gcc gets smarter.  We're not going to try to
back-port those changes into older branches, though, so apply this
band-aid instead.

Andres Freund

This is a backpatch of commit 649839dd9 to unsupported branches
REL8_2_STABLE and REL8_3_STABLE, so that they work with newer toolsets.
2015-01-20 12:26:20 -03:00
Andrew Dunstan 91a1e14899 Disable excessive FP optimization by recent versions of gcc.
Suggested solution from Tom Lane. Problem discovered, probably not
for the first time, while testing the mingw-w64 32 bit compiler.

Backpatched to all live branches.
2011-12-14 17:05:12 -05:00
Tom Lane fa1369a6b9 Stamp 8.2.23.
Hail and farewell, 8.2.
2011-12-01 16:59:19 -05:00
Tom Lane d08aa1937f Stamp 8.2.22. 2011-09-22 18:09:27 -04:00
Tom Lane cbd51548dc Replace obsolete AC_LANG_FUNC_LINK_TRY autoconf macro.
The version of this macro used in autoconf 2.59 is capable of incorrectly
succeeding (ie, reporting that a library function is available when it
isn't), if the compiler performs link-time optimization and decides that
it can optimize the function reference away entirely.  Replace it with the
coding used in autoconf 2.61 and later, which forces the program result to
depend on the function's result so that it cannot be optimized away.  This
should fix build failures currently being seen on buildfarm member anchovy.

This patch affects the 8.2 and 8.3 branches only, since later branches are
using autoconf versions that don't have this problem.
2011-08-29 19:52:13 -04:00
Tom Lane 07bc6fe668 Suppress -arch switches in the output of ExtUtils::Embed.
We previously found out that OS X's standard perl installation tries to put
-arch switches into Perl link commands, evidently in hopes of building
universal binaries.  But it doesn't work to add such switches in plperl's
link step if they weren't being used earlier, so this is basically
unworkable.  When using gcc the result is only some warnings; but LLVM
fails entirely, so this issue isn't as cosmetic as we originally thought.
Hence, back-patch commit d69a419e68 into
pre-9.0 branches.
2011-06-14 17:14:11 -04:00
Marc G. Fournier 1e289824b6 Tag 8.2.21. 2011-04-15 00:19:01 -03:00
Marc G. Fournier f62f223b8e Tag 8.2.20 2011-01-27 22:25:42 -04:00
Tom Lane 6a61d58ca8 Fix up getopt() reset management so it works on recent mingw.
The mingw people don't appear to care about compatibility with non-GNU
versions of getopt, so force use of our own copy of getopt on Windows.
Also, ensure that we make use of optreset when using our own copy.

Per report from Andrew Dunstan.  Back-patch to all versions supported
on Windows.
2010-12-15 23:51:07 -05:00
Marc G. Fournier 4d836f34b5 Tag 8.2.19. 2010-12-13 23:03:33 -04:00
Marc G. Fournier 61318f38c0 Tag 8.2.18 2010-10-01 10:37:09 -03:00
Marc G. Fournier 868de682e2 tag 8.2.17 2010-05-14 03:32:06 +00:00
Marc G. Fournier 9fbbb5e21e tag 8.2.16 2010-03-12 03:44:14 +00:00
Marc G. Fournier 0cea93188e tag 8.2.15 2009-12-10 03:09:47 +00:00
Marc G. Fournier 9b0a50e61c Tag 8.2.14 2009-09-04 01:16:34 +00:00
Marc G. Fournier 7e23229904 tag 8.2.13 2009-03-13 02:16:43 +00:00
Marc G. Fournier fbb70ccd60 tag 8.2.12 2009-01-30 03:13:35 +00:00
Tom Lane 7673ed269a Remove references to pgsql-ports and pgsql-patches mailing lists from
various documentation, since those lists are now dead/deprecated.
Point to pgsql-bugs and/or pgsql-hackers as appropriate.
2009-01-06 17:27:39 +00:00
Andrew Dunstan dc1b318d13 Detect and error out on inability to get proper linkage information required for plperl, usually due to absence of perl ExtUtils::Embed module. Backpatch as far as 8.1. 2008-11-12 00:00:53 +00:00
Marc G. Fournier 400e915c62 tag 8.2.11 2008-10-31 02:44:09 +00:00
Peter Eisentraut bbe385e82f Missing space in error message 2008-10-30 12:25:32 +00:00
Marc G. Fournier 6967e894fd tag for 8.2.10 2008-09-19 03:12:08 +00:00
Marc G. Fournier da3a1b796e tag 8.2.9 2008-06-09 00:34:32 +00:00
Marc G. Fournier b33c19746c tag 8.2.8 2008-06-06 04:03:08 +00:00
Tom Lane e8d1062899 Require bind_textdomain_codeset() not just gettext() to enable NLS support.
GNU gettext before 0.10.36 does not have that function, and is generally too
incomplete to be usable.
2008-05-27 22:18:18 +00:00
Marc G. Fournier 88dba25017 tag configure for 8.2.7 prior to tag 2008-03-14 03:30:55 +00:00
Tom Lane 3a5288960d Use -fwrapv in CFLAGS if we are using a version of gcc that accepts this flag.
This prevents compiler optimizations that assume overflow won't occur, which
breaks numerous overflow tests that we need to have working.  It is known
that gcc 4.3 causes problems and possible that 4.1 does.  Per my proposal
of some time ago and a recent report from Kris Jurka.

Backpatch as far as 8.0, which is as far as the patch conveniently goes.
7.x was pretty short of overflow tests anyway, so it may not matter there,
even assuming that anyone cares whether 7.x builds on recent gcc.
2008-03-10 21:50:31 +00:00
Tom Lane 7988f948c9 Use our own getopt() and getopt_long() on Solaris, because that platform's
versions don't handle long options the way we want.  Per Zdenek Kotala.
2008-02-24 05:22:11 +00:00
Tom Lane e29972bb56 Stamp release 8.2.6.
Security: CVE-2007-4769, CVE-2007-4772, CVE-2007-6067, CVE-2007-6600, CVE-2007-6601
2008-01-03 21:40:50 +00:00
Magnus Hagander 061f80e371 Back-patch mingw configure-check for gettimeofday so that 8.2 can
be built with current versions of mingw.
2007-11-29 16:44:26 +00:00
Marc G. Fournier 67bc5b0ca3 update configure for 8.2.5 ... 2007-09-14 20:18:26 +00:00
Tom Lane 3cb1617863 Fix search for SGML stylesheets to include the place where Gentoo keeps them.
Brendan Jurd
2007-08-09 02:34:07 +00:00
Magnus Hagander c7cca1c8f7 Fix freenig of names in Kerberos when using MIT - need to use the
free function provided in the Kerberos library.
This fixes a very hard to track down heap corruption on windows
when using debug runtimes.
2007-07-12 14:13:06 +00:00
Tom Lane f6eafabc6e Fix computation of PG_VERSION_NUM by configure: remove unnecessary and
unportable backslashes in awk script (per Patrick Welche), and add
brackets to prevent autoconf from mangling sed's regexp (the sed call
here never did what was expected).
2007-06-29 16:18:52 +00:00
PostgreSQL Daemon e05d9875b2 Update configure.in version number
Security: tag for release
2007-04-20 03:20:42 +00:00
Bruce Momjian 98e08d1aa0 Stamp releases 8.2.3, 8.1.8, 8.0.12. No release notes yet. 2007-02-07 03:48:58 +00:00
Bruce Momjian 554d3a683c Fix configure detection code when --with-ldap and --enable-thread-safety
are both used.

Backpatch to 8.2.X.

Albe Laurenz
2007-02-03 02:47:35 +00:00
Tom Lane d06a16c589 Stamp release 8.2.2.
Security: CVE-2007-0555, CVE-2007-0556
2007-02-02 00:14:22 +00:00
PostgreSQL Daemon 78c795d4e5 tag configure 2007-01-06 05:02:26 +00:00
Tom Lane 8867ffc519 Make --with-ldap build on Unixware, per Olivier Prenant. 2006-12-14 21:50:07 +00:00
PostgreSQL Daemon 2f52d7260c v8.2.0 is now released ... 2006-12-02 08:36:41 +00:00
Tom Lane 746330e2d0 Better solution to the tr problem: use sed instead. Per Martijn and Andrew. 2006-11-30 22:21:24 +00:00
Tom Lane 7ac9d45f49 Improve portability of 'tr' invocation in PGAC_ARG_CHECK. Reported by
Olivier Prenant, fixed by Peter.
2006-11-30 21:44:12 +00:00
Tom Lane 59cf88da91 Ignore libedit/libreadline while probing for strlcpy and some other
standard functions.  Per report from Stefan Kaltenbrunner.
2006-11-29 20:12:31 +00:00
PostgreSQL Daemon c11b5228cf update for rc1 2006-11-25 03:34:13 +00:00
PostgreSQL Daemon 9b3aee524f Tag as Beta3 ... two outstanding *known* bugs before RC1 ... 2006-11-07 17:59:05 +00:00
Tom Lane 02f37bd8c4 Revert to the pre-8.2 method of probing for libm, that is, always
include it if it links properly.  It seems too risky to assume that
standard functions like pow() are not special-cased by the compiler.
Per report from Andreas Lange that build fails on Solaris cc compiler
with -fast.  Even though we don't consider that a supported option,
I'm worried that similar issues will arise with other compilers.
2006-11-06 03:44:38 +00:00
Peter Eisentraut 0b9f93e6b0 Code the unknown options check without using m4 diversions. Otherwise this
code relies on the checking macro actually being called at the end, or the
automatic undiversion will produce garbage.  These sort of implicit
side-effects undermine the modularity of the macros and happen to break the
ODBC driver which makes use of them.

Also put the warnings at the very end of configure, so there is an even
better chance of seeing them.
2006-10-30 22:15:04 +00:00
Tom Lane 66f5264a2e Stamp 8.2beta2. 2006-10-23 22:50:20 +00:00
Peter Eisentraut 6ab23dabf5 Punt when trying to build with threaded Python on FreeBSD.
Also cut back on excessive use of *** to decorate configure error messages.
If it's an error message, you are sure to see it without any decoration.
2006-10-16 17:24:54 +00:00