On 25-03-12 00:46, peter green wrote: > Just to let you know (I should have posted this earlier) I got > completely lost trying to fixup the assembler init code and gave up on > my attempts. I may come back to this bug later (right now armhf is more > important to me than kfreebsd), in the meantime if anyone else wants to > pick it up i'll provide what help I can.
Currently I am trying to get fpc building on kfreebsd-amd64 on one of the porterboxes. I seem to be able to get a package build, albeit with some missing things. The things I have done so far to get it running: # use the linux assembly cprt0.as iso the freebsd version # prevents # fpcsrc/rtl/units/x86_64-freebsd/cprt0.o: In function `_start': # crt1.c:(.text+0xcb): undefined reference to `_init_tls' mv fpcsrc/rtl/freebsd/x86_64/cprt0.as fpcsrc/rtl/freebsd/x86_64/cprt0.as_org cp fpcsrc/rtl/linux/x86_64/cprt0.as fpcsrc/rtl/freebsd/x86_64/ # As mentioned before in this thread. sed --in-place s/__error/__errno_location/ fpcsrc/rtl/unix/initc.pp In fastcgi and fcl-web, something goes wrong with linking: ELF interpreter /usr/libexec/ld-elf.so.1 not found I have no idea where this comes from as all references to libexec are either in fpmake itself after compilation or in t_bsd.pas (which code I removed below anyway to be sure). Because of removing fastcgi and fcl-web from building, also fppkg fails: pkgfphttp.pp(18,12) Fatal: Can't find unit fphttpclient used by pkgfphttp This last failure can be prevented by building fcl-web until failure, then enough pieces are in place for fppkg to build. Also building fpdoc goes wrong with: /usr/bin/ld: cannot find -liconv I don't know exactly why this is added on kfreebsd and not (it seems) on Linux. Maybe, if I understand correctly, it should be -lkiconv on Debian and than I need to build depend on libkiconv-dev [kfreebsd-any]. I think I will create a package which doesn't build fastcgi/fcl-web/fppkg/fpdoc for now. So that we have something to start with. After I am finished with this, I will also try to see if by now this trick can also be applied on kfreebsd-i386. Paul
signature.asc
Description: OpenPGP digital signature