Error loading libpq.so in Linux PowerPC 64bits
Original Reporter info from Mantis: leonardorame
-
Reporter name: Leonardo M. Ramé
Original Reporter info from Mantis: leonardorame
- Reporter name: Leonardo M. Ramé
Description:
FCL-DB PostgreSql package cannot load libpq.so client library. While trying to test an app that works on Linux x86_64, I've tried to compile it on PowerPC, but it didn't work.
Maybe the problem is not only related to PostgreSql by to ANY library on this platform.
Steps to reproduce:
I've created this simple program to for testing. PostgreSql client libraries must be installed before running this.
program test;
{$mode objfpc}{$H+}
uses
sysutils,
dynlibs;
const
cLibrary = '/usr/local/pgsql/lib/libpq.so';
var
lHandle: TLibHandle;
begin
if not FileExists(cLibrary) then
begin
writeln('Library ' + cLibrary + ' does not exists.');
halt;
end;
lHandle := LoadLibrary(cLibrary);
if lHandle = 0 then
begin
writeln('Library not loaded');
RaiseLastOSError;
end;
end.
Mantis conversion info:
- Mantis ID: 22987
- OS: Linux
- OS Build: OpenSuse 10
- Build: 22457
- Platform: PowerPC
- Version: 2.7.1