Thread: Re: [ADMIN] 1)Can't compile with ODBC support. 2)FATAL 1: AllocSetAlloc() on Pentium computer.

Igor N. Avtaev writes:

> I can't compile PostgreSQL 7.0.3 (and 7.0.2) with ODBC support.
> UnixWare C compiler not understand comment: "//"
> Compiler understand only brackets of comment "/*" and "*/".
>
> I can't change all comments! :-(

You're gonna have to, after which you'll immediately encounter linking
problems because the ODBC driver only compiles with GCC.  Fixing that will
require some non-trivial programming work.  Sorry.

--
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/


* Peter Eisentraut <peter_e@gmx.net> [001205 11:22]:
> Igor N. Avtaev writes:
>
> > I can't compile PostgreSQL 7.0.3 (and 7.0.2) with ODBC support.
> > UnixWare C compiler not understand comment: "//"
> > Compiler understand only brackets of comment "/*" and "*/".
> >
> > I can't change all comments! :-(
>
> You're gonna have to, after which you'll immediately encounter linking
> problems because the ODBC driver only compiles with GCC.  Fixing that will
> require some non-trivial programming work.  Sorry.
The UDK FS 7.1.1b DOES accept // comments.

The other issue is more serious.

LER

>
> --
> Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/

--
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 972-414-9812                 E-Mail: ler@lerctr.org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749

Those // comments have been removed from ODBC for 7.1.

> * Peter Eisentraut <peter_e@gmx.net> [001205 11:22]:
> > Igor N. Avtaev writes:
> >
> > > I can't compile PostgreSQL 7.0.3 (and 7.0.2) with ODBC support.
> > > UnixWare C compiler not understand comment: "//"
> > > Compiler understand only brackets of comment "/*" and "*/".
> > >
> > > I can't change all comments! :-(
> >
> > You're gonna have to, after which you'll immediately encounter linking
> > problems because the ODBC driver only compiles with GCC.  Fixing that will
> > require some non-trivial programming work.  Sorry.
> The UDK FS 7.1.1b DOES accept // comments.
>
> The other issue is more serious.
>
> LER
>
> >
> > --
> > Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/
>
> --
> Larry Rosenman                     http://www.lerctr.org/~ler
> Phone: +1 972-414-9812                 E-Mail: ler@lerctr.org
> US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749
>


--
  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, Pennsylvania 19026

find . -name "*.[ch]" | xargs perl -i -p -e 's://(.*):/*\1 */:'

>>>>> "Peter" == Peter Eisentraut <peter_e@gmx.net> writes:

    Peter> Igor N. Avtaev writes:
    >> I can't compile PostgreSQL 7.0.3 (and 7.0.2) with ODBC support.
    >> UnixWare C compiler not understand comment: "//" Compiler
    >> understand only brackets of comment "/*" and "*/".
    >>
    >> I can't change all comments! :-(

    Peter> You're gonna have to, after which you'll immediately
    Peter> encounter linking problems because the ODBC driver only
    Peter> compiles with GCC.  Fixing that will require some
    Peter> non-trivial programming work.  Sorry.

    Peter> -- Peter Eisentraut peter_e@gmx.net http://yi.org/peter-e/