| Summary: | ./configure errors on missing headers are misleading on Linux | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Chris Pepper <pepper> | ||||||
| Component: | Build system | Assignee: | Assigned to nobody <unassigned-bugs> | ||||||
| Status: | CLOSED FIXED | ||||||||
| Severity: | normal | CC: | dtucker | ||||||
| Priority: | P2 | ||||||||
| Version: | 5.2p1 | ||||||||
| Hardware: | ix86 | ||||||||
| OS: | Linux | ||||||||
| Attachments: |
|
||||||||
|
Description
Chris Pepper
2009-08-07 01:13:56 AEST
Created attachment 1666 [details]
Check for header presence for zlib and openssl before checking llibraries.
Actually the problem is not that the headers are missing since the test just does a test link against libz looking for "deflate".
The problem is that the .so link to the shared library is missing:
$ rpm -qf /usr/lib/libz.so
zlib-devel-1.2.3-18.fc9.i386
so as far as your linker is concerned, zlib *is* missing since nothing using -lz is going to work.
There's already a header check which we could maybe move to before the library check. I'm opposed to including distro-specific advice in the configure errors.
I've committed the change that checks for the headers first, which may help: $ ./configure [...] checking whether getpgrp requires zero arguments... yes checking openssl/opensslv.h usability... no checking openssl/opensslv.h presence... no checking for openssl/opensslv.h... no configure: error: *** OpenSSL headers missing - please install first or check config.log *** If you'd like to write some text to put in README.platform I'd be happy to add it. Created attachment 1682 [details]
Short blurb telling RHEL-based users that they need -devel RPMs
Here's a suggestion, thanks! Linux ----- Some Linux distributions (including Red Hat/Fedora/CentOS) include headers and library links in the -devel RPMs rather than the main binary RPMs. If you get an error about headers, or complaining about a missing prerequisite that you know is installed, make sure the -devel RPMs are installed too. Thanks, I've committed the text with a few modifications. Mass move of RESOLVED bugs to CLOSED now that 5.3 is out. |