<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hello everybody.<br><br> I have posted this question in fpc-mailing list but... no answers, so i try here...<br><br>Fpc libraries compiled on freeBSD 64 bit are unusable. (32 bit not tested)<br>Python, Java, C and even fpc applications can not use them in freeBSD...<br><br>Look at that (works on Linux 32/64): =><br><br>>> The fpc library: =><br><br><pre style="margin: 0; padding: 0;"><code class="bbc_code">library test ;<br>{$mode objfpc}<br><br>procedure fpctest(); cdecl;<br>begin<br>writeln('OK, it works...');<br>end;<br><br>exports<br>fpctest name 'fpctest';<br><br>begin<br>end.</code></pre>____________________________________<br><br>>> The Python script: =><br><br><pre style="margin: 0; padding: 0;"><code class="bbc_code">#file fp_test.py<br>import string<br>import os,sys,platform<br>dia = sys.path[0]<br>from ctypes import*<br>fp_lib = "libtest.so"<br>fppathdll = os.path.join( dia , fp_lib)<br>fpdll = cdll.LoadLibrary(fppathdll)<br>fpdll.fpctest<br>_____________________________<br><br></code>Compile test.pas and run the python script: =><br><br>>><strong> python fp_test.py<br><br></strong>=> Does not work and same error if fpc library is used by Python,
Java (fpc lib compiled with Java-syntax), C or fpc applications:<br><br>> ~/libtest.so: Undefined symbol<br>> "operatingsystem_parameter_envp"<br></pre><br>How can i help to fix that ?<br><br>Thanks.<br><br>Fred. <br> </div></body>
</html>