Discussion:
problem with openssl (again)
Jochen Kmietsch
2002-05-28 08:36:03 UTC
Permalink
[Please keep the discussion on the list]

Hello!
After your mail, i installed openssl-devel, but nothing changes
Ok, let's try this again. Which system/distribution, which version of
OpenSSL and how did you install it, which version of NetSNMP and how did
you install that, how do you run configure, what are the last lines from
the configure-run?
i meant the real source (after what i installed it),
but now i have both source , and openssl-devel
You did install OpenSSL from source or via RPM?

Jochen
--
Time exist so that everything doesn't happen at once.
Pascal Warnotte
2002-05-28 09:01:04 UTC
Permalink
Post by Jochen Kmietsch
[Please keep the discussion on the list]
Hello!
After your mail, i installed openssl-devel, but nothing changes
Ok, let's try this again. Which system/distribution, which version of
OpenSSL and how did you install it, which version of NetSNMP and how did
you install that, how do you run configure, what are the last lines from
the configure-run?
I'm using ucd-snmp 4.2.5,
OpenSSL is installed by default with Suse Linux 7.2 (openssl 0.9.6a-9)

./configure --with-openssl=/usr/lib (but the same with any other flag :
/usr ; /usr/loca/include/ssl; ....)
...
...
checking for openssl/hmac.h... (cached) no
checking for openssl/evp.h... (cached) no
checking for lpstat... no
checking for cgetnext... (cached) no
checking for authentication support... Internal MD5 Support
configure: error: Asked to use OpenSSL but I couldn't find it.
Post by Jochen Kmietsch
i meant the real source (after what i installed it),
but now i have both source , and openssl-devel
You did install OpenSSL from source or via RPM?
I first let OpenSSL installed by default when installing Suse.
Then i tried to install via the sources.
Post by Jochen Kmietsch
Jochen
--
Time exist so that everything doesn't happen at once.
Thanks again for your help.
Jochen Kmietsch
2002-05-28 09:23:03 UTC
Permalink
Hello!
Post by Pascal Warnotte
I'm using ucd-snmp 4.2.5,
OpenSSL is installed by default with Suse Linux 7.2 (openssl 0.9.6a-9)
Good.
Post by Pascal Warnotte
/usr ; /usr/loca/include/ssl; ....)
Well, why don't you check where it's installed and set the flag
accordingly? Or don't set the path at all but just use --with-openssl
and let configure find it itself.
Post by Pascal Warnotte
checking for openssl/hmac.h... (cached) no
Ah, there's the rub.

rm config.cache
./configure --with-openssl

You need to remove the configure cache before you run configure again.
Post by Pascal Warnotte
I first let OpenSSL installed by default when installing Suse.
Then i tried to install via the sources.
And now you have both versions on your system? Try to clean out the one
in /usr/local/{lib,include}, maybe "make uninstall" in the sources will
work.

I bet your problem was the config.cache file and the missing openssl-devel
on the initial configure-run.

Jochen
Pascal Warnotte
2002-05-28 09:29:06 UTC
Permalink
Thanks a lot, that's the problem,
i just removed the file config.cache,
now it works fine.

Greetings,

Pascal


----- Original Message -----
From: "Jochen Kmietsch" <***@tu-clausthal.de>
To: "Pascal Warnotte" <***@swing.be>
Cc: <net-snmp-***@lists.sourceforge.net>
Sent: Tuesday, May 28, 2002 1:24 PM
Subject: Re: problem with openssl (again)
Post by Jochen Kmietsch
Hello!
Post by Pascal Warnotte
I'm using ucd-snmp 4.2.5,
OpenSSL is installed by default with Suse Linux 7.2 (openssl 0.9.6a-9)
Good.
Post by Pascal Warnotte
/usr ; /usr/loca/include/ssl; ....)
Well, why don't you check where it's installed and set the flag
accordingly? Or don't set the path at all but just use --with-openssl
and let configure find it itself.
Post by Pascal Warnotte
checking for openssl/hmac.h... (cached) no
Ah, there's the rub.
rm config.cache
./configure --with-openssl
You need to remove the configure cache before you run configure again.
Post by Pascal Warnotte
I first let OpenSSL installed by default when installing Suse.
Then i tried to install via the sources.
And now you have both versions on your system? Try to clean out the one
in /usr/local/{lib,include}, maybe "make uninstall" in the sources will
work.
I bet your problem was the config.cache file and the missing openssl-devel
on the initial configure-run.
Jochen
Dave Shield
2002-05-28 09:22:02 UTC
Permalink
Post by Pascal Warnotte
/usr ; /usr/loca/include/ssl; ....)
...
...
checking for openssl/hmac.h... (cached) no
checking for openssl/evp.h... (cached) no
^^^^^^^^

If you're trying to get it to recognise the presence of the OpenSSL
stuff, you'll have to remove the 'config.cache' file between runs.
Otherwise it'll just keep using the cached values.
Post by Pascal Warnotte
Post by Jochen Kmietsch
You did install OpenSSL from source or via RPM?
I first let OpenSSL installed by default when installing Suse.
Then i tried to install via the sources.
I strongly suggest that you work with *either* a source installation,
*or* RPMs, but not both. Otherwise it's much too easy to get
confused about what bits are being picked up from where.


I'd suggest that it's probably worth starting again from a clean setup.
Remove the source installation, and both the 'openssl' and 'openssl-devel'
RPMs, and delete the UCD-SNMP code tree.
Then re-install the two RPMs, and check that /usr/lib/libcrypt.a
and /usr/include/openssl/hmac.h are both present.
Then try unpacking the tarball, and re-running configure --with-openssl

If that fails, check the config.log file for what it complained about,
and try and fix that before doing anything else. Then delete config.cache
before re-running configure.

It might seem a bit fiddly, but if you're having problems, starting
again is often the easiest way to get things working.

Dave
Pascal Warnotte
2002-05-28 09:29:04 UTC
Permalink
Thanks a lot, that's the problem,
i just removed the file config.cache,
now it works fine.

Greetings,

Pascal
Post by Dave Shield
Post by Pascal Warnotte
/usr ; /usr/loca/include/ssl; ....)
...
...
checking for openssl/hmac.h... (cached) no
checking for openssl/evp.h... (cached) no
^^^^^^^^
If you're trying to get it to recognise the presence of the OpenSSL
stuff, you'll have to remove the 'config.cache' file between runs.
Otherwise it'll just keep using the cached values.
Post by Pascal Warnotte
Post by Jochen Kmietsch
You did install OpenSSL from source or via RPM?
I first let OpenSSL installed by default when installing Suse.
Then i tried to install via the sources.
I strongly suggest that you work with *either* a source installation,
*or* RPMs, but not both. Otherwise it's much too easy to get
confused about what bits are being picked up from where.
I'd suggest that it's probably worth starting again from a clean setup.
Remove the source installation, and both the 'openssl' and 'openssl-devel'
RPMs, and delete the UCD-SNMP code tree.
Then re-install the two RPMs, and check that /usr/lib/libcrypt.a
and /usr/include/openssl/hmac.h are both present.
Then try unpacking the tarball, and re-running configure --with-openssl
If that fails, check the config.log file for what it complained about,
and try and fix that before doing anything else. Then delete config.cache
before re-running configure.
It might seem a bit fiddly, but if you're having problems, starting
again is often the easiest way to get things working.
Dave
Loading...