From owner-freebsd-current Sun Jul 16 5:15:45 2000 Delivered-To: freebsd-current@freebsd.org Received: from picalon.gun.de (picalon.gun.de [192.109.159.1]) by hub.freebsd.org (Postfix) with ESMTP id C68D737BBC8 for ; Sun, 16 Jul 2000 05:15:40 -0700 (PDT) (envelope-from andreas@klemm.gtn.com) Received: (from uucp@localhost) by picalon.gun.de (8.9.3/8.9.3) id OAA28320; Sun, 16 Jul 2000 14:15:19 +0200 (MET DST) >Received: (from andreas@localhost) by klemm.gtn.com (8.9.3/8.9.3) id OAA83120; Sun, 16 Jul 2000 14:13:19 +0200 (CEST) (envelope-from andreas) Date: Sun, 16 Jul 2000 14:13:18 +0200 From: Andreas Klemm To: Mark Murray Cc: Current Subject: missing idea.h, still conflicting defines WITH_IDEA and MAKE_IDEA Message-ID: <20000716141318.A80785@titan.klemm.gtn.com> Mime-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.2i X-Operating-System: FreeBSD 5.0-CURRENT SMP X-Disclaimer: A free society is one where it is safe to be unpopular Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Jun 23, 2000 at 08:36:32AM +0200, Mark Murray wrote: > > Building world failed on my machine... (with USA_RESIDENT=NO) > > Does IDEA stuff compiled by default? > I messed this up. Fix coming. Something seems to be wrong with the logic concerning IDEA stuff. I ask because I can't build the security/p5-Net-SSLeay port anymore which is for example needed for webmin. It fails because idea.h can't be found. evp.h needs idea.h which isn't present: /usr/include/openssl/evp.h:#include There are several knobs to play with. I finally defined WITH_IDEA=YES in /etc/make.conf and did a make includes, but actually idea.h doesn't show up. When digging around under the secure src hierarchie I noticed, that WITH_IDEA only triggers a make variable secure/Makefile.inc: .if !defined(WITH_IDEA) || ${WITH_IDEA} != YES CFLAGS+= -DNO_IDEA .endif But that is not sufficient, since secure/lib/libcrypto/Makefile only includes IDEA stuff, if MAKE_IDEA is defined && set to "YES". [...] if defined(MAKE_IDEA) && ${MAKE_IDEA} == YES .PATH: ${LCRYPTO_SRC}/idea .endif [...] # idea .if defined(MAKE_IDEA) && ${MAKE_IDEA} == YES SRCS+= i_ecb.c i_cbc.c i_cfb64.c i_ofb64.c i_skey.c .endif [...] .if defined(MAKE_IDEA) && ${MAKE_IDEA} == YES HDRS+= idea/idea.h .endif That's the reason, why idea.h is missing in /usr/include. Two possibilities to fix the problem: A) etc/defaults/make.conf: DMAKE_IDEA=YES secure/Makefile.inc: .if !defined(WITH_IDEA) || ${WITH_IDEA} != YES CFLAGS+= -DNO_IDEA .else CFLAGS+= -DMAKE_IDEA ^^^^^^^^^^^^^^^^^^^^ .endif B) change the whole "ifdef MAKE_IDEA" stuff in secure/lib/libcrypto/Makefile to "ifdef WITH_IDEA" -- Andreas Klemm http://people.FreeBSD.ORG/~andreas http://www.freebsd.org/~fsmp/SMP/SMP.html powered by Symmetric MultiProcessor FreeBSD New APSFILTER 542 and songs from our band - http://people.freebsd.org/~andreas To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message