From owner-freebsd-emulation@FreeBSD.ORG Tue Mar 6 13:39:25 2012 Return-Path: Delivered-To: emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2E687106564A for ; Tue, 6 Mar 2012 13:39:25 +0000 (UTC) (envelope-from vivek@khera.org) Received: from mail-tul01m020-f182.google.com (mail-tul01m020-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id E93238FC0A for ; Tue, 6 Mar 2012 13:39:24 +0000 (UTC) Received: by obbwc7 with SMTP id wc7so8032475obb.13 for ; Tue, 06 Mar 2012 05:39:24 -0800 (PST) Received-SPF: pass (google.com: domain of vivek@khera.org designates 10.182.197.73 as permitted sender) client-ip=10.182.197.73; Authentication-Results: mr.google.com; spf=pass (google.com: domain of vivek@khera.org designates 10.182.197.73 as permitted sender) smtp.mail=vivek@khera.org; dkim=pass header.i=vivek@khera.org Received: from mr.google.com ([10.182.197.73]) by 10.182.197.73 with SMTP id is9mr3120993obc.33.1331041164305 (num_hops = 1); Tue, 06 Mar 2012 05:39:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=khera.org; s=google11; h=mime-version:date:message-id:subject:from:to:content-type; bh=c/lRPipSPEvox2GKVym0kh+N6QO410oP+1SHaKrk8Mk=; b=VDSxDKBUhmNt81gouKvHU3a74BeLw8ZL4suL0XCA9b3SbjwVFaF49ZkF8dChjmXYLb oKKZOCaVJ1VabSGTCDolZp/g9+uv0MFqTYlGqBh1NLFFB4MwTZOq0FBiNBsl0TWGIQsH 6qEiE4gG5fZ/W2qcl70XI7rxSkbHOmQLWqb2o= MIME-Version: 1.0 Received: by 10.182.197.73 with SMTP id is9mr2739200obc.33.1331041164246; Tue, 06 Mar 2012 05:39:24 -0800 (PST) Received: by 10.182.55.106 with HTTP; Tue, 6 Mar 2012 05:39:24 -0800 (PST) Date: Tue, 6 Mar 2012 08:39:24 -0500 Message-ID: From: Vick Khera To: emulation@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQkNzkggIi1QgCDtJWcfVNh3E5J7rUgQr8MyPcU/jWtiTdYezKJ3Atf3KNFphnVe4YFKYVjn Cc: Subject: errors running powermta in linuxalator 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: Tue, 06 Mar 2012 13:39:25 -0000 I'm evaluating the PowerMTA software, which comes as a linux i686 RPM. Under FreeBSD 9.0 with the linuxalator loaded, and the linux_base-f10 port installed. To get this to run, I had to also extract the contents of the following RPMs: pam-1.1.1 and audit-libs-2.1.3-3 which I grabbed from a CentOS 6.2 disk. When I start the daemon, it says this now: # pmtad --debug 2012-03-06 08:25:46 Startup error: Error enumerating local IP addresses: Error reading interface addresses (getifaddrs), status = EAFNOSUPPORT Luckily, they have a workaround for getifaddrs() missing in "older kernels", but then it fails because it seemingly cannot create the command socket: # env PMTA_USE_GETIFADDRS=0 pmtad --debug 2012-03-06 08:33:24 PowerMTA(TM) v4.0r5 (2012-01-04 04:04:59, 32-bit; tags/v4_0r5@13637) starting 2012-03-06 08:33:24 Copyright(c) 1999-2012, Port25 Solutions, Inc. All Rights Reserved. 2012-03-06 08:33:24 Current time: Tue, 6 Mar 2012 08:33:24 -0500 2012-03-06 08:33:24 Host names: [192.168.7.96] [127.0.0.1] vk-dev.int.kcilink.com localhost.int.kcilink.com localhost 2012-03-06 08:33:24 Domain suffix: int.kcilink.com 2012-03-06 08:33:24 Name servers: 192.168.7.3 192.168.100.100 2012-03-06 08:33:24 SMTP source IP addresses: 2012-03-06 08:33:24 virtual MTA "{default}": (any local) 2012-03-06 08:33:24 Domain Keys: 2012-03-06 08:33:24 OS: Linux 2.6.16 (Fedora release 10 (Cambridge)) 2012-03-06 08:33:24 glibc v2.9 (stable), NPTL 2.9 2012-03-06 08:33:24 OpenSSL 1.0.0d 8 Feb 2011 2012-03-06 08:33:24 1/1 CPU (i686) 2012-03-06 08:33:24 -1 MB memory detected (-1 MB usable) 2012-03-06 08:33:24 Priority nice range: min. 15, max. 0 2012-03-06 08:33:24 Use of realtime priorities disabled 2012-03-06 08:33:24 Max. opened files: 230400, max. threads: infinite 2012-03-06 08:33:24 Max. virtual memory: unlimited, max. data size: 536870912 2012-03-06 08:33:24 Using license key XXXXXXXXXXXXXXXXXXX 2012-03-06 08:33:24 Spool initialization starting 2012-03-06 08:33:24 Spool /var/spool/pmta 2012-03-06 08:33:24 0 files, 0 directories, nextDir=0 2012-03-06 08:33:24 Total of 0 files in use 2012-03-06 08:33:24 Maximum number of recipients (based on system resources): -750 2012-03-06 08:33:24 Running under user root (uid 0); group wheel (gid 0), other group(s): kmem, sys, tty, operator 2012-03-06 08:33:24 Resolver: multi, 4 dispatchers 2012-03-06 08:33:24 SMTP Listener at 0.0.0.0:25 starting 2012-03-06 08:33:24 SMTP Listener at 0.0.0.0:25 stopped 2012-03-06 08:33:25 Stopping remaining threads... 2012-03-06 08:33:25 Startup error: Error starting thread: Error binding to unix socket /var/run/pmta/command, status = ENOENT Note also that it detects "-1 MB memory" which is weird... must be another missing system call. At this point, it seems I will have to actually run a CentOS machine to use this software, which saddens me to no end.. but this is not the place to gripe about how painful that is. Anyhow, are these issues worth filing PR's? Also, is there some technical reason that the linuxalator base is x86 and not available in 64-bit variant? The PowerMTA software also comes as 64-bit which increases the memory it can use.