From owner-freebsd-ports@FreeBSD.ORG Tue Dec 13 12:49:37 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5DDBB1065670 for ; Tue, 13 Dec 2011 12:49:37 +0000 (UTC) (envelope-from talon@lpthe.jussieu.fr) Received: from shiva.jussieu.fr (shiva.jussieu.fr [134.157.0.129]) by mx1.freebsd.org (Postfix) with ESMTP id D384A8FC15 for ; Tue, 13 Dec 2011 12:49:36 +0000 (UTC) Received: from parthe.lpthe.jussieu.fr (parthe.lpthe.jussieu.fr [134.157.10.1]) by shiva.jussieu.fr (8.14.4/jtpda-5.4) with ESMTP id pBDCWH6a062448 ; Tue, 13 Dec 2011 13:32:17 +0100 (CET) X-Ids: 164 Received: from niobe.lpthe.jussieu.fr (niobe.lpthe.jussieu.fr [134.157.10.41]) by parthe.lpthe.jussieu.fr (Postfix) with ESMTP id 2ABE422343; Tue, 13 Dec 2011 13:32:03 +0100 (CET) Received: by niobe.lpthe.jussieu.fr (Postfix, from userid 2005) id D4E944077; Tue, 13 Dec 2011 13:32:02 +0100 (CET) Date: Tue, 13 Dec 2011 13:32:02 +0100 From: Michel Talon To: freebsd-ports@freebsd.org, "C. P. Ghost" Message-ID: <20111213123202.GA72371@lpthe.jussieu.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-Miltered: at jchkmail.jussieu.fr with ID 4EE745D1.007 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Enveloppe: 4EE745D1.007/134.157.10.1/parthe.lpthe.jussieu.fr/parthe.lpthe.jussieu.fr/ Cc: Subject: Re: Is there a port to math/reduce? 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: Tue, 13 Dec 2011 12:49:37 -0000 > the computer algebra system (CAS) REDUCE has been > released as open source software [*], but AFAICS, it has not > yet been ported to FreeBSD. Anyone with porting skills > interested to have a look? I have tried and apparently succeeded in building reduce on FreeBSD. Here is what i get: niobe% bin/redcsl Reduce (Free CSL version), 13-Dec-11 ... 1: (x+y)^4; 4 3 2 2 3 4 x + 4*x *y + 6*x *y + 4*x*y + y What i have done: downloaded reduce from subversion, then you have the choice of two lisps to build reduce psl and csl. Since i don't know how to get psl for FreeBSD i have done configure --with-csl gmake (note Gnu make). This does a lot of configuration, then builds the fox toolkit and then builds csl. Here i got two errors. One is in reduce-algebra/trunk/csl/cslbase/fns1.c One needs to add #include for example after "headers.h", otherwise timeval is unknown later on. The second is about RLIM_SAVED_MAX and RLIM_SAVED_CUR undefined in reduce-algebra/trunk/csl/cslbase/csl.c These are resource limits related to getrlimit(), which don't exist as such in FreeBSD. I have replaced the test at lines 1417 1418 by if (stackLimit != RLIMIT_VMEM) which i hope is correct. Then csl builds to the end and then reduce builds. At the end you get: Info: Recompilation complete if test -f reduce.app/Contents/reduce.img; \ then cp reduce.app/Contents/reduce.img /home/michel/pub/reduce-algebra/trunk/csl/cslbase/../../cslbuild/generated-c; \ elif test -f reduce.img; then cp reduce.img /home/michel/pub/reduce-algebra/trunk/csl/cslbase/../../cslbuild/generated-c; fi scripts/make.sh: arith: syntax error: "0>0 ? 0 : 0" I was puzzled by that, but in fact it means the build of reduce is completed. At this point you can run reduce as above. Now gmake install doesn't work and produces an infinite number of submakes. I don't know how to make a proper install. Hope this may help you to do a port .... -- Michel TALON