Problem with 7.1.3 and -DUSE_AUSTRALIAN_RULES

From: Justin Clift <justin(at)postgresql(dot)org>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Problem with 7.1.3 and -DUSE_AUSTRALIAN_RULES
Date: 2001-11-14 05:46:27
Message-ID: 3BF20533.99C75BFF@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi,

I'm trying to compile PostgreSQL 7.1.3 on Redhat 7.1, and whenever I
define USE_AUSTRALIAN_RULES with :

export CFLAGS=-DUSE_AUSTRALIAN_RULES

When doing make I get the error "<command line>: warning: ISO C requires
whitespace after the macro name" after every invocation of gcc. After a
while the whole process errors out with :

<command line>: warning: ISO C requires whitespace after the macro name
gcc -DUSE_AUSTRALIAN_RULE -Wall -Wmissing-prototypes
-Wmissing-declarations -I../../../../src/include -c -o cash.o cas
h.c
<command line>: warning: ISO C requires whitespace after the macro name
gcc -DUSE_AUSTRALIAN_RULE -Wall -Wmissing-prototypes
-Wmissing-declarations -I../../../../src/include -c -o char.o cha
r.c
<command line>: warning: ISO C requires whitespace after the macro name
gcc -DUSE_AUSTRALIAN_RULE -Wall -Wmissing-prototypes
-Wmissing-declarations -I../../../../src/include -c -o date.o dat
e.c
<command line>: warning: ISO C requires whitespace after the macro name
gcc -DUSE_AUSTRALIAN_RULE -Wall -Wmissing-prototypes
-Wmissing-declarations -I../../../../src/include -c -o datetime.o
datetime.c
<command line>: warning: ISO C requires whitespace after the macro name
datetime.c:120:5: invalid character '\033' in #if
datetime.c:137:5: invalid character '\033' in #if
datetime.c:202:5: invalid character '\033' in #if
make[4]: *** [datetime.o] Error 1
make[4]: Leaving directory `/opt/postgresql-7.1.3/src/backend/utils/adt'
make[3]: *** [adt-recursive] Error 2
make[3]: Leaving directory `/opt/postgresql-7.1.3/src/backend/utils'
make[2]: *** [utils-recursive] Error 2
make[2]: Leaving directory `/opt/postgresql-7.1.3/src/backend'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/opt/postgresql-7.1.3/src'
make: *** [all] Error 2
[postgres(at)justinspc postgresql-7.1.3]$

Checking in the config.log file, I see this :

[postgres(at)justinspc postgresql-7.1.3]$ more config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:629: checking host system type
configure:655: checking which template to use
configure:818: checking whether to build with locale support
configure:847: checking whether to build with recode support
configure:877: checking whether to build with multibyte character
support
configure:929: checking whether to build with Unicode conversion support
configure:960: checking for default port number
configure:994: checking for default soft limit on number of connections
configure:1118: checking for gcc
configure:1231: checking whether the C compiler (gcc
-DUSE_AUSTRALIAN_RULE ) works
configure:1247: gcc -o conftest -DUSE_AUSTRALIAN_RULE conftest.c
1>&5
<command line>: warning: ISO C requires whitespace after the macro name
configure:1273: checking whether the C compiler (gcc
-DUSE_AUSTRALIAN_RULE ) is a cross-compiler
configure:1278: checking whether we are using GNU C
configure:1287: gcc -E conftest.c
configure:1306: checking whether gcc accepts -g
configure:1349: checking whether the C compiler (gcc
-DUSE_AUSTRALIAN_RULE ) works
configure:1365: gcc -o conftest -DUSE_AUSTRALIAN_RULE conftest.c
1>&5
<command line>: warning: ISO C requires whitespace after the macro name
configure:1391: checking whether the C compiler (gcc
-DUSE_AUSTRALIAN_RULE ) is a cross-compiler
configure:1396: checking for Cygwin environment
configure:1412: gcc -c -DUSE_AUSTRALIAN_RULE conftest.c 1>&5
<command line>: warning: ISO C requires whitespace after the macro name
configure: In function `main':
configure:1408: `__CYGWIN32__' undeclared (first use in this function)
configure:1408: (Each undeclared identifier is reported only once
configure:1408: for each function it appears in.)
configure: failed program was:
#line 1401 "configure"
#include "confdefs.h"

int main() {

#ifndef __CYGWIN__
#define __CYGWIN__ __CYGWIN32__
#endif
return __CYGWIN__;
; return 0; }
configure:1429: checking for mingw32 environment
configure:1441: gcc -c -DUSE_AUSTRALIAN_RULE conftest.c 1>&5
<command line>: warning: ISO C requires whitespace after the macro name
configure: In function `main':
configure:1437: `__MINGW32__' undeclared (first use in this function)
configure:1437: (Each undeclared identifier is reported only once
configure:1437: for each function it appears in.)
configure: failed program was:
#line 1434 "configure"
#include "confdefs.h"

int main() {
return __MINGW32__;
; return 0; }
configure:1460: checking for executable suffix
configure:1470: gcc -o conftest -DUSE_AUSTRALIAN_RULE conftest.c
1>&5
<command line>: warning: ISO C requires whitespace after the macro name
configure:1491: checking how to run the C preprocessor
configure:1512: gcc -E conftest.c >/dev/null 2>conftest.out
configure:1572: checking whether gcc needs -traditional
configure:1718: checking whether to build with Tcl
configure:1742: checking whether to build with Tk
configure:1804: checking whether to build Perl modules
configure:1831: checking whether to build Python modules
configure:1913: checking whether to build Java/JDBC tools
configure:2153: checking whether to build the ODBC driver
configure:2235: checking whether to build C++ modules
configure:2628: checking for mawk
configure:2628: checking for gawk
configure:2658: checking for flex
configure:2723: checking whether ln -s works
configure:2755: checking for ld used by GCC
configure:2823: checking if the linker (/usr/bin/ld) is GNU ld
GNU ld version 2.10.91 (with BFD 2.10.91.0.2)
configure:2878: checking for ranlib
configure:2910: checking for lorder
configure:2942: checking for tar
configure:2979: checking for perl
configure:3014: checking for bison
configure:3100: checking for readline
configure:3122: gcc -o conftest -DUSE_AUSTRALIAN_RULE conftest.c
-lreadline 1>&5
<command line>: warning: ISO C requires whitespace after the macro name
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libreadline.so:
undefined reference to `tgetnum'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libreadline.so:
undefined reference to `tgoto'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libreadline.so:
undefined reference to `tgetflag'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libreadline.so:
undefined reference to `BC'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libreadline.so:
undefined reference to `tputs'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libreadline.so:
undefined reference to `PC'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libreadline.so:
undefined reference to `tgetent'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libreadline.so:
undefined reference to `UP'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libreadline.so:
undefined reference to `tgetstr'
collect2: ld returned 1 exit status
configure: failed program was:
#line 3111 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char readline();

