From owner-freebsd-questions@FreeBSD.ORG Fri Mar 5 15:47:30 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DBD1D1065698 for ; Fri, 5 Mar 2010 15:47:29 +0000 (UTC) (envelope-from me@janh.de) Received: from mailhost.uni-hamburg.de (mailhost.uni-hamburg.de [134.100.32.155]) by mx1.freebsd.org (Postfix) with ESMTP id 5D7948FC1A for ; Fri, 5 Mar 2010 15:47:29 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mailhost.uni-hamburg.de (Postfix) with ESMTP id 792E890008; Fri, 5 Mar 2010 16:47:28 +0100 (CET) X-Virus-Scanned: by University of Hamburg (RRZ/mailhost) Received: from mailhost.uni-hamburg.de ([127.0.0.1]) by localhost (mailhost.uni-hamburg.de [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ON-KHwNR35mF; Fri, 5 Mar 2010 16:47:28 +0100 (CET) Received: from pc861.math.uni-hamburg.de (pc861.math.uni-hamburg.de [134.100.222.11]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: fmjv004) by mailhost.uni-hamburg.de (Postfix) with ESMTPSA id 3A21990024; Fri, 5 Mar 2010 16:47:28 +0100 (CET) Message-ID: <4B912793.6020908@janh.de> Date: Fri, 05 Mar 2010 16:47:31 +0100 From: Jan Henrik Sylvester User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.1.8) Gecko/20100302 Thunderbird/3.0.3 MIME-Version: 1.0 To: Zbigniew Komarnicki References: <201003051402.02343.cblasius@gmail.com> <4B912246.7000905@janh.de> In-Reply-To: <4B912246.7000905@janh.de> Content-Type: multipart/mixed; boundary="------------080201060901000003070404" Cc: questions-list freebsd , Pietro Cerutti Subject: Re: Can't install octave X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Mar 2010 15:47:30 -0000 This is a multi-part message in MIME format. --------------080201060901000003070404 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 03/05/2010 16:24, Jan Henrik Sylvester wrote: > On 01/-10/-28163 20:59, Zbigniew Komarnicki wrote: >> I try to install octave (kde3, kde4 in erlier post) after fresh install >> FreeBSD 8.0 and freebsd-update to FreeBSD 8.0 p2 on i386 athlon-xp >> 1660 MHz, >> but with no success. >> >> I forgot to add that I csup-ed the ports tree today. > > If I try to rebuild x11-toolkits/fltk, I get the same error. My last > build of fltk was done before the last commit to that port. The commit > was based on this problem report: > > http://www.freebsd.org/cgi/query-pr.cgi?pr=143638 > > From the description of that pr: "Note that fltk also has the problem > of linking against its older version, so you have to deinstall the old > version to do a successful build." > > I have not tested that as I am in no immediate need to rebuild fltk. There has been one more commit on that port: http://www.freebsd.org/cgi/cvsweb.cgi/ports/x11-toolkits/fltk/files/patch-src_filename_list.cxx.diff?r1=1.4;r2=1.5;f=h That one looks suspicious because (__FreeBSD_version >= 730000) make the clauses before obsolete. Before that commit, the condition was true for 8-STABLE and 9-CURRENT, but not for 8.0-RELEASE or 7-ANYTHING. The commit was supposed to fix 7.3-RELEASE (and probably 7-STABLE) but changed the behavior for 8.0-RELEASE, too, which probably has not been intended. I guess, (__FreeBSD_version >= 730000) should be replaced by (__FreeBSD_version >= 730000 && __FreeBSD_version < 799999). The patch attached fixes the build for me on 8.0-RELEASE. (I have included the maintainer, gahr@, in Cc). Cheers, Jan Henrik --------------080201060901000003070404 Content-Type: text/plain; name="patch-fltk.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="patch-fltk.txt" diff -u x11-toolkits/fltk/files/patch-src_filename_list.cxx.orig x11-toolkits/fltk/files/patch-src_filename_list.cxx --- x11-toolkits/fltk/files/patch-src_filename_list.cxx.orig 2010-02-25 14:36:59.000000000 +0100 +++ x11-toolkits/fltk/files/patch-src_filename_list.cxx 2010-03-05 16:39:03.000000000 +0100 @@ -14,7 +14,7 @@ #ifndef HAVE_SCANDIR int n = scandir(d, list, 0, sort); -#elif defined(__hpux) || defined(__CYGWIN__) -+#elif defined(__hpux) || defined(__CYGWIN__) || (defined(__FreeBSD__) && (__FreeBSD_version >= 900006 || (__FreeBSD_version >= 800501 && __FreeBSD_version < 900000) || (__FreeBSD_version >= 730000))) ++#elif defined(__hpux) || defined(__CYGWIN__) || (defined(__FreeBSD__) && (__FreeBSD_version >= 900006 || (__FreeBSD_version >= 800501 && __FreeBSD_version < 900000) || (__FreeBSD_version >= 730000 && __FreeBSD_version < 799999))) // HP-UX, Cygwin define the comparison function like this: int n = scandir(d, list, 0, (int(*)(const dirent **, const dirent **))sort); #elif defined(__osf__) --------------080201060901000003070404--