logo       

Re: ANNOUNCE ex11 release two: msg#00257

lang.erlang.general

Subject: Re: ANNOUNCE ex11 release two

"Vlad Dumitrescu" <vlad_dumitrescu@xxxxxxxxxxx> writes:

> One problem though: it doesn't work for me :-)
>
> It tries to initialize the X server, and seemingly hangs after displaying the

As far as I can see all "bullet proof" xlibs use unix-domain
sockets. TCP-based ones never work on my computers.

So here is a small ex11 patch that adds support for using unix-domain
sockets. This makes it work on my Debian box at least. This uses unix
sockets only if a) the 'unixdom2' module is loadable and b) the
DISPLAY is of the form ":0.0" (i.e. has number but no host).

It requires Scott Fritchie's unixdom-0.1 from erlang.org
contributions. To make that compile you need to add
$ERL/usr/include/obsolete/ to CFLAGS to find driver.h (patch for that
attached too.)

Attachment: ex11-unixdom.patch
Description: unix domain sockets for ex11

--- unixdom-0.1/src/Makefile 2001-09-19 04:33:15.000000000 +0200
+++ /home/luke/src/unixdom-0.1/src/Makefile 2004-01-22 14:42:53.000000000
+0100
@@ -6,7 +6,7 @@
CPPFLAGS=
LDFLAGS=
LIBS=
-CFLAGS=-g -I$(ERLDIR)/usr/include
+CFLAGS=-g -I$(ERLDIR)/usr/include -I$(ERLDIR)/usr/include/obsolete

ERL=erl
ERLC=erlc
@@ -47,7 +47,7 @@
ERL_FLAGS =

DRIVER_H_DIR = /usr/local/lib/erlang/usr/include
-CFLAGS = -g -I$(DRIVER_H_DIR) -DNEED_EXTRA_FUNCS -Wall -pedantic
+CFLAGS += -g -I$(DRIVER_H_DIR) -DNEED_EXTRA_FUNCS -Wall -pedantic

.SUFFIXES: .jam .beam .erl .so .c

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise