pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Zoe De Lacy <zoe@onsideuk.com>
To: pgsql-interfaces@postgresql.org
Subject: HPUX 11.11 DBI, DBD, Pg ld: Mismatched ABI (not an ELF file) for -lpq, postgresql
Date: Fri, 30 Jan 2004 18:43:57 +0000
Message-ID: <401AA5ED.9090901@onsideuk.com> (raw)

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





view thread (2+ messages)  latest in thread

Message-ID: <401AA5ED.9090901@onsideuk.com>
Permalink:  ../401AA5ED.9090901@onsideuk.com/
Also on:    postgresql.org/message-id/401AA5ED.9090901@onsideuk.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: zoe@onsideuk.com
  Subject: Re: HPUX 11.11 DBI, DBD, Pg ld: Mismatched ABI (not an ELF file) for -lpq, postgresql
  In-Reply-To: <401AA5ED.9090901@onsideuk.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox