Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2014-08

fpc Libraries do not work in freeBSD

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

fredvs

Hello.

Fpc library compiled on freeBSD are unusable.
Python, Java and even fpc applications can not use them...

Look at that (works with Linux): =>

> The fpc library :=>
////////////////
library test ;
{$mode objfpc}
procedure fpctest();
begin
writeln('OK, it works...');
end;
exports
fpctest name 'fpctest';
begin
end.
////////////////
> The Python script :=>

//////////////
#file fp_test.py
import string
import os,sys,platform
dia = sys.path[0]
from ctypes import*
fp_lib = "libtest.so"
fppathdll = os.path.join( dia , fp_lib)
fpdll = cdll.LoadLibrary(fppathdll)
fpdll.fpctest
////////////////

Run the script

> python fp_test.py

=> same error if library used by Python, Java or fpc applications:

~/libtest.so: Undefined symbol "operatingsystem_parameter_envp"

How can i help to fix that ?

Thanks.

Fred.

-----
Many thanks ;-)

View this message in context: http://free-pascal-general.1045716.n5.nabble.com/fpc-Libraries-do-not-work-in-freeBSD-tp5719870.html Sent from the Free Pascal - General mailing list .

Reply by email