[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: PostgreSQL 9.1 build failure
> The error is:
> cc -O2 -I/usr/include -I/usr/pkg/include -Wall -Wmissing-prototypes
> -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels
> -Wformat-security -fno-strict-aliasing -fwrapv -I. -I.
> -I../../../src/interfaces/libpq -I../../../src/bin/pg_dump
> -I../../../src/include -I/usr/include -I/usr/pkg/include -c -o command.o
> In file included from
> from input.h:21,
> from command.c:46:
> error: expected '=', ',', ';', 'asm' or '__attribute__' before 'typedef'
> gmake: *** [command.o] Error 1
> gmake: Leaving directory
> gmake: *** [all-psql-recurse] Error 2
> *** Error code 2
This smells like "unexpected and unintended macro expansion",
possibly due to a naming clash.
What I'd do is to save the compiler invocation to a file, replace
"-c -o command.o" with "-E -dD", and pipe the result of running
this into less. It should then be somewhat easier to see what
the compiler is really trying to compile at that point, and if it
is an unexpected macro expansion, to find where e.g. "Function"
is defined elsewhere. "Function" due to line 34 in my
typedef int Function ();
Main Index |
Thread Index |