PERL5 interface for POSTGRESQL

From: James Merhaut <jhmerhau(at)dt1s78(dot)ra(dot)intel(dot)com>
To: pgsql-interfaces(at)postgresql(dot)org
Cc: brian(dot)c(dot)hintzman(at)intel(dot)com;, nandan(dot)gangolli(at)intel(dot)com
Subject: PERL5 interface for POSTGRESQL
Date: 2000-12-27 18:28:21
Message-ID: 200012271828.KAA03012@dt1s74.dt1s78.ra.intel.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Hi

I have been trying to build the PERL5 interface standalone. I have
had success in compiling and linking. Where I am experiencing
difficulty is with "make test." I get the following diagnostic:

> make test
PERL_DL_NONLAZY=1 /usr/intel/bin/perl -I./blib/arch -I./blib/lib
-I/usr/intel/96r2/lib/perl5/sun4x_55/5.003 -I/usr/intel/96r2/lib/perl5 test.pl
Can't load './blib/arch/auto/Pg/Pg.so' for module Pg: ld.so.1: /usr/intel/bin/perl:
fatal: relocation error: file ./blib/arch/auto/Pg/Pg.so: symbol lo_export: referenced
symbol not found at /usr/intel/96r2/lib/perl5/DynaLoader.pm line 140.

at blib/lib/Pg.pm line 125
BEGIN failed--compilation aborted at test.pl line 12.
test failed
*** Error code 2
make: Fatal error: Command failed for target `test_dynamic'

Any ideas on how this can be resolved?

SOME OTHER BACKGROUND INFO
--------------------------

I built the PERL5 interface using gcc. I changed the switch "-Kpic" to "-fpic."
Compiling and linking went just fine. This was done because we don't have ucbcc.
I have attached the Makefile.

PostgreSQL Version -> V7.0.3

Perl5 Interface Version -> V1.8.0 I found this version number in the Changes file.

SYSTEM INFO:
------------
> uname -a
SunOS dt1s74 5.5.1 Generic_103640-20 sun4u sparc SUNW,Ultra-5_10

PERL INFO:
----------

> /usr/local/bin/perl -v

This is perl, version 5.005_02 built for sun4-solaris

Copyright 1987-1998, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5.0 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'. If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.

> /usr/local/bin/perl -V

Summary of my perl5 (5.0 patchlevel 5 subversion 2) configuration:
Platform:
osname=solaris, osvers=2.5.1, archname=sun4-solaris
uname='sunos dt1s31 5.5.1 generic_103640-20 sun4m sparc sunw,sparcstation-20 '
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef useperlio=undef d_sfio=undef
Compiler:
cc='gcc -B/usr/ccs/bin/', optimize='-O', gccversion=cygnus-2.7-96q4
cppflags='-I/usr/local/include'
ccflags ='-I/usr/local/include'
stdchar='unsigned char', d_stdstdio=define, usevfork=false
intsize=4, longsize=4, ptrsize=4, doublesize=8
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
alignbytes=8, usemymalloc=y, prototype=define
Linker and Libraries:
ld='gcc -B/usr/ccs/bin/', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
libs=-lsocket -lnsl -lgdbm -ldl -lm -lc -lcrypt
libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
cccdlflags='-fPIC', lddlflags='-G -L/usr/local/lib'

Characteristics of this binary (from libperl):
Built under solaris
Compiled at Oct 20 1999 12:08:19
@INC:
/usr/local/lib/perl5/5.00502/sun4-solaris
/usr/local/lib/perl5/5.00502
/usr/local/lib/perl5/site_perl/5.005/sun4-solaris
/usr/local/lib/perl5/site_perl/5.005

Attachment Content-Type Size
Makefile text/plain 20.6 KB

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Adam Lang 2000-12-27 18:46:44 Re: PHP and PostgreSQL
Previous Message Tim Uckun 2000-12-27 17:18:01 Creating locales.