Hello,

I'm having troubles compiling DBD-Pg v1.01 under Red Hat 6.2.

I'm using Postgres 7.2, which is compiled with --enable-locale and installed
under /usr/local/pgsql

[root@fetburk DBD-Pg-1.01]# set
....
POSTGRES_INCLUDE=/usr/local/pgsql/include
POSTGRES_LIB=/usr/local/pgsql/lib/libpq.so
....


When I run "perl Makefile.pl" I get this:

[root@fetburk DBD-Pg-1.01]# perl Makefile.PL 
Configuring Pg
Remember to actually read the README file !
OS: linux
Using DBI 1.201 installed in
/usr/local/lib/perl5/site_perl/5.6.1/i686-linux/auto/DBI
Note (probably harmless): No library found for -lpq
Writing Makefile for DBD::Pg

I then run make (no complaints), but "make test" fails with:

PERL_DL_NONLAZY=1 /usr/local/bin/perl -Iblib/arch -Iblib/lib
-I/usr/local/lib/perl5/5.6.1/i686-linux -I/usr/local/lib/perl5/5.6.1 test.pl
OS: linux
install_driver(Pg) failed: Can't load 'blib/arch/auto/DBD/Pg/Pg.so' for module
DBD::Pg: blib/arch/auto/DBD/Pg/Pg.so: undefined symbol: lo_export at
/usr/local/lib/perl5/5.6.1/i686-linux/DynaLoader.pm line 206.
 at (eval 1) line 3
Compilation failed in require at (eval 1) line 3.
Perhaps a required shared library or dll isn't installed where expected
 at test.pl line 53
make: *** [test_dynamic] Error 255

I have compiled the DBD::Pg (same versions of everything) on another machine,
with the only difference being that I didn't get this line:
Note (probably harmless): No library found for -lpq

What is -lpq? And why would it be harmless?

Other info:

DBI is 1.201

--------------------------------------------------------------
[root@fetburk DBD-Pg-1.01]# perl -v

This is perl, v5.6.1 built for i686-linux

Copyright 1987-2001, 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 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.

--------------------------------------------------------------

[root@fetburk DBD-Pg-1.01]# perl -V
Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
  Platform:
    osname=linux, osvers=2.2.14-5.0smp, archname=i686-linux
    uname='linux fetburk 2.2.14-5.0smp #1 smp tue mar 7 21:01:40 est 2000 i686
unknown '
    config_args=''
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
    useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
  Compiler:
    cc='gcc', ccflags ='-fno-strict-aliasing -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O2',
    cppflags='-fno-strict-aliasing -I/usr/local/include'
    ccversion='', gccversion='egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)',
gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
    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 -lutil
    perllibs=-lnsl -ldl -lm -lc -lposix -lcrypt -lutil
    libc=/lib/libc-2.1.3.so, 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): 
  Compile-time options: USE_LARGE_FILES
  Built under linux
  Compiled at Feb  6 2002 16:12:35
  @INC:
    /usr/local/lib/perl5/5.6.1/i686-linux
    /usr/local/lib/perl5/5.6.1
    /usr/local/lib/perl5/site_perl/5.6.1/i686-linux
    /usr/local/lib/perl5/site_perl/5.6.1
    /usr/local/lib/perl5/site_perl

------------------------------------------------------------------------

____________________________
Johan Mj�nes            [EMAIL PROTECTED]
Programmerare           08 - 527 90 464
Agent25                 070 - 528 38 55

Reply via email to