x10d X10 interface controller: not compiling (4.9) (Also: other X10 apps?)

Matt Staroscik matt at wrongcrowd.com
Tue Dec 30 17:24:45 PST 2003

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:


Karl Denninger's site advises adding this to get the code to compile under

#include <sgtty.h>

(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.

matt at wrongcrowd.com

More information about the freebsd-questions mailing list