Thread: Problem compiling PERL
i'm using RedHat 7.0, with postgres 7.0.3 after I execute: % perl Makefile.PL I try to execute the make command and this if what i get [jruiz@dns perl5]$ make gcc -c -I../libpq -I../../include -fno-strict-aliasing -O2 -march=i386 -mcpu =i686 -DVERSION=\"1.8.0\" -DXS_VERSION=\"1.8.0\" -fPIC -I/usr/lib/perl5/ 5.6.0/i386-linux/CORE Pg.c Pg.xs: In function `XS_Pg_PQprint': Pg.xs:584: `na' undeclared (first use in this function) Pg.xs:584: (Each undeclared identifier is reported only once Pg.xs:584: for each function it appears in.) Pg.xs: In function `XS_PG_results_fetchrow': Pg.xs:1255: `sv_undef' undeclared (first use in this function) Pg.xs: In function `XS_PG_results_print': Pg.xs:1295: `na' undeclared (first use in this function) make: *** [Pg.o] Error 1 if anyone can help me i'll appreciate it
Jesus Ruiz writes: > i'm using RedHat 7.0, with postgres 7.0.3 > after I execute: > % perl Makefile.PL Try perl POLLUTE=1 Makefile.PL. > I try to execute the make command and this if what i get > [jruiz@dns perl5]$ make > gcc -c -I../libpq -I../../include -fno-strict-aliasing -O2 -march=i386 -mcpu > =i686 -DVERSION=\"1.8.0\" -DXS_VERSION=\"1.8.0\" -fPIC -I/usr/lib/perl5/ > 5.6.0/i386-linux/CORE Pg.c > Pg.xs: In function `XS_Pg_PQprint': > Pg.xs:584: `na' undeclared (first use in this function) > Pg.xs:584: (Each undeclared identifier is reported only once > Pg.xs:584: for each function it appears in.) > Pg.xs: In function `XS_PG_results_fetchrow': > Pg.xs:1255: `sv_undef' undeclared (first use in this function) > Pg.xs: In function `XS_PG_results_print': > Pg.xs:1295: `na' undeclared (first use in this function) > make: *** [Pg.o] Error 1 > if anyone can help me i'll appreciate it > > > > ---------------------------(end of broadcast)--------------------------- > TIP 2: you can get off all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to majordomo@postgresql.org) > > -- Peter Eisentraut peter_e@gmx.net http://yi.org/peter-e/
On Fri, 2 Mar 2001, Jesus Ruiz wrote: > i'm using RedHat 7.0, with postgres 7.0.3 > after I execute: > % perl Makefile.PL > I try to execute the make command and this if what i get > [jruiz@dns perl5]$ make > gcc -c -I../libpq -I../../include -fno-strict-aliasing -O2 -march=i386 -mcpu > =i686 -DVERSION=\"1.8.0\" -DXS_VERSION=\"1.8.0\" -fPIC -I/usr/lib/perl5/ > 5.6.0/i386-linux/CORE Pg.c > Pg.xs: In function `XS_Pg_PQprint': > Pg.xs:584: `na' undeclared (first use in this function) > Pg.xs:584: (Each undeclared identifier is reported only once > Pg.xs:584: for each function it appears in.) > Pg.xs: In function `XS_PG_results_fetchrow': > Pg.xs:1255: `sv_undef' undeclared (first use in this function) > Pg.xs: In function `XS_PG_results_print': > Pg.xs:1295: `na' undeclared (first use in this function) > make: *** [Pg.o] Error 1 > if anyone can help me i'll appreciate it I had this problem before compiling something else with Perl, and the problem turned, IIRC, that I had a threaded Perl, which is experimental for Perl, and it caused a lot of problems for me. I think Red Hat comes with Perl built with threads. You will need to get the source for Perl and rebuild it without threads. -- Brett http://www.chapelperilous.net/~bmccoy/ --------------------------------------------------------------------------- Gravity is a myth, the Earth sucks.