<div dir="ltr"><div><div><div>FWIW, I ran into this problem trying to use the RTL from the FPC 2.6.2 release branch when built with -Cr. Attached is a patch that works around the problematic code (in sockets.inc).<br></div>
<br></div>It does not fix the underlying problem (type mismatch upon invocation of ntohl() and friends) but it does allow the RTL to be built and used with -Cr (without it, the RTL generates ERangeError).<br><br></div><div>
I presume it's the intention that the RTL and packages build and run with -Cr, right?<br></div><div><br></div>Cheers, Bruce.<br></div>