Re: problem making DBD-Pg

Dana Hudes <[email protected]>
Newsgroups gmane.comp.db.postgresql.dbdpg
Message-ID <[email protected]>
you are trying to mix 32 and 64 bit code. that's a nono.  please give me 
the result of a perl -V so I can see what options you used to compile 
perl.  Also please provide what optoins you are using to to compile Pg.so.

Jeph Cowan wrote:
> Hi,
>
> I'm having a problem getting DBD-Pg to compile and was wondering if you could point 
> me in the right direction. perl Makefile.PL is fine, however the make blows up. The 
> error is:
>
>   ...snip...
> Running Mkbootstrap for DBD::Pg ()
> chmod 644 Pg.bs
> rm -f blib/arch/auto/DBD/Pg/Pg.so
> LD_RUN_PATH="" cc  -shared -L/usr/local/lib64 Pg.o dbdimp.o quote.o types.o  -o 
> blib/arch/auto/DBD/Pg/Pg.so   -L/usr/local/pgsql/lib -lpq
> /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/../../../../x86_64-suse-linux/bin/ld: 
> /usr/local/pgsql/lib/libpq.a(fe-connect.o): relocation R_X86_64_32 can not be used 
> when making a shared object; recompile with -fPIC
> /usr/local/pgsql/lib/libpq.a: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> make: *** [blib/arch/auto/DBD/Pg/Pg.so] Error 1
>
> Pertinent system information:
>     OS information: (uname -a)
>             kernel-name:       Linux
>             nodename:          snoopy
>             kernel-release:    2.6.5-7.244-default
>             kernel-version:    #1 Mon Dec 12 18:32:35 UTC 2005
>             machine:           x86_64
>             processor:         x86_64
>             hardware-platform: x86_64
>             operating-system:  GNU/Linux
>
>     Perl DBI information
>       Wed May 17 15:34:46 2006: "Module" DBI
>       *   "installed into: /usr/lib/perl5/site_perl/5.8.3"
>       *   "LINKTYPE: dynamic"
>       *   "VERSION: 1.50"
>       *   "EXE_FILES: dbiproxy dbiprof"
>
>     DBD-Pg-1.49
>
>     postgres (PostgreSQL) 8.1.4, connecting to same.
>
> Hopefully it a silly configuration error that I'm not seeing. Please let me know if 
> you need additional information. Thanks in advance.
>
> Regards... -jeph
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.