From owner-freebsd-ports@FreeBSD.ORG Thu Jun 4 03:24:09 2009 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 3E33D106564A for ; Thu, 4 Jun 2009 03:24:09 +0000 (UTC) (envelope-from bf2006a@yahoo.com) Received: from web39108.mail.mud.yahoo.com (web39108.mail.mud.yahoo.com [209.191.87.227]) by mx1.freebsd.org (Postfix) with SMTP id 04A728FC17 for ; Thu, 4 Jun 2009 03:24:08 +0000 (UTC) (envelope-from bf2006a@yahoo.com) Received: (qmail 31409 invoked by uid 60001); 4 Jun 2009 02:57:27 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1244084247; bh=S06anl20Zc2WgLmKBtRiKhRRB6JY2PaxzCv9NJailas=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:MIME-Version:Content-Type; b=SMmNrUhQ5ydcyNsNs3H4pgTDsyxuWBJjPkLaXx/YmGTNOfRMNC4dLH6WFShA4BsMdY3lsPlNtyn7XmUg8pIyxgb4IM3wWThuO40QKctbI77dmo5UNQLUm7aAkVKR1+QoZT4CvRD1DE7NGtHHEJwXW/LrkCZ1j177bw+JFUfesLs= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:MIME-Version:Content-Type; b=HBYfH1YGXZDUUnpjolLpqwJwtnFlRCfWcg/mr8NEkJGRYDiT3J6nT5xD/kxtccA28iXbDN36+2RVUGXAPI346HjFO5CNPsfv3kUMD04epl0vBdFKOT0RpC4/xgjctHOPe//GjE10UDLqEiyNc8sRJnnMNsOIc8a4NmWLozl6zcw=; Message-ID: <464457.31342.qm@web39108.mail.mud.yahoo.com> X-YMail-OSG: 1H9NqbwVM1nn4Mq0.SIcEE42NqlzmXhXEj4sk_fjbbeKo0G2jtinqs0ezNkaGBxlm5CGxUnvaI.oCSruD3fHNAPSKKn5bgNEj8zF8eAESADpH1K37auDYDLkoKy.GB4AR9Ofo8SgbP1y1Gfgk1ZlEKJHsC75OwG7AvFH.UBt_MUFMSMsmJDoQg3Ib_kbeiQNLadppp9jOlQHSFQgeGCwrlqWzqPwQFyUTPTtyyb4UWGgR13IT9_ode_P9FVwXwIow2eFVOmFd1EVvsaFMDwFR8YYrFfsXBpZhCYcnOP6OXmAAht2tqYA0LYzig2Sd6M7pPpv Received: from [62.141.58.13] by web39108.mail.mud.yahoo.com via HTTP; Wed, 03 Jun 2009 19:57:27 PDT X-Mailer: YahooMailClassic/5.3.9 YahooMailWebService/0.7.289.10 Date: Wed, 3 Jun 2009 19:57:27 -0700 (PDT) From: bf To: freebsd-ports@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: clint.olsen@gmail.com Subject: Re: Trouble upgrading math/fftw3 on 6.4-STABLE 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: Thu, 04 Jun 2009 03:24:09 -0000 This math/fftw3 change is turning into a PITA. First that thread last month, and now again. Maybe more people should just use packages... Clint Olsen wrote: >I got this message: > >===> Verifying install for gfortran43 in >/usr/ports/lang/gcc43 >Making GCC 4.3.4.20090524 for FreeBSD 6.4 >target=i386-portbld-freebsd6.4 >You need to increase the datasize limit to at >least 700000 (and set >kern.maxdsiz="734003200" in /boot/loader.conf) to >build with Java >support. >*** Error code 1 >Ok, so I added the appropriate flag to >/boot/loader.conf, however I wanted >to use sysctl to update the parameter without >booting. However, even >though the parameter is listed in /boot/defaults >/loader.conf, sysctl won't >accept this: ># sysctl kern.maxdsiz 734003200 >sysctl: unknown oid 'kern.maxdsiz'o >Is there a way to change this w/o rebooting? Am I >even using sysctl >correctly? There are different kinds of objects in the MIB: some can only be set at boot-time, and some can be set or changed at run-time. The first kind are called "loader tunables" in the manpages, and are managed via loader.conf, or set on the loader command line. They cannot be changed by sysctl. (Sometimes, in different versions of FreeBSD, someone will introduce new tunables, retire others, or turn a loader tunable into one that is changeable at run-time. Or a custom kernel may not even recognize some objects because it may depend on code that has not been compiled into the kernel.) Many, but unfortunately not all, of the tunables are listed in /boot/defaults/loader.conf or the loader(8) manpage; likewise for the run-time changeable objects in sysctl(8). For some you have to search the kernel source code to find out more about them. kern.maxdsize is a loader tunable, and must be set as described in the lang/gcc43 message. (Don't forget the double quotes around the value -- they're needed in loader.conf but not in sysctl.conf.) Even if you could change it, you're using the wrong syntax for the sysctl command -- you need an '=' in between the oid and the value you want to assign. See sysctl(8). As others have said, if you don't want a java compiler, DON'T build gcj -- it takes a long time, and takes up a lot of disk space and memory, which is why you need to tinker with the settings in the first place. Instead, define WITHOUT_JAVA on the make command-line for lang/gcc43 as the others mentioned, or set it in your environment during the lang/gcc43 build, or add something like: .if${.CURDIR:M*lang/gcc43*} WITHOUT_JAVA=yes .endif to /etc/make.conf. And if you really want to save time, network traffic, and disk space, and you don't need to use math/fftw3 with Fortran programs, then build math/fftw3 WITHOUT_FORTRAN, by changing math/fftw3's FORTRAN option to 'off' via 'make config'. Then you won't have to install lang/gcc43, with or without gcj. b.