From owner-freebsd-emulation@FreeBSD.ORG Wed Mar 23 08:52:44 2011 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B114C10656A4 for ; Wed, 23 Mar 2011 08:52:44 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) by mx1.freebsd.org (Postfix) with ESMTP id 658E18FC1C for ; Wed, 23 Mar 2011 08:52:44 +0000 (UTC) Received: from outgoing.leidinger.net (p5B15586F.dip.t-dialin.net [91.21.88.111]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id E288D844015; Wed, 23 Mar 2011 09:52:35 +0100 (CET) Received: from webmail.leidinger.net (webmail.Leidinger.net [IPv6:fd73:10c7:2053:1::2:102]) by outgoing.leidinger.net (Postfix) with ESMTP id F39E512B9; Wed, 23 Mar 2011 09:52:32 +0100 (CET) Received: (from www@localhost) by webmail.leidinger.net (8.14.4/8.13.8/Submit) id p2N8qMNR068354; Wed, 23 Mar 2011 09:52:22 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from pslux.ec.europa.eu (pslux.ec.europa.eu [158.169.9.14]) by webmail.leidinger.net (Horde Framework) with HTTP; Wed, 23 Mar 2011 09:52:22 +0100 Message-ID: <20110323095222.15512vskwxouiqkg@webmail.leidinger.net> Date: Wed, 23 Mar 2011 09:52:22 +0100 From: Alexander Leidinger To: Alex References: <19271ad0af28730d9f735f955ec63db1@ahhyes.net> In-Reply-To: <19271ad0af28730d9f735f955ec63db1@ahhyes.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Dynamic Internet Messaging Program (DIMP) H3 (1.1.6) X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: E288D844015.A1A79 X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=0, required 6, autolearn=disabled) X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1301475158.22031@P1LuJ7hV002BjZQ0BpYDIA X-EBL-Spam-Status: No Cc: freebsd-emulation@freebsd.org Subject: Re: linux app wont start... X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Mar 2011 08:52:44 -0000 Quoting Alex (from Wed, 23 Mar 2011 17:29:05 +1100): > Hi Guys, > > I am trying to run a battlefield 2 server on FreeBSD 8.2 with linux > emulation enabled, I have some other apps that run just fine. > > Here is the error I get: > > [game@srv ~/bf2]$ ./start.sh > Error opening terminal: xterm. > > [game@srv ~/bf2]$ echo $TERM > xterm > > I can "export TERM" and set another value but the result is always > the same it will just say "Error opening terminal " > > I have a suspicion it's to do with the termcap in the linux compat > section, not the local freebsd termcap. IMO: There is not enough info to conclude this. It is not obvious which shell is used to execute start.sh (linux shell or FreeBSD shell). To determine this we need to see the first line of the script. I would expect a FreeBSD one is started and I would suggest to try a linux one instead. Did you see any messages on the console (run "dmesg" after a failed start and have a look for unusual output). I would also suggest to have "set -x" as the second line in the script, this will give you a trace what is executed. The output needs to be reviewed then to analyze what is going on. After a suspicious action is tracked down, this action can maybe started within ktrace and the linux_kdump port can then be used to further investigate what is going on. Bye, Alexander. -- No matter how cynical you get, it's impossible to keep up. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137