bugzilla-daemon at bugzilla.mindrot.org
2009-Aug-06 15:13 UTC
[Bug 1631] New: ./configure errors on missing headers are misleading on Linux
https://bugzilla.mindrot.org/show_bug.cgi?id=1631
Summary: ./configure errors on missing headers are misleading
on Linux
Product: Portable OpenSSH
Version: 5.2p1
Platform: ix86
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Build system
AssignedTo: unassigned-bugs at mindrot.org
ReportedBy: pepper at reppep.com
On Linux, OpenSSH's configure script complains that zlib and libcrypto
are missing even when they are installed -- what it actually needs are
the corresponding -devel RPMs.
Since the problem is absence of the headers, and they're in different
RPMs on Linux, please improve the errors to mention 'headers' -- -devel
RPMs are too specific unless you wanted to special-case the relevant
Linux flavors.
[root at si-node openssh]# autoreconf
[root at si-node openssh]# ./configure && make
...
checking for deflate in -lz... no
configure: error: *** zlib missing - please install first or check
config.log ***
[root at si-node openssh]# rpm -qa|grep zlib
zlib-1.2.3-3
[root at si-node openssh]# rpm -ql zlib
/usr/lib/libz.so.1
/usr/lib/libz.so.1.2.3
/usr/share/doc/zlib-1.2.3
/usr/share/doc/zlib-1.2.3/README
[root at si-node openssh]# uname -a
Linux si-node.mskcc.org 2.6.18-128.2.1.el5 #1 SMP Tue Jul 14 06:39:56
EDT 2009 i686 i686 i386 GNU/Linux
[root at si-node openssh]# cat /etc/redhat-release
CentOS release 5.3 (Final)
I installed zlib-devel-1.2.3-3.i386.rpm, then got past zlib to a
similar error about openssl:
configure: error: *** Can't find recent OpenSSL libcrypto (see
config.log for details) ***
[root at si-node openssh]# rpm -qa|grep crypto
The fix was to install openssl-devel-0.9.8e-7.el5.i386.rpm.
This was in HEAD from today.
--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2009-Aug-07 03:41 UTC
[Bug 1631] ./configure errors on missing headers are misleading on Linux
https://bugzilla.mindrot.org/show_bug.cgi?id=1631 --- Comment #1 from Darren Tucker <dtucker at zip.com.au> 2009-08-07 13:41:35 --- Created an attachment (id=1666) --> (http://bugzilla.mindrot.org/attachment.cgi?id=1666) 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. -- Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2009-Aug-28 08:07 UTC
[Bug 1631] ./configure errors on missing headers are misleading on Linux
https://bugzilla.mindrot.org/show_bug.cgi?id=1631
Darren Tucker <dtucker at zip.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dtucker at zip.com.au
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Darren Tucker <dtucker at zip.com.au> 2009-08-28
18:06:59 EST ---
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.
--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2009-Aug-28 15:03 UTC
[Bug 1631] ./configure errors on missing headers are misleading on Linux
https://bugzilla.mindrot.org/show_bug.cgi?id=1631 --- Comment #3 from Chris Pepper <pepper at reppep.com> 2009-08-29 01:03:34 EST --- Created an attachment (id=1682) Short blurb telling RHEL-based users that they need -devel RPMs -- Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. You are watching someone on the CC list of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2009-Aug-28 15:04 UTC
[Bug 1631] ./configure errors on missing headers are misleading on Linux
https://bugzilla.mindrot.org/show_bug.cgi?id=1631
Chris Pepper <pepper at reppep.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
--- Comment #4 from Chris Pepper <pepper at reppep.com> 2009-08-29
01:04:23 EST ---
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.
--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2009-Aug-28 23:15 UTC
[Bug 1631] ./configure errors on missing headers are misleading on Linux
https://bugzilla.mindrot.org/show_bug.cgi?id=1631
Darren Tucker <dtucker at zip.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
--- Comment #5 from Darren Tucker <dtucker at zip.com.au> 2009-08-29
09:15:46 EST ---
Thanks, I've committed the text with a few modifications.
--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2009-Oct-06 04:02 UTC
[Bug 1631] ./configure errors on missing headers are misleading on Linux
https://bugzilla.mindrot.org/show_bug.cgi?id=1631
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED
--- Comment #6 from Damien Miller <djm at mindrot.org> 2009-10-06 15:02:35
EST ---
Mass move of RESOLVED bugs to CLOSED now that 5.3 is out.
--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.