Bug 4412 - rpm-3.0.3-0.9 will not build due to a missing netdb.h test in ./configure
Summary: rpm-3.0.3-0.9 will not build due to a missing netdb.h test in ./configure
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: rpm
Version: 1.0
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 1999-08-07 04:00 UTC by Joseph Malicki
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 1999-08-08 16:28:03 UTC


Attachments (Terms of Use)

Description Joseph Malicki 1999-08-07 04:00:01 UTC
I have had numerous problems building rpm-3.0.3-0.9
since ./configure does not check for netdb.h, leaving
HAVE_NETDB_H undefined in config.h, so system.h will not
#include <netdb.h>.  The simple fix was to change #undef
HAVE_NETDB_H in config.h.in to #define HAVE_NETDB_H 1, but
having configure actually test for it would be nice.

Also, perhaps the code should be written so configure would
fail if struct hostent is not found in any header files,
which is what the build failure is due to.

Comment 1 Jeff Johnson 1999-08-08 16:28:59 UTC
From rpm/configure.in:
...
AC_CHECK_HEADERS(fcntl.h getopt.h grp.h memory.h netdb.h pwd.h
utime.h)
...


Note You need to log in before you can comment on or make changes to this bug.