From owner-freebsd-hackers@FreeBSD.ORG Thu Oct 24 05:54:52 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 6F6ACEE2 for ; Thu, 24 Oct 2013 05:54:52 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from anubis.delphij.net (anubis.delphij.net [IPv6:2001:470:1:117::25]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3FD3E2B06 for ; Thu, 24 Oct 2013 05:54:52 +0000 (UTC) Received: from delphij-macbook.local (unknown [IPv6:2001:470:83bf:0:9080:b94f:95b7:ed12]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by anubis.delphij.net (Postfix) with ESMTPSA id CEF732A3D8; Wed, 23 Oct 2013 22:54:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=delphij.net; s=anubis; t=1382594091; bh=2NudMPIzkXk2wME9emKD/pcBGYGxdmEK4O5IGzU7yZ8=; h=Date:From:Reply-To:To:CC:Subject:References:In-Reply-To; b=4WoYNEsRT/lCEcfx7ANQ/rR5fZo6vmiIc/yNX+bLA6rN8lBBDvRmkqCOOeW2paQ/t o+jxNtGV4nGCR18Q4ytePFCTQWgvOUiqSS/pAQZIC2f+MxQ1XMMRDNY/F6LczNGtmA Q0iklSaqf8eZ3uDXd16BWQaeFLBOgY4Zl5EMyHMU= Message-ID: <5268B62B.3000104@delphij.net> Date: Wed, 23 Oct 2013 22:54:51 -0700 From: Xin Li Organization: The FreeBSD Project MIME-Version: 1.0 To: Kevin Day , Puppet Master Subject: Re: FoxPro on FreeBSD References: <52687ED8.6080309@mindslayer.net> <9B89077C-6BE7-49F1-9F22-19FAD9F6C3ED@dragondata.com> In-Reply-To: <9B89077C-6BE7-49F1-9F22-19FAD9F6C3ED@dragondata.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Cc: "freebsd-hackers@freebsd.org Hackers" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: d@delphij.net 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 05:54:52 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On 10/23/13, 8:32 PM, Kevin Day wrote: > 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=1” or add > “security.bsd.map_at_zero=1“ 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’t get mapped where it was supposed to go. Wow, this is impressive find, indeed! Do they need to do the map at startup only, or do they want to explicitly map something at address 0 during runtime? > — Kevin > > > On Oct 23, 2013, at 8:58 PM, Puppet Master > wrote: > >> Hello, >> >> 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=19764 >> >> From version 2.2.8 to 7.4 of FreeBSD this has worked flawlessly, >> but ceased to run with version 8.1. >> >> 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." >> >> 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 >> >> (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. >> >> I do hope that someone can help, it would be great if the SCO >> binary for FoxPro would function again. >> >> Thanks. >> >> >> _______________________________________________ >> 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" > > _______________________________________________ > 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" > -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJSaLYrAAoJEJW2GBstM+nsLJUQAKrSrqgBcMmzlURu9XFWedCc pcr9HyqNqssb2h0P1EiSZAOt39LccXtbyWRLghwxfNUc3UPsb9ShFBVKia4LJiqe H8yqgbg2cw8SKLpYthTVfKKxqR1wKiaV0NN8Hh6ZMuo5Hp0X/Dkd83VHoZNy8aY0 WjAOTpUs094hC8PtA9SfnH+BWzFxse6IXqAQtL/XUwfRkrZWCxoReUvgDgKdDDju uoQtmykVM2tMF+HwdAKOIcK8WiBNzTZDoNt0R0F+VbXOLDG+ziNJ4x70j005EOYt uClwFTVpkpMhf44xaM8PS7ta4pqO3DuhqMFSWMK6PyA/cjj4pMvwLJQDad6NViH5 pAK3XILry6Q4YxcXKM1sglPk+Vpb+/3RyW44LZAzFi0SdTAUytbaRvbRgVx5HVvl 8oi0r6DOjYQTAHyU0r+I4uZy7F+btniq7ul/5lqiIx4q+o5xWlQXnDzY+tvh7gJg LkkDWUuJVfQPpAFRbsSU7c0RsoucR9yzviaEvVKn3pxGasOTpJCgnZQB46K+F0yy v5vYCNpYvUxsz7dm16BgneqlHONnuj61uGf93/bhoB1wMOV/cjdwZDjwBTiry0X8 OLTwQwB9wXgWNA+m9/pe1AzZPj6admr7KDeQsSw+TsPHquwiJzqp5mDfM73g4m+m LK18ePNLK2SWq8HSUbYM =3qLK -----END PGP SIGNATURE-----