pkgsrc-Users archive
[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
> command.c
> In file included from
> /usr/obj/databases/postgresql91-client/work.x86_64/.buildlink/include/readline/readline.h:38,
> from input.h:21,
> from command.c:46:
> /usr/obj/databases/postgresql91-client/work.x86_64/.buildlink/include/readline/rltypedefs.h:34:
> error: expected '=', ',', ';', 'asm' or '__attribute__' before 'typedef'
> gmake[1]: *** [command.o] Error 1
> gmake[1]: Leaving directory
> `/usr/obj/databases/postgresql91-client/work.x86_64/
> postgresql-9.1.3/src/bin/psql'
> 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
rltypedefs.h being
typedef int Function ();
Regards,
- Håvard
Home |
Main Index |
Thread Index |
Old Index