Re: Compiler options for plperl
От | Reinhard Max |
---|---|
Тема | Re: Compiler options for plperl |
Дата | |
Msg-id | Pine.LNX.4.44.0210311814510.9561-100000@wotan.suse.de обсуждение исходный текст |
Ответ на | Re: Compiler options for plperl (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: Compiler options for plperl
Re: Compiler options for plperl |
Список | pgsql-patches |
On Thu, 31 Oct 2002 at 12:11, Tom Lane wrote: > If we try to do the above then we must also use the same compiler > that was used for Perl. For example, your patch will instantly blow > up on my system where Perl is built with HPUX's cc (per its default > configuration) and Postgres is built with gcc (also its default > choice) --- the compiler switches aren't even slightly alike. I see. Would it work for you, if only the preprocessor macro definitions were derived from perl? Here I get: $ perl -MConfig -e 'print $Config{ccflags}' -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 > Please explain the problem you're trying to solve, rather than > offering an unworkable patch with no explanation. While I tried to compile PostgreSQL-7.3b3, I got: gcc -O2 -g -fPIC -I. -I/usr/lib/perl5/5.8.0/x86_64-linux-thread-multi/CORE -I../../../src/include -c -o plperl.o plperl.c In file included from /usr/lib/perl5/5.8.0/x86_64-linux-thread-multi/CORE/op.h:480, from /usr/lib/perl5/5.8.0/x86_64-linux-thread-multi/CORE/perl.h:2209, from plperl.c:61: /usr/lib/perl5/5.8.0/x86_64-linux-thread-multi/CORE/reentr.h:602: field `_crypt_struct' has incomplete type /usr/lib/perl5/5.8.0/x86_64-linux-thread-multi/CORE/reentr.h:747: confused by earlier errors, bailing out make[3]: *** [plperl.o] Error 1 Adding -D_GNU_SOURCE to the gcc command line fixed this (crypt.h only declares "struct crypt_data" when _GNU_SOURCE is defined). Our Perl maintainer told me then, that these definitions should always be fetched from Perl itself to be on the safe side. cu Reinhard
В списке pgsql-patches по дате отправления: