pg.ddx.io pgsql-interfaces@postgresql.org mailing list archive
help / color / mirror / Atom feedpgsql_perl5 fails to compile
5+ messages / 3 participants
[nested] [flat]
* pgsql_perl5 fails to compile
@ 1999-06-01 13:08 Brendan McKenna <brendan@w3s.ie>
0 siblings, 0 replies; 5+ messages in thread
From: Brendan McKenna @ 1999-06-01 13:08 UTC (permalink / raw)
To: pgsql-interfaces
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
--
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
^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql_perl5 fails to compile
@ 1999-06-01 14:28 Brendan McKenna <brendan@w3s.ie>
1999-06-02 14:25 ` Re: [INTERFACES] pgsql_perl5 fails to compile Tom Lane <tgl@sss.pgh.pa.us>
1999-06-04 22:15 ` Re: [INTERFACES] pgsql_perl5 fails to compile Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 2 replies; 5+ messages in thread
From: Brendan McKenna @ 1999-06-01 14:28 UTC (permalink / raw)
To: pgsql-interfaces
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
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: [INTERFACES] pgsql_perl5 fails to compile
1999-06-01 14:28 pgsql_perl5 fails to compile Brendan McKenna <brendan@w3s.ie>
@ 1999-06-02 14:25 ` Tom Lane <tgl@sss.pgh.pa.us>
1 sibling, 0 replies; 5+ messages in thread
From: Tom Lane @ 1999-06-02 14:25 UTC (permalink / raw)
To: Brendan McKenna <brendan@w3s.ie>; +Cc: pgsql-interfaces
"Brendan McKenna" <brendan@w3s.ie> writes:
> 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
Hmm. The perl5 module compiles and works under Perl 5.004 (I have
5.004_04 here), but the bits you are pointing at look like they are
referring to Perl internals that they probably shouldn't refer to :-(.
Perhaps that stuff has been changed in 5.005.
Are there any Perl gurus in the house? How can this code be rewritten
in a more version-independent way? The two print routines want to be
able to take a variable number of arguments, and XS_PG_results_fetchrow
wants to be able to return an undef result. Surely there's a right
way to do both things...
regards, tom lane
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: [INTERFACES] pgsql_perl5 fails to compile
1999-06-01 14:28 pgsql_perl5 fails to compile Brendan McKenna <brendan@w3s.ie>
@ 1999-06-04 22:15 ` Tom Lane <tgl@sss.pgh.pa.us>
1 sibling, 0 replies; 5+ messages in thread
From: Tom Lane @ 1999-06-04 22:15 UTC (permalink / raw)
To: Brendan McKenna <brendan@w3s.ie>; +Cc: pgsql-interfaces
"Brendan McKenna" <brendan@w3s.ie> writes:
> 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
After looking at the definition of these symbols in Perl 5.004, I wonder
whether the problem is related to Perl's EMBED/NO_EMBED option. Perhaps
the perl5 interface fails to compile if you have installed Perl with
the nondefault setting of that option? This is a bit of a stretch,
but given that we have heard no other complaints, I'm guessing there
must be *some* unusual aspect of your local setup that triggers the
failure.
regards, tom lane
^ permalink raw reply [nested|flat] 5+ messages in thread
* RE: [INTERFACES] pgsql_perl5 fails to compile
@ 1999-06-02 17:32 Michael R. Anderson <mike@ferrar.wvsc.edu>
0 siblings, 0 replies; 5+ messages in thread
From: Michael R. Anderson @ 1999-06-02 17:32 UTC (permalink / raw)
To: pgsql-interfaces
Tom Lane writes:
> Hmm. The perl5 module compiles and works under Perl 5.004 (I have
5.004_04 here), but the bits you are pointing at look like they are
referring to Perl internals that they probably shouldn't refer to :-(.
Perhaps that stuff has been changed in 5.005.
No, I've compiled the perl5 module pgsql95-perl-1.8.1 (something like that), under perl 5.005 and it worked fine. Since I used rpms to install postgresql, I had to edit Makefile.PL so that it would find libpq.so and libpq-fe.h, but that was the only problem I had.
Regards
Mike Anderson
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~1999-06-04 22:15 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1999-06-01 13:08 pgsql_perl5 fails to compile Brendan McKenna <brendan@w3s.ie>
1999-06-01 14:28 pgsql_perl5 fails to compile Brendan McKenna <brendan@w3s.ie>
1999-06-02 14:25 ` Tom Lane <tgl@sss.pgh.pa.us>
1999-06-04 22:15 ` Tom Lane <tgl@sss.pgh.pa.us>
1999-06-02 17:32 RE: [INTERFACES] pgsql_perl5 fails to compile Michael R. Anderson <mike@ferrar.wvsc.edu>
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