Control: reassign -1 fpc This is not a bug in view3dscene but rather a bug in FPC. Indeed if cge is compiled using -Ur flag that this does not happen. However here the -Ur flag does not have a real meaning as sources are missing.
After analyzing more the issue it looks like the CRC stored for
CastleUtils in CastleStringUtils differs from the one stored in
CastleUtils itself.
gshadow locale.alias passwd- services
[mazen@karim:~]$ppudump -vi
/usr/lib/i386-linux-gnu/fp-units-2.6.4/castle-game-engine-5.0.0/castlestringutils.ppu
PPU-Analyser Version 2.6.4
Copyright (c) 1998-2013 by the Free Pascal Development Team
Analyzing
/usr/lib/i386-linux-gnu/fp-units-2.6.4/castle-game-engine-5.0.0/castlestringutils.ppu
(v135)
Interface section
------------------
Module Name: CastleStringUtils
Source file 1 : castlestringutils.pas 2014/05/06 21:08:10
Source file 2 : norqcheckbegin.inc 2014/05/06 21:08:10
Source file 3 : norqcheckend.inc 2014/05/06 21:08:10
Uses unit: System (Crc: 6A6C800E, IntfcCrc: BFEB7A00, IndCrc: 8B647540)
Uses unit: objpas (Crc: 8A1C41DE, IntfcCrc: DBA6773B, IndCrc: 8B647540)
Uses unit: sysutils (Crc: 18051831, IntfcCrc: DD662BB4, IndCrc: 373F3F05)
Uses unit: CastleUtils (Crc: D8D8A5DB, IntfcCrc: 16456BB1, IndCrc: 0C46E7B4)
Uses unit: Classes (Crc: 9ECA0548, IntfcCrc: 7F299AA8, IndCrc: 59A2E37F)
Link unit object file: castlestringutils.o (static )
DerefMapsize: 4
DerefMap[0] = CLASSES
DerefMap[1] = SYSTEM
DerefMap[2] = SYSUTILS
DerefMap[3] = REGEXPR
Derefdata length: 14145
Interface symtable
----------------------
Symtable options: none
!! Error in PPU
$ppudump -vh
/usr/lib/i386-linux-gnu/fp-units-2.6.4/castle-game-engine-5.0.0/castleutils.ppu
PPU-Analyser Version 2.6.4
Copyright (c) 1998-2013 by the Free Pascal Development Team
Analyzing
/usr/lib/i386-linux-gnu/fp-units-2.6.4/castle-game-engine-5.0.0/castleutils.ppu
(v135)
Header
-------
Compiler version : 2.6.4
Target processor : i386
Target operating system : Linux-i386
Unit flags : init, final, static_linked, little_endian, release,
local_threadvars, local_symtable
FileSize (w/o header) : 244378
Checksum : C271DEEF
Interface Checksum : 16456BB1
Indirect Checksum : 0C46E7B4
Definitions stored : 884
Symbols stored : 2531
Interface symtable
----------------------
Symtable options: none
!! Error in PPU
As you can see the CRC for CastleUtils is C271DEEF while CastleStringUtils
expects 8A1C41DE.
This may explain the error message
...
Recompiling CastleStringUtils, checksum changed for CastleUtils
castlestringutils.pas(77,56) Fatal: Can't find unit CastleStringUtils used by
CastleUtils
...
Cheers,
signature.asc
Description: This is a digitally signed message part

