Обсуждение: cannot compile CVS HEAD

Поиск
Список
Период
Сортировка

cannot compile CVS HEAD

От
Pavel Stehule
Дата:
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

От
Heikki Linnakangas
Дата:
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

От
Pavel Stehule
Дата:
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
>