postgres/perl problem in 7.3b5

Started by Jeff Davisover 23 years ago4 messagesgeneral
Jump to latest
#1Jeff Davis
pgsql@j-davis.com

I posted this to general because I'm fairly sure it's my problem, not
postgresql's.

I put my build errors below.

It looks to me like maybe I have a bad perl development package. Does anyone
else have this problem? I am on debian unstable and x86, using perl 5.8.

Oh, and same thing for beta3 also.

Regards,
Jeff

gcc -O2 -fpic -I. -I/usr/lib/perl/5.8.0/CORE -I../../../src/include -c -o
plperl.o plperl.c
In file included from /usr/lib/perl/5.8.0/CORE/op.h:480,
from /usr/lib/perl/5.8.0/CORE/perl.h:2209,
from plperl.c:61:
/usr/lib/perl/5.8.0/CORE/reentr.h:602: field `_crypt_struct' has incomplete
type
In file included from /usr/lib/perl/5.8.0/CORE/perl.h:3368,
from plperl.c:61:
/usr/lib/perl/5.8.0/CORE/proto.h:246: parse error before `off64_t'
/usr/lib/perl/5.8.0/CORE/proto.h:248: parse error before `Perl_do_sysseek'
/usr/lib/perl/5.8.0/CORE/proto.h:248: parse error before `off64_t'
/usr/lib/perl/5.8.0/CORE/proto.h:248: warning: data definition has no type or
storage class
/usr/lib/perl/5.8.0/CORE/proto.h:249: parse error before `Perl_do_tell'
/usr/lib/perl/5.8.0/CORE/proto.h:249: warning: data definition has no type or
storage class
/usr/lib/perl/5.8.0/CORE/proto.h:1378: parse error before `Perl_PerlIO_tell'
/usr/lib/perl/5.8.0/CORE/proto.h:1378: warning: data definition has no type or
storage class
/usr/lib/perl/5.8.0/CORE/proto.h:1379: parse error before `off64_t'
make[3]: *** [plperl.o] Error 1
make[3]: Leaving directory
`/home/jdavis/storage/install/postgresql-7.3b5/src/pl/plperl'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/home/jdavis/storage/install/postgresql-7.3b5/src/pl'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/jdavis/storage/install/postgresql-7.3b5/src'
make: *** [all] Error 2

#2Neil Conway
neilc@samurai.com
In reply to: Jeff Davis (#1)
Re: postgres/perl problem in 7.3b5

Jeff Davis <list-pgsql-general@empires.org> writes:

gcc -O2 -fpic -I. -I/usr/lib/perl/5.8.0/CORE -I../../../src/include -c -o
plperl.o plperl.c
In file included from /usr/lib/perl/5.8.0/CORE/op.h:480,
from /usr/lib/perl/5.8.0/CORE/perl.h:2209,
from plperl.c:61:
/usr/lib/perl/5.8.0/CORE/reentr.h:602: field `_crypt_struct' has incomplete
type

Yes, this is a known problem (I believe the culprit is a bug in Perl
5.8.0 on Linux). I think Tom has decided on a reasonable workaround
for the problem, so it should be fixed in rc1.

You can workaround this by adding '-D_GNU_SOURCE' to the CFLAGS for
PL/Perl.

Cheers,

Neil

--
Neil Conway <neilc@samurai.com> || PGP Key ID: DB3C29FC

#3Jeff Davis
pgsql@j-davis.com
In reply to: Neil Conway (#2)
Re: postgres/perl problem in 7.3b5

Yes, this is a known problem (I believe the culprit is a bug in Perl
5.8.0 on Linux). I think Tom has decided on a reasonable workaround
for the problem, so it should be fixed in rc1.

You can workaround this by adding '-D_GNU_SOURCE' to the CFLAGS for
PL/Perl.

Oh, thanks. Now I remember reading about that a while back, but I didn't make
the connection.

Regards,
Jeff

#4Bruce Momjian
bruce@momjian.us
In reply to: Neil Conway (#2)
Re: postgres/perl problem in 7.3b5

This fix will be in 7.3 final.

---------------------------------------------------------------------------

Neil Conway wrote:

Jeff Davis <list-pgsql-general@empires.org> writes:

gcc -O2 -fpic -I. -I/usr/lib/perl/5.8.0/CORE -I../../../src/include -c -o
plperl.o plperl.c
In file included from /usr/lib/perl/5.8.0/CORE/op.h:480,
from /usr/lib/perl/5.8.0/CORE/perl.h:2209,
from plperl.c:61:
/usr/lib/perl/5.8.0/CORE/reentr.h:602: field `_crypt_struct' has incomplete
type

Yes, this is a known problem (I believe the culprit is a bug in Perl
5.8.0 on Linux). I think Tom has decided on a reasonable workaround
for the problem, so it should be fixed in rc1.

You can workaround this by adding '-D_GNU_SOURCE' to the CFLAGS for
PL/Perl.

Cheers,

Neil

--
Neil Conway <neilc@samurai.com> || PGP Key ID: DB3C29FC

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073