X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 55292D1B4DC for ; Fri, 30 Jan 2004 18:43:51 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 55234-04 for ; Fri, 30 Jan 2004 14:43:52 -0400 (AST) Received: from onsideuk.com (cpc1-stap3-4-0-cust72.nott.cable.ntl.com [81.108.63.72]) by svr1.postgresql.org (Postfix) with ESMTP id 1BE74D1B45B for ; Fri, 30 Jan 2004 14:43:50 -0400 (AST) Received: from onsideuk.com (unknown [10.0.0.20]) by onsideuk.com (Postfix) with ESMTP id 99165233B4 for ; Fri, 30 Jan 2004 18:43:48 +0000 (GMT) Message-ID: <401AA5ED.9090901@onsideuk.com> Date: Fri, 30 Jan 2004 18:43:57 +0000 From: Zoe De Lacy User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-interfaces@postgresql.org Subject: HPUX 11.11 DBI, DBD, Pg ld: Mismatched ABI (not an ELF file) for -lpq, postgresql Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200401/23 X-Sequence-Number: 4692 Hello, Is there anyone out there who can help me ? I'm trying to write a tiny little perl script to fire data into a postgres database from a couple of HP-UX 11i boxes. I need to install either DBI & DBD or Pg. I follow the instructions exporting the Library path & the include path for Postgres but no matter which way I go there's always a failure building either Pg or DBD. I'm assuming it's to do with libpq.so which does not seem to have gotten installed anywhere. I've looked all over the place for this .so but cannot find it. The error I get is: Configuring Pg Remember to actually read the README file! OS: hpux PostgreSQL version: 7.3.2 Multiple copies of Driver.xst found in: /usr/local/lib/perl5/5.8.2/PA-RISC2.0/auto/DBI /usr/local/lib/perl5/site_perl/5.8.2/PA-RISC2.0/auto/DBI at Makefile.PL line 67 Using DBI 1.39 installed in /usr/local/lib/perl5/5.8.2/PA-RISC2.0/auto/DBI Checking if your kit is complete... Looks good Multiple copies of Driver.xst found in: /usr/local/lib/perl5/5.8.2/PA-RISC2.0/auto/DBI /usr/local/lib/perl5/site_perl/5.8.2/PA-RISC2.0/auto/DBI at Makefile.PL line 109 Using DBI 1.39 installed in /usr/local/lib/perl5/5.8.2/PA-RISC2.0/auto/DBI Writing Makefile for DBD::Pg forth:/home/u841714/DBD-Pg-1.31#make cp Pg.pm blib/lib/DBD/Pg.pm /usr/contrib/bin/perl /usr/local/lib/perl5/5.8.2/ExtUtils/xsubpp -typemap /usr/local/lib/perl5/5.8.2/ExtUtils/typemap Pg.xs > Pg.xsc && mv Pg.xsc Pg.c gcc -c -I/opt/pgsql/include -I/usr/local/lib/perl5/5.8.2/PA-RISC2.0/auto/DBI -D_HPUX_SOURCE -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -DHAVE_PQescapeString -DHAVE_PQescapeBytea -DHAVE_PQunescapeBytea -O2 -DPERL_EXTMALLOC_DEF -Dmalloc=Perl_malloc -Dfree=Perl_mfree -Drealloc=Perl_realloc -Dcalloc=Perl_calloc -DVERSION=\"1.31\" -DXS_VERSION=\"1.31\" -fPIC "-I/usr/local/lib/perl5/5.8.2/PA-RISC2.0/CORE" Pg.c gcc -c -I/opt/pgsql/include -I/usr/local/lib/perl5/5.8.2/PA-RISC2.0/auto/DBI -D_HPUX_SOURCE -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -DHAVE_PQescapeString -DHAVE_PQescapeBytea -DHAVE_PQunescapeBytea -O2 -DPERL_EXTMALLOC_DEF -Dmalloc=Perl_malloc -Dfree=Perl_mfree -Drealloc=Perl_realloc -Dcalloc=Perl_calloc -DVERSION=\"1.31\" -DXS_VERSION=\"1.31\" -fPIC "-I/usr/local/lib/perl5/5.8.2/PA-RISC2.0/CORE" dbdimp.c gcc -c -I/opt/pgsql/include -I/usr/local/lib/perl5/5.8.2/PA-RISC2.0/auto/DBI -D_HPUX_SOURCE -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -DHAVE_PQescapeString -DHAVE_PQescapeBytea -DHAVE_PQunescapeBytea -O2 -DPERL_EXTMALLOC_DEF -Dmalloc=Perl_malloc -Dfree=Perl_mfree -Drealloc=Perl_realloc -Dcalloc=Perl_calloc -DVERSION=\"1.31\" -DXS_VERSION=\"1.31\" -fPIC "-I/usr/local/lib/perl5/5.8.2/PA-RISC2.0/CORE" quote.c quote.c: In function `quote_bytea': quote.c:366: warning: assignment makes pointer from integer without a cast gcc -c -I/opt/pgsql/include -I/usr/local/lib/perl5/5.8.2/PA-RISC2.0/auto/DBI -D_HPUX_SOURCE -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -DHAVE_PQescapeString -DHAVE_PQescapeBytea -DHAVE_PQunescapeBytea -O2 -DPERL_EXTMALLOC_DEF -Dmalloc=Perl_malloc -Dfree=Perl_mfree -Drealloc=Perl_realloc -Dcalloc=Perl_calloc -DVERSION=\"1.31\" -DXS_VERSION=\"1.31\" -fPIC "-I/usr/local/lib/perl5/5.8.2/PA-RISC2.0/CORE" types.c Running Mkbootstrap for DBD::Pg () chmod 644 Pg.bs rm -f blib/arch/auto/DBD/Pg/Pg.sl LD_RUN_PATH="/opt/pgsql/lib" /usr/bin/ld -b -L/usr/local/lib -L/opt/local/lib Pg.o dbdimp.o quote.o types.o -o blib/arch/auto/DBD/Pg/Pg.sl -L/opt/pgsql/lib -lpq ld: Mismatched ABI (not an ELF file) for -lpq Fatal error. *** Error exit code 1 Stop. Anyone help ? Regards Zoe