From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 17:24:45 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 95B7116A4CE for ; Tue, 30 Dec 2003 17:24:45 -0800 (PST) Received: from wrongcrowd.com (dsl231-036-178.sea1.dsl.speakeasy.net [216.231.36.178]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0AA7E43D3F for ; Tue, 30 Dec 2003 17:24:44 -0800 (PST) (envelope-from matt@wrongcrowd.com) Received: from localhost ([::1] helo=wrongcrowd.com ident=nobody) by wrongcrowd.com with smtp (Exim 4.20) id 1AbV69-0006SF-H2 for freebsd-questions@freebsd.org; Tue, 30 Dec 2003 17:24:33 -0800 Received: from 207.46.125.17 (SquirrelMail authenticated user matt) by wrongcrowd.com with HTTP; Tue, 30 Dec 2003 17:24:33 -0800 (PST) Message-ID: <32412.207.46.125.17.1072833873.squirrel@wrongcrowd.com> In-Reply-To: <20031230001739.A264E16A4D5@hub.freebsd.org> References: <20031230001739.A264E16A4D5@hub.freebsd.org> Date: Tue, 30 Dec 2003 17:24:33 -0800 (PST) From: "Matt Staroscik" To: freebsd-questions@freebsd.org User-Agent: SquirrelMail/1.4.2 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal X-Scanner: exiscan for exim4 (http://duncanthrax.net/exiscan/) *1AbV69-0006SF-H2*H7G83nKHpmM* Subject: x10d X10 interface controller: not compiling (4.9) (Also: other X10 apps?) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: matt@wrongcrowd.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2003 01:24:45 -0000 I am trying to get a CM11A X10 interface wired into my FreeBSD server. It looks like most of the software out there relies on "x10d," which is only available as source code: ftp://ftp.danlan.com/ftp.danlan.com/homeauto/x10d.cm11.txt Karl Denninger's site advises adding this to get the code to compile under FreeBSD: #include (ref: http://www.denninger.net/homedaemon.htm) I make the change and compile like: cc -o x10d sourcecode.c ... which produces these warnings: x10d.c: In function `main': x10d.c:192: warning: passing arg 2 of `bind' from incompatible pointer type x10d.c:231: warning: passing arg 2 of `accept' from incompatible pointer type The resulting "x10d" binary file silently exits when run. I know beans about C, it's been many years since I had to do even the most trivial stuff with it. Where should I start to get this code working? Are there any other X10 apps I should try? I currently have BLueLava and Flipit running with a "firecracker" RF X10 module but I want to start playing with the 2-way capabilities of the CM11A. TIA! -- matt@wrongcrowd.com