DBD::Pg 2.15.1 compilation failed

From: Alexandra Roy <Alexandra(dot)Roy(at)bull(dot)net>
To: pgsql general <pgsql-general(at)postgresql(dot)org>
Subject: DBD::Pg 2.15.1 compilation failed
Date: 2009-11-20 16:54:46
Message-ID: 4B06C9D6.2020203@bull.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi all,<br>
<br>
I got a problem with the compilation of DBD::Pg 2.15.1 on AIX 5.3 TL9.<br>
I have did a 64-bit compilation / installation of PostgreSQL 8.3.8 at
the beginning. <br>
<br>
As the "postgres" user, I managed to execute "perl Makefile.PL"
successfully :<br>
<font face="Courier New" size="-1">Configuring DBD::Pg 2.15.1<br>
PostgreSQL version: 80308 (default port: 5432)<br>
POSTGRES_HOME: (not set)<br>
POSTGRES_INCLUDE: /usr/local/pgsql/include<br>
POSTGRES_LIB: /usr/local/pgsql/lib<br>
OS: aix<br>
Using DBI 1.609 (for perl 5.008002 on aix-thread-multi) installed in
/usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi/auto/DBI/<br>
Writing Makefile for DBD::Pg</font><br>
<br>
but the "make" step failed :<br>
<font face="Courier New" size="-1">$ <font color="#3333ff">make</font><br>
cp lib/Bundle/DBD/Pg.pm blib/lib/Bundle/DBD/Pg.pm<br>
cp Pg.pm blib/lib/DBD/Pg.pm<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /usr/bin/perl -e 'use ExtUtils::Mksymlists;&nbsp; Mksymlists("NAME"
=&gt; "DBD::Pg", "DL_FUNCS" =&gt; {&nbsp; }, "FUNCLIST" =&gt; [], "DL_VARS"
=&gt; []);'<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /usr/bin/perl -p -e "s/~DRIVER~/Pg/g; s/^do\(/dontdo\(/"
/usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi/auto/DBI/Driver.xst
&gt; Pg.xsi<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /usr/bin/perl /usr/opt/perl5/lib/5.8.2/ExtUtils/xsubpp&nbsp;
-typemap /usr/opt/perl5/lib/5.8.2/ExtUtils/typemap&nbsp; Pg.xs &gt; Pg.xsc
&amp;&amp; mv Pg.xsc Pg.c<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cc_r -c&nbsp; -I/usr/local/pgsql/include
-I/usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi/auto/DBI&nbsp;
-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384
-qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32
-D_LARGE_FILES -qlonglong -DPGLIBVERSION=80308 -DPGDEFPORT=5432 -O&nbsp;&nbsp;
-DPERL_EXTMALLOC_DEF -Dmalloc=Perl_malloc -Dfree=Perl_mfree
-Drealloc=Perl_realloc -Dcalloc=Perl_calloc -DVERSION=\"2.15.1\"&nbsp;
-DXS_VERSION=\"2.15.1\"&nbsp;
"-I/usr/opt/perl5/lib/5.8.2/aix-thread-multi/CORE"&nbsp;&nbsp; Pg.c<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cc_r -c&nbsp; -I/usr/local/pgsql/include
-I/usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi/auto/DBI&nbsp;
-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384
-qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32
-D_LARGE_FILES -qlonglong -DPGLIBVERSION=80308 -DPGDEFPORT=5432 -O&nbsp;&nbsp;
-DPERL_EXTMALLOC_DEF -Dmalloc=Perl_malloc -Dfree=Perl_mfree
-Drealloc=Perl_realloc -Dcalloc=Perl_calloc -DVERSION=\"2.15.1\"&nbsp;
-DXS_VERSION=\"2.15.1\"&nbsp;
"-I/usr/opt/perl5/lib/5.8.2/aix-thread-multi/CORE"&nbsp;&nbsp; dbdimp.c<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cc_r -c&nbsp; -I/usr/local/pgsql/include
-I/usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi/auto/DBI&nbsp;
-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384
-qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32
-D_LARGE_FILES -qlonglong -DPGLIBVERSION=80308 -DPGDEFPORT=5432 -O&nbsp;&nbsp;
-DPERL_EXTMALLOC_DEF -Dmalloc=Perl_malloc -Dfree=Perl_mfree
-Drealloc=Perl_realloc -Dcalloc=Perl_calloc -DVERSION=\"2.15.1\"&nbsp;
-DXS_VERSION=\"2.15.1\"&nbsp;
"-I/usr/opt/perl5/lib/5.8.2/aix-thread-multi/CORE"&nbsp;&nbsp; quote.c<br>
"quote.c", line 334.16: 1506-068 (W) Operation between types "char*"
and "const char*" is not allowed.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cc_r -c&nbsp; -I/usr/local/pgsql/include
-I/usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi/auto/DBI&nbsp;
-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384
-qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32
-D_LARGE_FILES -qlonglong -DPGLIBVERSION=80308 -DPGDEFPORT=5432 -O&nbsp;&nbsp;
-DPERL_EXTMALLOC_DEF -Dmalloc=Perl_malloc -Dfree=Perl_mfree
-Drealloc=Perl_realloc -Dcalloc=Perl_calloc -DVERSION=\"2.15.1\"&nbsp;
-DXS_VERSION=\"2.15.1\"&nbsp;
"-I/usr/opt/perl5/lib/5.8.2/aix-thread-multi/CORE"&nbsp;&nbsp; types.c<br>
Running Mkbootstrap for DBD::Pg ()<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; chmod 644 Pg.bs<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rm -f blib/arch/auto/DBD/Pg/Pg.so<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LD_RUN_PATH="" ld&nbsp; -bhalt:4 -bM:SRE
-bI:/usr/opt/perl5/lib/5.8.2/aix-thread-multi/CORE/perl.exp -bE:Pg.exp
-bnoentry -lpthreads -lc_r Pg.o dbdimp.o quote.o types.o&nbsp; -o
blib/arch/auto/DBD/Pg/Pg.so&nbsp;&nbsp; -L/usr/local/pgsql/lib -lpq -lm&nbsp;&nbsp; <br>
<font color="#ff0000">ld: 0711-317 ERROR: Undefined symbol:
.PQerrorMessage<br>
ld: 0711-317 ERROR: Undefined symbol: .PQgetResult<br>
ld: 0711-317 ERROR: Undefined symbol: .PQclear<br>
... ... ...<br>
ld: 0711-317 ERROR: Undefined symbol: .PQserverVersion<br>
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.<br>
make: 1254-004 The error code from the last command is 8.</font></font><br>
<br>
<br>
I use perl5 (revision 5.0 version 8 subversion 2) :<br>
<font face="Courier New" size="-1">$ <font color="#3333ff">perl -V</font><br>
Summary of my perl5 (revision 5.0 version 8 subversion 2) configuration:<br>
&nbsp; Platform:<br>
&nbsp;&nbsp;&nbsp; osname=aix, osvers=5.2.0.0, archname=aix-thread-multi<br>
&nbsp;&nbsp;&nbsp; uname='aix animals 2 5 000709cf4c00 '<br>
&nbsp;&nbsp;&nbsp; config_args=''<br>
&nbsp;&nbsp;&nbsp; hint=previous, useposix=true, d_sigaction=define<br>
&nbsp;&nbsp;&nbsp; usethreads=define use5005threads=undef useithreads=define
usemultiplicity=define<br>
&nbsp;&nbsp;&nbsp; useperlio=define d_sfio=undef uselargefiles=define usesocks=undef<br>
&nbsp;&nbsp;&nbsp; use64bitint=undef use64bitall=undef uselongdouble=undef<br>
&nbsp;&nbsp;&nbsp; usemymalloc=n, bincompat5005=undef<br>
&nbsp; Compiler:<br>
&nbsp;&nbsp;&nbsp; cc='cc_r', ccflags ='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
-qmaxmem=16384 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT
-q32 -D_LARGE_FILES -qlonglong',<br>
&nbsp;&nbsp;&nbsp; optimize='-O',<br>
&nbsp;&nbsp;&nbsp; cppflags='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
-qmaxmem=16384 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT
-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384
-qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32
-D_LARGE_FILES -qlonglong -D_ALL_SOURCE -D_ANSI_C_SOURCE
-D_POSIX_SOURCE -qmaxmem=16384 -qnoansialias -DUSE_NATIVE_DLOPEN
-DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES -qlonglong -D_ALL_SOURCE
-D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -qnoansialias
-DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES -qlonglong
-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384
-qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32
-D_LARGE_FILES -qlonglong -D_ALL_SOURCE -D_ANSI_C_SOURCE
-D_POSIX_SOURCE -qmaxmem=16384 -qnoansialias -DUSE_NATIVE_DLOPEN
-DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES -qlonglong -D_ALL_SOURCE
-D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -qnoansialias
-DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES -qlonglong'<br>
&nbsp;&nbsp;&nbsp; ccversion='5.0.2.0', gccversion='', gccosandvers=''<br>
&nbsp;&nbsp;&nbsp; intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321<br>
&nbsp;&nbsp;&nbsp; d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8<br>
&nbsp;&nbsp;&nbsp; ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8<br>
&nbsp;&nbsp;&nbsp; alignbytes=8, prototype=define<br>
&nbsp; Linker and Libraries:<br>
&nbsp;&nbsp;&nbsp; ld='ld', ldflags =' -brtl -b32 -bmaxdata:0x80000000'<br>
&nbsp;&nbsp;&nbsp; libpth=/lib /usr/lib /usr/ccs/lib<br>
&nbsp;&nbsp;&nbsp; libs=-lbind -lnsl -ldbm -ldl -lld -lm -lpthreads -lc_r -lcrypt
-lbsd -lPW<br>
&nbsp;&nbsp;&nbsp; perllibs=-lbind -lnsl -ldl -lld -lm -lpthreads -lc_r -lcrypt -lbsd
-lPW<br>
&nbsp;&nbsp;&nbsp; libc=/lib/libc.a, so=a, useshrplib=true, libperl=libperl.a<br>
&nbsp;&nbsp;&nbsp; gnulibc_version=''<br>
&nbsp; Dynamic Linking:<br>
&nbsp;&nbsp;&nbsp; dlsrc=dl_aix.xs, dlext=so, d_dlsymun=undef,
ccdlflags='-bE:/usr/opt/perl5/lib/5.8.2/aix-thread-multi/CORE/perl.exp
-bE:/usr/opt/perl5/lib/5.8.2/aix-thread-multi/CORE/perl.exp
-bE:/usr/opt/perl5/lib/5.8.2/aix-thread-multi/CORE/perl.exp
-bE:/usr/opt/perl5/lib/5.8.2/aix-thread-multi/CORE/perl.exp'<br>
&nbsp;&nbsp;&nbsp; cccdlflags=' ', lddlflags='-bhalt:4 -bM:SRE
-bI:$(PERL_INC)/perl.exp -bE:$(BASEEXT).exp -bnoentry -lpthreads -lc_r'<br>
<br>
<br>
Characteristics of this binary (from libperl): <br>
&nbsp; Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES
PERL_IMPLICIT_CONTEXT<br>
&nbsp; Locally applied patches:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SUIDPERLIO1 - fix PERLIO_DEBUG buffer overflow (CAN-2005-0156)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SPRINTF0 - fixes for sprintf formatting issues - CVE-2005-3962<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; REGCOMP0 - buffer overflow in regexp engine for UTF8
(CVE-2007-5116)<br>
&nbsp; Built under aix<br>
&nbsp; Compiled at Dec&nbsp; 5 2007 16:08:49<br>
&nbsp; @INC:<br>
&nbsp;&nbsp;&nbsp; /usr/opt/perl5/lib/5.8.2/aix-thread-multi<br>
&nbsp;&nbsp;&nbsp; /usr/opt/perl5/lib/5.8.2<br>
&nbsp;&nbsp;&nbsp; /usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi<br>
&nbsp;&nbsp;&nbsp; /usr/opt/perl5/lib/site_perl/5.8.2<br>
&nbsp;&nbsp;&nbsp; /usr/opt/perl5/lib/site_perl<br>
&nbsp;&nbsp;&nbsp; .</font><br>
<br>
<br>
Any suggestion ? <br>
<br>
Thank you for your help.<br>
Regards, <br>
Alexandra<br>
<div class="moz-signature"><font color="grey"><br>
</font>
</div>
</body>
</html>

Attachment Content-Type Size
unknown_filename text/html 9.4 KB

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alexandra Roy 2009-11-20 16:57:29 ora2pg and DBD::Pg
Previous Message Bret 2009-11-20 16:34:55 Re: Allowing for longer table names (>64 characters)