Thread: porting postgrers 8.3 on SCO 5.0.7

porting postgrers 8.3 on SCO 5.0.7

From
"Edmundo Robles L."
Date:
Hello there!

I trying  to compile postgres 8.3 on SCO Open Server 5.0.7 but  i got an error to compile  cash.o:

gmake[4]: Entering directory `/u/erobles/postgresql-8.3.1/src/backend/utils/adt'
cc -b elf -O -I../../../../src/include -I/usr/local/include  -c -o cash.o cash.c
"cash.c", line 814: error: invalid token: 100ll
"cash.c", line 814: error: Syntax error before or at: ;
"cash.c", line 815: error: invalid token: 100ll
"cash.c", line 815: error: Syntax error before or at: )
"cash.c", line 816: error: invalid token: 100000ll
"cash.c", line 816: error: Syntax error before or at: )
"cash.c", line 817: error: invalid token: 100000000ll
"cash.c", line 817: error: Syntax error before or at: %
"cash.c", line 818: error: invalid token: 100000000000ll
"cash.c", line 818: error: Syntax error before or at: %
"cash.c", line 819: error: invalid token: 100000000000000ll
"cash.c", line 819: error: Syntax error before or at: %
"cash.c", line 820: error: invalid token: 100000000000000000ll
"cash.c", line 820: error: Syntax error before or at: %
gmake[4]: *** [cash.o] Error 1

i image  the cause that is because the cast to long long doesn't exist on cc from SCO.
i'll be glad if you could help with that issue.

Regards from MEXICO!!

Ing. Edmundo Robles Lopez.
Analista Programador.

--
Di  NO a la pirateria, usa software  libre.
Say NO to piracy, use free(dom) software.


Re: porting postgrers 8.3 on SCO 5.0.7

From
Tom Lane
Date:
"Edmundo Robles L." <erobles@sensacd.com.mx> writes:
> gmake[4]: Entering directory `/u/erobles/postgresql-8.3.1/src/backend/utils/adt'
> cc -b elf -O -I../../../../src/include -I/usr/local/include  -c -o cash.o cash.c
> "cash.c", line 814: error: invalid token: 100ll
> "cash.c", line 814: error: Syntax error before or at: ;

Hmm, seems our buildfarm is lacking machines that won't take that
construct, else we'd have noticed this long ago.  These should all
be using the INT64CONST() macro.

            regards, tom lane