|
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.
|