From owner-freebsd-ports@FreeBSD.ORG Sun Aug 20 11:40:43 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7EC8E16A4E6 for ; Sun, 20 Aug 2006 11:40:43 +0000 (UTC) (envelope-from simon@zaphod.nitro.dk) Received: from mx.nitro.dk (zarniwoop.nitro.dk [83.92.207.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id EDCFC43D46 for ; Sun, 20 Aug 2006 11:40:42 +0000 (GMT) (envelope-from simon@zaphod.nitro.dk) Received: from zaphod.nitro.dk (unknown [192.168.3.39]) by mx.nitro.dk (Postfix) with ESMTP id 5A1BF32E27F; Sun, 20 Aug 2006 11:40:41 +0000 (UTC) Received: by zaphod.nitro.dk (Postfix, from userid 3000) id 252FA11420; Sun, 20 Aug 2006 13:40:41 +0200 (CEST) Date: Sun, 20 Aug 2006 13:40:40 +0200 From: "Simon L. Nielsen" To: Beech Rintoul Message-ID: <20060820114040.GA1077@zaphod.nitro.dk> References: <200608192200.41601.beech@alaskaparadise.com> <20060820111855.GA94500@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060820111855.GA94500@xor.obsecurity.org> User-Agent: Mutt/1.5.11 Cc: freebsd-ports@freebsd.org, Kris Kennaway Subject: Re: Problem with 7-CURRENT build X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Aug 2006 11:40:43 -0000 On 2006.08.20 07:18:55 -0400, Kris Kennaway wrote: > On Sat, Aug 19, 2006 at 10:00:24PM -0800, Beech Rintoul wrote: > > I just recently adopted the port gtkjournal. The port builds fine in 6.1, but > > I get the following error when trying to build in -CURRENT: > > > > Making all in aolib > > gmake[3]: Entering directory > > `/usr/ports/deskutils/gtkjournal.orig/work/gtkjournal-0.3.5b/src/aolib' > > c++ -DHAVE_CONFIG_H -I. -I. -I../.. -DXTHREADS -DXUSE_MTSAFE_API -I/usr/local/lib/sigc++-1.2/include -I/usr/local/include/sigc++-1.2 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/cairo -I/usr/local/include/atk-1.0 -I/usr/X11R6/include/gtkmm-2.0 -I/usr/X11R6/lib/gtkmm-2.0/include -I/usr/X11R6/include/gtk-2.0 -I/usr/X11R6/lib/gtk-2.0/include -I/usr/X11R6/include/pango-1.0 -I/usr/X11R6/include -I/usr/local/include/freetype2 -I/usr/local/include -I../../src -O2 -fno-strict-aliasing -pipe -I/usr/local/include -I/usr/include/openssl -c > > bfcryptfile.cpp > > bfcryptfile.cpp: In static member function `static std::string > > aolib::BFCryptFile::hashPass(const char*, unsigned char*)': > > bfcryptfile.cpp:59: error: `SHA_DIGEST_LENGTH' undeclared (first use this > > function) > > bfcryptfile.cpp:59: error: (Each undeclared identifier is reported only once > > for each function it appears in.) > > bfcryptfile.cpp:62: error: `out' undeclared (first use this function) > > gmake[3]: *** [bfcryptfile.o] Error 1 > > > > Would someone take a look at this and give me some pointers as to what to do > > to get it to build in -CURRENT. For the time being I have an OSVERSION check > > to mark it broken on 7.0 and above. I tried contacting the developer, but his > > website seems to be down and he hasn't responded to my email. I'd really like > > to get this working and any help would be appreciated. > > It's to do with the new OpenSSL version. Presumably you need to fix > the source; simon@ might be able to help you. This looks like one of the simple cases where the program depend on "header pollution" in previous OpenSSL versions, where sha.h was pulled in by some other header, but isn't anymore in OpenSSL 0.9.8b. Try simply including openssl/sha.h in the source code in the file where the builds fail. This should work with both new and old OpenSSL so no need for special version check in the patch. See e.g. http://cvsweb.freebsd.org/ports/security/openscep/files/patch-lib_proxy.c?rev=1.1 for a similar problem in another port. -- Simon L. Nielsen