Re: DBD: postgres fail
"Martin J. Evans" <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.dbi.general |
|---|---|
| Organization | Easysoft Limited |
| Message-ID | <[email protected]> |
On 19/03/12 22:55, J.V. wrote: > I am trying to compile DBD Postgres under cygin and I get the following error message: (any ideas?) > > What is broke? > > I'm on cygwin / Window 7 > > --- > Writing Makefile for Postgres > Skip blib/lib/Postgres.pm (unchanged) > gcc-4 -c -I/usr/local/postgres95/include -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -g3 -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -DUSEIMPORTLIB -O3 -DVERSION=\"1.4\" -DXS_VERSION=\"1.4\" "-I/usr/lib/perl5/5.10/i686-cygwin/CORE" Postgres.c > Postgres.xs: In function 'XS_PGconnPtr_getline': > Postgres.xs:148:15: error: 'sv_undef' undeclared (first use in this function) > Postgres.xs:148:15: note: each undeclared identifier is reported only once for each function it appears in > Postgres.xs: In function 'XS_QUERYPtr_fetchrow': > Postgres.xs:339:6: error: 'sv_undef' undeclared (first use in this function) > Makefile:333: recipe for target `Postgres.o' failed > make: *** [Postgres.o] Error 1 > gcc-4 -c -I/usr/local/postgres95/include -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -g3 -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -DUSEIMPORTLIB -O3 -DVERSION=\"1.4\" -DXS_VERSION=\"1.4\" "-I/usr/lib/perl5/5.10/i686-cygwin/CORE" Postgres.c > Postgres.xs: In function 'XS_PGconnPtr_getline': > Postgres.xs:148:15: error: 'sv_undef' undeclared (first use in this function) > Postgres.xs:148:15: note: each undeclared identifier is reported only once for each function it appears in > Postgres.xs: In function 'XS_QUERYPtr_fetchrow': > Postgres.xs:339:6: error: 'sv_undef' undeclared (first use in this function) > Makefile:333: recipe for target `Postgres.o' failed > make: *** [Postgres.o] Error 1 > gcc-4 -c -I/usr/local/postgres95/include -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -g3 -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -DUSEIMPORTLIB -O3 -DVERSION=\"1.4\" -DXS_VERSION=\"1.4\" "-I/usr/lib/perl5/5.10/i686-cygwin/CORE" Postgres.c > Postgres.xs: In function 'XS_PGconnPtr_getline': > Postgres.xs:148:15: error: 'sv_undef' undeclared (first use in this function) > Postgres.xs:148:15: note: each undeclared identifier is reported only once for each function it appears in > Postgres.xs: In function 'XS_QUERYPtr_fetchrow': > Postgres.xs:339:6: error: 'sv_undef' undeclared (first use in this function) > Makefile:333: recipe for target `Postgres.o' failed > make: *** [Postgres.o] Error 1 > > Replace sv_undef with PL_sv_undef and if this is the most recent Postgres driver report it on rt. Martin -- Martin J. Evans Easysoft Limited http://www.easysoft.com