On 08/06/2025 12:59, Michael Ring via fpc-devel wrote:
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}

cnetdb is not enabled for Darwin in the official source/repo. So that sounds like a bad/incomplete patch that fpcupdeluxe applies.


Jonas

_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to