[fpc-devel] cnetdb.pp Compile Error on both trunk and stable (MacOSX aarch64)
Jonas Maebe
jonas at freepascal.org
Mon Jun 9 13:32:01 CEST 2025
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
More information about the fpc-devel
mailing list