Hi all! I tried to build x64 version of pil on FreeBSD, but I ended up with the following errors:
root@proto:/root/picoLisp/src64 # gmake x86-64.freeBsd.base.o: In function `giveupX': (.text+0x459): undefined reference to `stderr' x86-64.freeBsd.base.o: In function `execErrS': (.text+0x496): undefined reference to `stderr' x86-64.freeBsd.base.o: In function `.38': (.text+0x8c3): undefined reference to `stderr' x86-64.freeBsd.base.o: In function `.341': (.text+0x35d6): undefined reference to `stdin' x86-64.freeBsd.base.o: In function `.341': (.text+0x3607): undefined reference to `stdout' x86-64.freeBsd.base.o: In function `.341': (.text+0x3638): undefined reference to `stderr' x86-64.freeBsd.base.o: In function `.3140': (.text+0x1a8ea): undefined reference to `stderr' x86-64.freeBsd.base.o: In function `ignLog': (.text+0x1ab85): undefined reference to `stderr' x86-64.freeBsd.base.o: In function `errno_A': (.text+0x1d5e1): undefined reference to `___errno' x86-64.freeBsd.base.o: In function `errnoC': (.text+0x1d5f1): undefined reference to `___errno' gmake: *** [../bin/picolisp] Error 1 I added following lines In Makefile: ... ifeq ($(MAKECMDGOALS), x86-64.freeBsd) UNAME = FreeBSD MACHINE = x86_64 ... ifeq ($(UNAME), FreeBSD) <------>OS = FreeBSD <------>SYS = .freeBsd <------>FMT = .s <------>ARCH = x86-64 <------>AS = as --64 <------>LD-MAIN = -lc -lm <------>LD-SHARED = -m64 -shared <------>STRIP = strip endif I don't know how to change x86-64.freeBsd.code.l I found this in "man errno": extern int * __error(); #define errno (* __error()) Best regards, Mansur