Thread: cannot compile CVS HEAD

cannot compile CVS HEAD

From
Pavel Stehule
Date:
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


Re: cannot compile CVS HEAD

From
Heikki Linnakangas
Date:
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


Re: cannot compile CVS HEAD

From
Pavel Stehule
Date:
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

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