pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Brendan McKenna <brendan@w3s.ie>
To: pgsql-interfaces@postgresql.org
Subject: pgsql_perl5 fails to compile
Date: Tue, 01 Jun 1999 14:28:30 +0000
Message-ID: <199906011323.OAA21560@w3s.ie> (raw)

Hi,

	I am running RedHat Linux v5.2, with their version of Postgres 
removed from the system (it had been installed, v6.3.? maybe 2).  I have 
succeeded in downloading, building, installing, and running Postgres 6.4.2, 
and needed to install the Pg package (pgsql_perl5) in order to complete some 
work here.  However, much to my dismay, I could not get pgsql_perl5 to 
compile.

	When I attempt to compile, I get the following messages:

gcc -c -I/usr/local/pgsql/include -Dbool=char -DHAS_BOOL -O2    -DVERSION=\"1.8.0\" -DXS_VERSION=\"1.8.0\" -fpic -I/usr/lib/perl5/5.00555/i686-linux/CORE  Pg.c
Pg.xs: In function `XS_Pg_PQprint':
Pg.xs:584: `na' undeclared (first use this function)
Pg.xs:584: (Each undeclared identifier is reported only once
Pg.xs:584: for each function it appears in.)
Pg.xs: In function `XS_PG_results_fetchrow':
Pg.xs:1256: `sv_undef' undeclared (first use this function)
Pg.xs: In function `XS_PG_results_print':
Pg.xs:1296: `na' undeclared (first use this function)
make: *** [Pg.o] Error 1

	The output from my perl -v command is as follows:

This is perl, version 5.005_55 built for i686-linux

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.

	And the output from a perl -V is:

Summary of my perl5 (revision 5.0 version 5 subversion 55) configuration:
  Platform:
    osname=linux, osvers=2.0.36, archname=i686-linux
    uname='linux brendan.w3s.ie 2.0.36 #1 tue oct 13 22:17:11 edt 1998 i686 unknown '
    config_args=''
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef useperlio=undef d_sfio=undef
    use64bits=undef usemultiplicity=undef
  Compiler:
    cc='gcc', optimize='-O2', gccversion=egcs-2.90.29 980515 (egcs-1.0.3 release)
    cppflags='-Dbool=char -DHAS_BOOL'
    ccflags ='-Dbool=char -DHAS_BOOL'
    stdchar='char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    alignbytes=4, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -lndbm -lgdbm -ldb -ldl -lm -lc -lposix -lcrypt
    libc=/lib/libc.so.6, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl): 
  Built under linux
  Compiled at Mar 29 1999 16:52:13
  @INC:
    /usr/lib/perl5/5.00555/i686-linux
    /usr/lib/perl5/5.00555
    /usr/lib/perl5/site_perl/5.00555/i686-linux
    /usr/lib/perl5/site_perl/5.00555
    .

	I have not encountered any prior problems with the perl installation,
nor had I encountered any problems with the previous Postgres installation 
(the one that came as an rpm with the 5.2 distribution) -- other than that I 
was unable to build the Pg module for that version, either, which is what led 
me to download this version.

	You will surely notice that I have specified the full path to the 
installed version of Postgres, via the POSTGRES_HOME environment variable.  I 
have also tried the compile without specifying the location of the installed 
Postgres, to no avail.

	I also thought that perhaps the code depended on having the correct 
version of ecpg being installed, but was able to ensure that the old version 
was gone from my system before I attempted to do the compiles.

	Any suggestions as to how I can get around this would be greatly 
appreciated, as I would like to use Postgres for a project we're working on, 
and the deadline is Monday of next week.

	Thanks in advance....


							Brendan

PS.  It'd also be nice if the README file mentioned that one has to be a 
     member of the pgsql-interfaces list in order to submit a bug report
     to it.
-- 
Brendan McKenna	
Technical Director			Phone: +353-(0)61-338177 x4143
W3 Services Ltd.			  Fax: +353-(0)61-338065
Innovation Centre			Email: brendan@w3s.ie
National Technological Park
Limerick
Ireland



view thread (5+ messages)  latest in thread

Message-ID: <199906011323.OAA21560@w3s.ie>
Permalink:  ../199906011323.OAA21560@w3s.ie/
Also on:    postgresql.org/message-id/199906011323.OAA21560@w3s.ie

 · 

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: brendan@w3s.ie
  Subject: Re: pgsql_perl5 fails to compile
  In-Reply-To: <199906011323.OAA21560@w3s.ie>

* 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