[fpc-devel] cnetdb.pp Compile Error on both trunk and stable (MacOSX aarch64)

Michael Ring mail at michael-ring.org
Sun Jun 8 12:59:50 CEST 2025


When trying to build fpc (with fpcupdeluxe) I get the following error 
for both Trunk and Stable(!!) version of fpc:

Compiling ./fcl-net/src/cnetdb.pp

cnetdb.pp(240,2) Error: User defined: fatal 'Please consult the netdb.h 
file for your system to determine the order of ai_addr and ai_canonname'
cnetdb.pp(320,1) Fatal: There were 1 errors compiling module, stopping

Fatal: Compilation aborted


problem is that none of the defines matches:

{$if defined(LINUX) or defined(OPENBSD)}
{$define FIRST_ADDR_THEN_CANONNAME}
{$endif}
{$if defined(FREEBSD) or defined(NETBSD) or defined(DRAGONFLY) or 
defined(SOLARIS) or defined(ANDROID)}
{$define FIRST_CANONNAME_THEN_ADDR}
{$endif}
{$if not defined(FIRST_CANONNAME_THEN_ADDR) and not 
defined(FIRST_ADDR_THEN_CANONNAME)}
{$error fatal 'Please consult the netdb.h file for your system to 
determine the order of ai_addr and ai_canonname'}
{$endif}


Any help appreciated,


Michael





More information about the fpc-devel mailing list