Bug 3166 - How to undefine HAVE_RPC_TYPES_H during "./configure"
Summary: How to undefine HAVE_RPC_TYPES_H during "./configure"
Status: NEW
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: Build system (show other bugs)
Version: 8.2p1
Hardware: ARM64 Other
: P5 enhancement
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-18 13:26 AEST by fqin
Modified: 2020-11-30 13:20 AEDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description fqin 2020-05-18 13:26:45 AEST
I want to undefine HAVE_RPC_TYPES_H to resolve a compile error. But I don't find some options like "--without" to do that.

Could you tell how to disable it?
Comment 1 Darren Tucker 2020-05-18 13:55:23 AEST
HAVE_RPC_TYPES_H is defined when the header file exists and it's not something that was intended to be user-overridden.  I guess you could remove the header file.

What's the error and is that fixable instead?
Comment 2 Darren Tucker 2020-11-30 13:20:09 AEDT
rpc/types.h was added in this commit:

commit 7577fd83c16ef3415b61ca1bea1b14e1ab8e4228
Author: Ben Lindstrom <mouring@eviladmin.org>
Date:   Fri Mar 8 03:11:07 2002 +0000

     - (bal) Add in check for rpc/types.h since it is needed on
       some platforms for INADDR_LOOPBACK.  We should retest
       SCO 3 to see if this fixes their problem also.

Assuming that's still all it's needed for, there would be a couple of options: only including it if INADDR_LOOPBACK is not defined, or defining INADDR_LOOPBACK ourselves.

I'm still not sure what problem we're trying to solve, though.