From owner-freebsd-hackers@FreeBSD.ORG Thu Oct 24 03:32:15 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id E5C44AFB for ; Thu, 24 Oct 2013 03:32:14 +0000 (UTC) (envelope-from toasty@dragondata.com) Received: from mail-yh0-x235.google.com (mail-yh0-x235.google.com [IPv6:2607:f8b0:4002:c01::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A45F72559 for ; Thu, 24 Oct 2013 03:32:14 +0000 (UTC) Received: by mail-yh0-f53.google.com with SMTP id z20so700843yhz.40 for ; Wed, 23 Oct 2013 20:32:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dragondata.com; s=google; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=7den9KoU7io+u6qRLV1bOIQBzqfPvO0SO8yU7V4Z20c=; b=GbUM0xygspVgXEiyaym+NaGkzEEliNBYQmHrnqfXY8iMK+G2VVk+YwdCKgz7Ac0RG+ xBaExaLo71TfPiEoTvPPSWr0DlZMlZA31WTw0TK+3tlfqvKm51wL1fmgfMOYyoz1PDm2 iTKpNZQzQTvYOoPbEA5I5Ezo93gmSjkeHNbCY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=7den9KoU7io+u6qRLV1bOIQBzqfPvO0SO8yU7V4Z20c=; b=nANP4cZndUe0gaIejb3Ozv6dK3i1Xfcx12Qr+2h+uDIusqQltZtdtBn1znBC4rLoXg RkFx3bQ2CDMZ8AfhBg34BWnaBAUx4BVvAp0Za9dYClgY94fFq6yrfBnb6jNVUau6vzL1 0WlTkySv6KOnwIp9v8WV0DpWeu1DmihKr7qNGcTUrDO7axMguMt9iiRfOgbfHYXqsV4i 76PdjhgYEhqsBeJ2r0RIaS77PN1MkxdtcgEgKnYcQ7rfXWkw0TZQiptYzwOfsYsOIGIO 69yMCUFpEoCeGgs/deRc5lqZWC6wxuh43xPfp+3i1qzo5WOoE1AkR3ANTWhvtA/0z/ng h25g== X-Gm-Message-State: ALoCoQnF6JkIW6XRCnwsQqWkFbIM/xdxnUIMuNC7OjfC/cQjVJOclDXkv4oSZvkCbkfeiQr57wsv X-Received: by 10.236.139.198 with SMTP id c46mr362451yhj.78.1382585533592; Wed, 23 Oct 2013 20:32:13 -0700 (PDT) Received: from unassigned.v6.your.org ([2001:4978:1:45:b5b6:f351:31fb:459f]) by mx.google.com with ESMTPSA id w8sm50130246yhg.8.2013.10.23.20.32.12 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 23 Oct 2013 20:32:13 -0700 (PDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1812\)) Subject: Re: FoxPro on FreeBSD From: Kevin Day In-Reply-To: <52687ED8.6080309@mindslayer.net> Date: Wed, 23 Oct 2013 22:32:11 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <9B89077C-6BE7-49F1-9F22-19FAD9F6C3ED@dragondata.com> References: <52687ED8.6080309@mindslayer.net> To: Puppet Master X-Mailer: Apple Mail (2.1812) Cc: "freebsd-hackers@freebsd.org Hackers" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Oct 2013 03:32:15 -0000 I did some debugging, and watched how the process was getting launched, = and I've managed to get it to load! The problem was that COFF files expect to be mapped into memory at = address 0, something that processes are no longer allowed to do. Run "sysctl security.bsd.map_at_zero=3D1=94 or add = =93security.bsd.map_at_zero=3D1=93 to /etc/sysctl.conf and you should = have it working. We probably should either make an exception for COFF = files to bypass this the sysctl restriction, or at least print a more = helpful error than just letting the process segfault because it didn=92t = get mapped where it was supposed to go. =97 Kevin On Oct 23, 2013, at 8:58 PM, Puppet Master = wrote: > Hello, >=20 > A couple of years ago I posted a message on the forums, regarding = getting FoxPro (for SCO Unix) working on FreeBSD. The direct link to the = forum is here: > http://forums.freebsd.org/showthread.php?t=3D19764 >=20 > =46rom version 2.2.8 to 7.4 of FreeBSD this has worked flawlessly, but = ceased to run with version 8.1. >=20 > I would really love for this to continue working with future versions = but have not found anyone that can help. A few days ago I received a = private message on the forum requesting that I please post to hackers@ = to see if anyone could help. The idea being that "Its unlikely the SCO = binaries get tested very regularly." >=20 > So here I am. In case anyone wants to test the FoxPro for FreeBSD, = you can download my Perl script that installs it from here: = http://www.at-vantage.com/foxfiles/foxp_install.txt >=20 > (rename the foxp_install.txt to foxp_install.pl). > This checks for i386, FreeBSD version before installing so if you plan = on testing it on 8.1 or above, you may need to modify the script and = comment out the sections that check for that. >=20 > I do hope that someone can help, it would be great if the SCO binary = for FoxPro would function again. >=20 > Thanks. >=20 >=20 > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to = "freebsd-hackers-unsubscribe@freebsd.org"