Subject: Re: Somehow I've screwd up my openssh libraries.
To: None <itojun@iijlab.net>
From: Hisashi T Fujinaka <htodd@twofifty.com>
List: current-users
Date: 08/01/2003 17:24:25
On Fri, 1 Aug 2003 itojun@iijlab.net wrote:

> >> >I currently get the error:
> >> >
> >> >cc -O2 -I/usr/obj/pkg/net/wget/work.i386/.buildlink/include -Wl,-R/usr/pkg/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib -o wget cmpt.o connect.o cookies.o fnmatch.o ftp.o ftp-basic.o ftp-ls.o ftp-opie.o hash.o headers.o host.o html-parse.o html-url.o http.o
>  in
> >> it.o log.o main.o gen-md5.o netrc.o progress.o rbuf.o recur.o res.o retr.o safe-ctype.o snprintf.o gen_sslfunc.o url.o utils.o version.o -L/usr/obj/pkg/net/wget/work.i386/.buildlink/lib -lssl -lcrypto /usr/lib/libintl.so
> >> >gen_sslfunc.o: In function `init_ssl':
> >> >gen_sslfunc.o(.text+0xf1): undefined reference to `OpenSSL_add_all_algorithms'
> >> >*** Error code 1
> >> >
> >> >on one machine. On the other I get no error.
> >> >
> >> >Unless this is something that's been generated recently, something is
> >> >screwy. Perhaps I need to ranlib something? :)
> >>
> >> 	i guess
> >> 	- gen_sslfunc.c does not include openssl/evp.h (which it should).
> >> 	- machine that fails = /usr/lib/libcrypto.a is openssl 0.9.7b
> >> 	- machine that is ok = /usr/lib/libcrypto.a is openssl 0.9.6g
> >>
> >> itojun
> >
> >I find the same /usr/include/openssl/evp.h on both machines. I don't
> >know how to find objects in libcrypto.a so I haven't examined it. If you
> >can tell me what to look at, I will do it tomorrow morning.
>
> 	anyways, i guess your /usr/include/openssl and /usr/lib/libcrypto.a
> 	are out of sync.  in openssl 0.9.7b, OpenSSL_add_all_algorithms()
> 	is a macro inside /usr/include/openssl/evp.h (therefore there's no
> 	function in libcrypto.a).   in openssl 0.9.6g, it is an actual
> 	function.

I went to /usr/src and did the following:
sudo make cleandir
find . -name ".depend*" -exec rm {} \;
find . -name "obj.i386" -exec rm {} \; <- required to get postfix to compile sometimes
./build.sh -U distribution
sudo ./build.sh -U install=/

and I still have the same error.

Do you have any other suggestions?

-- 
Hisashi T Fujinaka - htodd@twofifty.com
BSEE(6/86) + BSChem(3/95) + BAEnglish(8/95) + MSCS(8/03) + $2.50 = latte