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; S_IRWXO = S_IROTH or

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 goes

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 compiler option

[fpc-pascal] Library does not compile on freeBSD

2014-08-01 Thread fredvs
Hello. I have a library-code who compiles perfectly on Linux 32/64 and Windows 32/64 with fpc 2.7 trunk. Sadly, when i try to compile same code on freeBSD with fpc 2.7 trunk too, i get that error message : /usr/bin/ld: /usr/home/fred/fpGUI-develop/lib/x86_64-freebsd/fpg_base.o: relocation