Re: [fpc-pascal] Calling fpc libraries from other languages on freebsd/amd64 (bis)

2014-08-02 Thread fredvs
>> Is it solved in trunk fpc version ? >Why don't you try? I have install a brand new trunk version of fpc 2.7.1 64 bit on freeBSD 10 64 bit. The library was successfully compiled. But, sadly, i get hat error message while trying to run a java application who use the library (that java applicat

Re: [fpc-pascal] Library does not compile on freeBSD

2014-08-02 Thread Graeme Geldenhuys
On 2014-08-01 23:48, fredvs wrote: >>> >> /usr/home/fred/fpGUI-develop/lib/x86_64-freebsd/fpg_base.o: could not >>> >> read symbols: Bad value > Compilation was done with -fPIC parameter... > > What is wrong ? The classic down side of using Lazarus Packages (*.lpk files). You applied a new compi

Re: [fpc-pascal] LoadLibrary in freeBSD ?

2014-08-02 Thread Graeme Geldenhuys
On 2014-08-02 01:46, fredvs wrote: > I have installed linux_base-f10 (linux emulator) but it seams that freeBSD > can load only 32-bit-libraries. Correct. The Linux Emulator in FreeBSD only supports 32-bit Linux applications at this point. There is work going on fer 64-bit support, but it is not c

Re: [fpc-pascal] Library does not compile on freeBSD

2014-08-02 Thread fredvs
Hello. A other issue comes from lpk packages. Here answer from Super-Graeme that solve my problems... => >> ... The classic down side of using Lazarus Packages (*.lpk files). You applied a new compiler option to your project, but Lazarus doesn't apply that to any packages you are using. Same

Re: [fpc-pascal] LoadLibrary in freeBSD ?

2014-08-02 Thread fredvs
Thanks Marco, thanks for your light ;-) Now that i can compile freeBSD libraries (see my last other topic), i will use that libraries (in place of Linux libraries). Write you later with the (positive, sure) results. Fred. - Many thanks ;-) -- View this message in context: http://free-pa

Re: [fpc-pascal] Library does not compile on freeBSD

2014-08-02 Thread fredvs
Hello. Thanks to Graeme, it is possible to compile libraries on freeBSD ;-) The solution :=> >>> Implementation {$IFDEF FREEBSD} // These are missing for FreeBSD in FPC's RTL const S_IRWXU = S_IRUSR or S_IWUSR or S_IXUSR; S_IRWXG = S_IRGRP or S_IWGRP or S_IXGRP;

Re: [fpc-pascal] LoadLibrary in freeBSD ?

2014-08-02 Thread Marco van de Voort
In our previous episode, fredvs said: > Aaarg, i have install fpc-freeBSD-64-bit. Afaik the linuxator also works on 64-bit FreeBSD, so you can run 32-bit Linux userland on 64-bit freebsd. > Maybe with fpc-freeBSD-32-bit applications (on a freeBSD-64-bit system?) and > Linux-libraries-32-bit will