[fpc-devel] fpc libraries do not work in freeBSD...

Fred van Stappen fiens at hotmail.com
Fri Aug 8 18:40:52 CEST 2014


Yeeeeeeeep, Michal, your tip does the trick... :-)

According to your patch (i do not know how to apply), i have changed in:
/rtl/freebsd/x86_64/dllprt0.as :
________________________________
     .weak   operatingsystem_parameter_argc
     .weak   operatingsystem_parameter_argv     .weak   operatingsystem_parameter_envp_____________________________________

>> with that :
_____________________________________
operatingsystem_parameters:        .skip 3*8
        .global operatingsystem_parameter_envp
        .global operatingsystem_parameter_argc        .global operatingsystem_parameter_argv        .set operatingsystem_parameter_envp,operatingsystem_parameters+0        .set operatingsystem_parameter_argc,operatingsystem_parameters+8
        .set operatingsystem_parameter_argv,operatingsystem_parameters+16
______________________________________________

After compile fpc, (do not know what assembler command to use to compile only dllprt0.as)
the magic appear :

1) I can run Python script that use fpc libraries on freeBSD 10 64 bit.
2) I can run Java app that use fpc libraries on freeBSD 10 64 bit. 
3) Complicated GUI fpc libraries tested too on freeBSD 10 64 bit.  => It Works !
4) fpc can really do True Universal Libraries.

Morality of that story => fpc is now the unique King of True Universal Libraries. ;-)

Hypra many tetra thanks to Michal and all the developers of King-Magic fpc.


Here screenshots of fpc libraries used by Java and Python on feeBSD 10 64 bits.

>> https://sites.google.com/site/fiensprototyping/home/freebsd_java_fpguilib.jpg

>> https://sites.google.com/site/fiensprototyping/home/freebsd_python_fpguilib.jpg

Fred

PS : I recommend that patch to all freeBSD users.

 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20140808/6ffbaabc/attachment.html>


More information about the fpc-devel mailing list