[fpc-devel]Stable tree broken for FreeBSD? [maintenance ramblings]
Jeroen Ruigrok/asmodai
asmodai at wxs.nl
Thu Mar 20 08:48:58 CET 2003
Hi,
using the fixes branch from this morning I try:
OS_TARGET=freebsd gmake all
which ends in:
ppc386 -dUNIX -dNOMOUSE -dNOGPM -Xs -OG2p3 -n -Fi../inc -Fi../i386 -Fi../unix -FE. -di386 -dRELEASE -I../objpas ../unix/sysutils.pp
fina.inc(101,11) Error: Identifier not found DOS
fina.inc(101,15) Error: Illegal qualifier
fina.inc(101,22) Fatal: Syntax error, ; expected but ( found
gmake[4]: *** [sysutils.ppu] Error 1
gmake[4]: Leaving directory `/usr/home/asmodai/software/fpc/fpc-test/rtl/freebsd'
Which is logical, hasunix is not set, so fina.inc skips to the DOS part
of the code.
I guess hasunix in the ifdef part of fina.inc checks the -dHASUNIX
passed to fpc.
In rtl/freebsd/Makefile I don't get this:
ifeq ($(findstring 1.0.2,$(FPC_VERSION)),)
ifeq ($(findstring 1.0.4,$(FPC_VERSION)),)
override FPCOPT+=-Ur
endif
endif
1.0.4 has no -Ur, so I wonder, can this be stripped?
Furthermore, can:
SYSTEMUNIT=sysbsd
LINUXUNIT=linux
override FPCOPT+=-dUNIX -dNOMOUSE -dNOGPM
PRT0=prt0
OBJPASDIR=$(RTL)/objpas
be changed to:
SYSTEMUNIT=sysbsd
LINUXUNIT=linux
override FPCOPT+=-dHASUNIX -dUNIX -dNOMOUSE -dNOGPM
PRT0=prt0
OBJPASDIR=$(RTL)/objpas
That at least allows me to compile rtl/freebsd. But I think something
fundamental is not being set.
Also, why UNIX and HASUNIX? What is the difference between the two?
--
Jeroen Ruigrok van der Werven <asmodai(at)wxs.nl> / asmodai / a capoeirista
PGP fingerprint: 2D92 980E 45FE 2C28 9DB7 9D88 97E6 839B 2EAC 625B
http://www.tendra.org/ | http://www.in-nomine.org/~asmodai/diary/
He who has a why to live for can bear almost any how...
More information about the fpc-devel
mailing list