Bug 48982

Summary: 5.0 buildworld fails after openssl -DOVERWRITE_BASE install
Product: Base System Reporter: Mike Buchanon <buchanon>
Component: i386Assignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 5.0-RELEASE   
Hardware: Any   
OS: Any   

Description Mike Buchanon 2003-03-06 20:20:04 UTC
	After a clean net install using the floppies, I installed
	openssl and openssh with the OVERWRITE_BASE options turned
	on in /etc/make.conf.  I wanted to have the latest version
	of both packages in use on my new system and having it in the
	base seemed like a good idea.

	However, now that I have done this I am attempting to do a
	buildworld and it fails in libtelnet as follows:

---begin paste---
===> secure/lib/libtelnet
rm -f .depend
mkdep -f .depend -a    -DENCRYPTION -DAUTHENTICATION -DSRA -I/usr/src/secure/lib/libtelnet/../../../crypto/telnet -I/usr/src/secure/lib/libtelnet/../../../crypto/telnet/libtelnet -DNO_IDEA  /usr/src/secure/lib/libtelnet/../../../crypto/telnet/libtelnet/genget.c /usr/src/secure/lib/libtelnet/../../../crypto/telnet/libtelnet/getent.c /usr/src/secure/lib/libtelnet/../../../crypto/telnet/libtelnet/misc.c /usr/src/secure/lib/libtelnet/../../../crypto/telnet/libtelnet/encrypt.c /usr/src/secure/lib/libtelnet/../../../crypto/telnet/libtelnet/auth.c /usr/src/secure/lib/libtelnet/../../../crypto/telnet/libtelnet/enc_des.c /usr/src/secure/lib/libtelnet/../../../crypto/telnet/libtelnet/sra.c /usr/src/secure/lib/libtelnet/../../../crypto/telnet/libtelnet/pk.c
In file included from /usr/src/crypto/telnet/libtelnet/misc.c:53:
/usr/src/crypto/telnet/libtelnet/encrypt.h:64:25: openssl/des.h: No such file or directory
In file included from /usr/src/crypto/telnet/libtelnet/encrypt.c:73:
/usr/src/crypto/telnet/libtelnet/encrypt.h:64:25: openssl/des.h: No such file or directory
In file included from /usr/src/crypto/telnet/libtelnet/auth.c:75:
/usr/src/crypto/telnet/libtelnet/encrypt.h:64:25: openssl/des.h: No such file or directory
/usr/src/crypto/telnet/libtelnet/enc_des.c:47:25: openssl/des.h: No such file or directory
In file included from /usr/src/crypto/telnet/libtelnet/enc_des.c:52:
/usr/src/crypto/telnet/libtelnet/encrypt.h:64:25: openssl/des.h: No such file or directory
In file included from /usr/src/crypto/telnet/libtelnet/sra.c:54:
/usr/src/crypto/telnet/libtelnet/encrypt.h:64:25: openssl/des.h: No such file or directory
/usr/src/crypto/telnet/libtelnet/pk.c:47:25: openssl/des.h: No such file or directory
/usr/src/crypto/telnet/libtelnet/pk.c:53:16: mp.h: No such file or directory
mkdep: compile failed
*** Error code 1

Stop in /usr/src/secure/lib/libtelnet.
*** Error code 1

Stop in /usr/src/secure/lib.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
tear# 

---end paste---	


If I then go to /usr/src/secure/lib/libtelnet and do 'make clean; make' I
get the following:

---begin paste---
cure/lib/libtelnet/../../../crypto/telnet -I/usr/src/secure/lib/libtelnet/../../../crypto/telnet/libtelnet -DNO_IDEA -Werror -Wall -Wno-format-y2k -Wno-uninitialized  -c /usr/src/secure/lib/libtelnet/../../../crypto/telnet/libtelnet/enc_des.c -o enc_des.o
cc1: warnings being treated as errors
/usr/src/crypto/telnet/libtelnet/enc_des.c: In function `fb64_start':
/usr/src/crypto/telnet/libtelnet/enc_des.c:214: warning: implicit declaration of function `des_new_random_key'
*** Error code 1

Stop in /usr/src/secure/lib/libtelnet.
---end paste---

Fix: 

I wish I knew how to fix this :)  I have found several other people
	on google and groups.google that are having the same type of
	problem.  However, I have not found a fix.
How-To-Repeat: 	tell the openssl port to over write the base install of openssl 
	and then attempt to buildworld.
Comment 1 Kris Kennaway freebsd_committer freebsd_triage 2003-07-13 02:27:35 UTC
State Changed
From-To: open->closed

If you overwrite the base system openssl then you need 
to set NO_OPENSSL in your make.conf to avoid building it 
or things that use it.  'make world' can only be expected 
to work with the system OpenSSL.