Thread: ecpg+AIX 5L compile failure with current

ecpg+AIX 5L compile failure with current

From
Tatsuo Ishii
Date:
Just a quick news.

gmake[4]: Entering directory `/mnt/t-ishii/pgsql/src/interfaces/ecpg/preproc'
/usr/vac/bin/xlc -O2 -qmaxmem=16384 -qsrcmsg -qlonglong -I./../include -I../../../../src/include  -DMAJOR_VERSION=2
-DMINOR_VERSION=9-DPATCHLEVEL=0 -DINCLUDE_PATH=\"/usr/local/pgsql/include\"   -c -o variable.o variable.c     325 | //
           mmerror(ET_FATAL, "No multilevel (more than 2) pointer supported %d",pointer_len);
a....................................................................................b..........
a - 1506-046 (S) Syntax error.
b - 1506-099 (S) Unexpected argument.
gmake[4]: *** [variable.o] Error 1
--
Tatsuo Ishii


Re: ecpg+AIX 5L compile failure with current

From
Tom Lane
Date:
Tatsuo Ishii <t-ishii@sra.co.jp> writes:
> Just a quick news.
> gmake[4]: Entering directory `/mnt/t-ishii/pgsql/src/interfaces/ecpg/preproc'
> /usr/vac/bin/xlc -O2 -qmaxmem=16384 -qsrcmsg -qlonglong -I./../include -I../../../../src/include  -DMAJOR_VERSION=2
-DMINOR_VERSION=9-DPATCHLEVEL=0 -DINCLUDE_PATH=\"/usr/local/pgsql/include\"   -c -o variable.o variable.c
 
>       325 | //              mmerror(ET_FATAL, "No multilevel (more than 2) pointer supported %d",pointer_len);
>             a....................................................................................b..........
> a - 1506-046 (S) Syntax error.
> b - 1506-099 (S) Unexpected argument.


Does this compiler not like // comments?  I thought we'd made a pass of
cleaning those out recently, but obviously one's snuck into ecpg ...
        regards, tom lane


Re: ecpg+AIX 5L compile failure with current

From
Bruce Momjian
Date:
> Tatsuo Ishii <t-ishii@sra.co.jp> writes:
> > Just a quick news.
> > gmake[4]: Entering directory `/mnt/t-ishii/pgsql/src/interfaces/ecpg/preproc'
> > /usr/vac/bin/xlc -O2 -qmaxmem=16384 -qsrcmsg -qlonglong -I./../include -I../../../../src/include  -DMAJOR_VERSION=2
-DMINOR_VERSION=9-DPATCHLEVEL=0 -DINCLUDE_PATH=\"/usr/local/pgsql/include\"   -c -o variable.o variable.c
 
> >       325 | //              mmerror(ET_FATAL, "No multilevel (more than 2) pointer supported %d",pointer_len);
> >             a....................................................................................b..........
> > a - 1506-046 (S) Syntax error.
> > b - 1506-099 (S) Unexpected argument.
> 
> 
> Does this compiler not like // comments?  I thought we'd made a pass of
> cleaning those out recently, but obviously one's snuck into ecpg ...

Yes, // came in with:
 date: 2001/11/16 08:36:37;  author: meskes;  state: Exp;  lines: +24 -7 Committed again to add the missing
files/patches.

Of course, this was post pgindent.  Fix applied, // -> /* */.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


Re: ecpg+AIX 5L compile failure with current

From
Tatsuo Ishii
Date:
> > gmake[4]: Entering directory `/mnt/t-ishii/pgsql/src/interfaces/ecpg/preproc'
> > /usr/vac/bin/xlc -O2 -qmaxmem=16384 -qsrcmsg -qlonglong -I./../include -I../../../../src/include  -DMAJOR_VERSION=2
-DMINOR_VERSION=9-DPATCHLEVEL=0 -DINCLUDE_PATH=\"/usr/local/pgsql/include\"   -c -o variable.o variable.c
 
> >       325 | //              mmerror(ET_FATAL, "No multilevel (more than 2) pointer supported %d",pointer_len);
> >             a....................................................................................b..........
> > a - 1506-046 (S) Syntax error.
> > b - 1506-099 (S) Unexpected argument.
> 
> 
> Does this compiler not like // comments?

Right.

> I thought we'd made a pass of
> cleaning those out recently, but obviously one's snuck into ecpg ...


Re: ecpg+AIX 5L compile failure with current

From
Michael Meskes
Date:
On Wed, Nov 21, 2001 at 12:03:23AM -0500, Bruce Momjian wrote:
> Yes, // came in with:
> 
>   date: 2001/11/16 08:36:37;  author: meskes;  state: Exp;  lines: +24 -7
>   Committed again to add the missing files/patches.

Sorry, I didn't check the patch I applied carefully enough.

Michael
-- 
Michael Meskes
Michael@Fam-Meskes.De
Go SF 49ers! Go Rhein Fire!
Use Debian GNU/Linux! Use PostgreSQL!