cannot compile CVS HEAD

Started by Pavel Stehuleabout 16 years ago3 messages
#1Pavel Stehule
pavel.stehule@gmail.com

Hello

I have a problem with compilation:

make[4]: Entering directory `/home/pavel/src/pgsql/src/backend/utils/adt'
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing
-fwrapv -I../../../../src/include -D_GNU_SOURCE -c -o int.o int.c
int.c: In function ‘int4xor’:
int.c:1209: error: ‘arg2’ undeclared (first use in this function)
int.c:1209: error: (Each undeclared identifier is reported only once
int.c:1209: error: for each function it appears in.)
int.c:1207: warning: unused variable ‘arg20’
make[4]: *** [int.o] Error 1

regards
Pavel Stehule

#2Heikki Linnakangas
heikki.linnakangas@enterprisedb.com
In reply to: Pavel Stehule (#1)
Re: cannot compile CVS HEAD

Pavel Stehule wrote:

I have a problem with compilation:

make[4]: Entering directory `/home/pavel/src/pgsql/src/backend/utils/adt'
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing
-fwrapv -I../../../../src/include -D_GNU_SOURCE -c -o int.o int.c
int.c: In function ‘int4xor’:
int.c:1209: error: ‘arg2’ undeclared (first use in this function)
int.c:1209: error: (Each undeclared identifier is reported only once
int.c:1209: error: for each function it appears in.)
int.c:1207: warning: unused variable ‘arg20’
make[4]: *** [int.o] Error 1

That's bizarre. Works fine for me. Looks like the local variable is
called "arg20" instead of "arg2" in your workspace for some reason. You
sure you didn't accidentally fumble that?

--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com

#3Pavel Stehule
pavel.stehule@gmail.com
In reply to: Heikki Linnakangas (#2)
Re: cannot compile CVS HEAD

2009/12/2 Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>:

Pavel Stehule wrote:

I have a problem with compilation:

make[4]: Entering directory `/home/pavel/src/pgsql/src/backend/utils/adt'
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing
-fwrapv -I../../../../src/include -D_GNU_SOURCE   -c -o int.o int.c
int.c: In function ‘int4xor’:
int.c:1209: error: ‘arg2’ undeclared (first use in this function)
int.c:1209: error: (Each undeclared identifier is reported only once
int.c:1209: error: for each function it appears in.)
int.c:1207: warning: unused variable ‘arg20’
make[4]: *** [int.o] Error 1

That's bizarre. Works fine for me. Looks like the local variable is
called "arg20" instead of "arg2" in your workspace for some reason. You
sure you didn't accidentally fumble that?

it is some strange - maybe some hw problem :(

Pavel

Show quoted text

--
 Heikki Linnakangas
 EnterpriseDB   http://www.enterprisedb.com