int main() {
readline()
; return 0; }

Lots of messages like this. The last few lines of config.log is :

configure:7596: checking for POSIX signal interface
configure:7612: gcc -o conftest -DUSE_AUSTRALIAN_RULE conftest.c
-lz -lcrypt -lresolv -lnsl -ldl -lm -lbsd -lreadli
ne -ltermcap 1>&5
<command line>: warning: ISO C requires whitespace after the macro name
configure:7750: checking for onsgmls
configure:7786: checking for openjade
configure:7817: checking for DocBook V3.1
configure:7850: checking for DocBook stylesheets
configure:7889: checking for sgmlspl

On this server, I'm not the SysAdmin. There's a good chance the
SysAdmin for the server has kept the number of packages on this server
to a minimum, so it's possible some needed program is missing.

Does anyone have any ideas? Please bear in mind that everything
compiles fine without the -DUSE_AUSTRALIAN_FLAGS option.

Haven't tried current CVS, but it's an interesting thought (can't do it
on this server).

Regards and best wishes,

Justin Clift

--
"My grandfather once told me that there are two kinds of people: those
who work and those who take the credit. He told me to try to be in the
first group; there was less competition there."
- Indira Gandhi

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Bruce Momjian 2001-11-14 05:59:42 Re: Problem with 7.1.3 and -DUSE_AUSTRALIAN_RULES
Previous Message Tom Lane 2001-11-14 03:03:16 Re: Bug #514: Backend crashes periodically