Hello Anselm, 

I fetched libixp, wmii (and dmenu, dwm, wmii-3) again and 
gave libixp and wmii another try today. On libixp I have 
problems with the unnamed union/structs, in wmii there are 
two return(void) and another unnamed union. Removing these 
(see attached diff) makes it compile (with some warnings, 
see attached logs). However upon startup of wmii the wmiiwm 
segfaults on access via ixpc (one can try starting wmiiwm 
alone and issuing ixpc ls / on its socket; segfault as well).
I wonder what to do with these unnamed unions/structs...
(or is the bug elsewhere?).

Regards,
Stefan

-- 
GMX DSL-Flatrate 0,- Euro* - Überall, wo DSL verfügbar ist!
NEU: Jetzt bis zu 16.000 kBit/s! http://www.gmx.net/de/go/dsl
Common subdirectories: 2006-10-17.org//dmenu and 2006-10-17//dmenu
Common subdirectories: 2006-10-17.org//dwm and 2006-10-17//dwm
Common subdirectories: 2006-10-17.org//libixp and 2006-10-17//libixp
Common subdirectories: 2006-10-17.org//wmii and 2006-10-17//wmii
Common subdirectories: 2006-10-17.org//wmii-3 and 2006-10-17//wmii-3
diff -ru 2006-10-17.org//dmenu/config.mk 2006-10-17//dmenu/config.mk
--- 2006-10-17.org//dmenu/config.mk     Thu Oct 12 13:00:01 2006
+++ 2006-10-17//dmenu/config.mk Tue Oct 17 17:03:52 2006
@@ -15,11 +15,16 @@
 LIBS = -L/usr/lib -lc -L${X11LIB} -lX11
 
 # flags
-CFLAGS = -Os ${INCS} -DVERSION=\"${VERSION}\"
-LDFLAGS = ${LIBS}
+#CFLAGS = -Os ${INCS} -DVERSION=\"${VERSION}\"
+#LDFLAGS = ${LIBS}
 #CFLAGS = -g -Wall -O2 ${INCS} -DVERSION=\"${VERSION}\"
 #LDFLAGS = -g ${LIBS}
 
+# Solaris
+CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
+LDFLAGS = ${LIBS}
+CFLAGS += -xtarget=ultra
+
 # compiler and linker
 CC = cc
 LD = ${CC}
Only in 2006-10-17.org//dmenu: dmenu
Only in 2006-10-17.org//dmenu: draw.o
Only in 2006-10-17.org//dmenu: main.o
Only in 2006-10-17.org//dmenu: util.o
Only in 2006-10-17//dwm: config.h
diff -ru 2006-10-17.org//dwm/config.mk 2006-10-17//dwm/config.mk
--- 2006-10-17.org//dwm/config.mk       Mon Oct 16 17:00:02 2006
+++ 2006-10-17//dwm/config.mk   Tue Oct 17 17:04:14 2006
@@ -15,11 +15,16 @@
 LIBS = -L/usr/lib -lc -L${X11LIB} -lX11
 
 # flags
-CFLAGS = -Os ${INCS} -DVERSION=\"${VERSION}\"
-LDFLAGS = ${LIBS}
+#CFLAGS = -Os ${INCS} -DVERSION=\"${VERSION}\"
+#LDFLAGS = ${LIBS}
 #CFLAGS = -g -Wall -O2 ${INCS} -DVERSION=\"${VERSION}\"
 #LDFLAGS = -g ${LIBS}
 
+# Solaris
+CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
+LDFLAGS = ${LIBS}
+CFLAGS += -xtarget=ultra
+
 # compiler and linker
 CC = cc
 LD = ${CC}
diff -ru 2006-10-17.org//libixp/config.mk 2006-10-17//libixp/config.mk
--- 2006-10-17.org//libixp/config.mk    Thu Oct 12 17:00:02 2006
+++ 2006-10-17//libixp/config.mk        Tue Oct 17 17:04:37 2006
@@ -12,11 +12,17 @@
 LIBS = -L/usr/lib -lc -L.
 
 # flags
-CFLAGS = -Os ${INCS} -DVERSION=\"${VERSION}\"
-LDFLAGS = ${LIBS}
+#CFLAGS = -Os ${INCS} -DVERSION=\"${VERSION}\"
+#LDFLAGS = ${LIBS}
 #CFLAGS = -g -Wall -O2 ${INCS} -DVERSION=\"${VERSION}\"
 #LDFLAGS = -g ${LIBS}
 
+# Solaris
+CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
+LDFLAGS = ${LIBS}
+LIBS += -lsocket -lnsl
+CFLAGS += -xtarget=ultra
+
 # compiler and linker
 AR = ar cr
 CC = cc
diff -ru 2006-10-17.org//libixp/ixp.h 2006-10-17//libixp/ixp.h
--- 2006-10-17.org//libixp/ixp.h        Thu Oct 12 17:00:02 2006
+++ 2006-10-17//libixp/ixp.h    Tue Oct 17 17:10:22 2006
@@ -159,54 +159,54 @@
        unsigned char type;
        unsigned short tag;
        unsigned int fid;
-       union {
-               struct { /* Tversion, Rversion */
+//     union {
+//             struct { /* Tversion, Rversion */
                        unsigned int msize;
                        char    *version;
-               };
-               struct { /* Tflush */
+//             };
+//             struct { /* Tflush */
                        unsigned short oldtag;
-               };
-               struct { /* Rerror */
+//             };
+//             struct { /* Rerror */
                        char *ename;
-               };
-               struct { /* Ropen, Rcreate */
+//             };
+//             struct { /* Ropen, Rcreate */
                        Qid qid; /* +Rattach */
                        unsigned int iounit;
-               };
-               struct { /* Rauth */
+//             };
+//             struct { /* Rauth */
                        Qid aqid;
-               };
-               struct { /* Tauth, Tattach */
+//             };
+//             struct { /* Tauth, Tattach */
                        unsigned int    afid;
                        char            *uname;
                        char            *aname;
-               };
-               struct { /* Tcreate */
+//             };
+//             struct { /* Tcreate */
                        unsigned int    perm;
                        char            *name;
                        unsigned char   mode; /* +Topen */
-               };
-               struct { /* Twalk */
+//             };
+//             struct { /* Twalk */
                        unsigned int    newfid;
                        unsigned short  nwname;
                        char    *wname[IXP_MAX_WELEM];
-               };
-               struct { /* Rwalk */
+//             };
+//             struct { /* Rwalk */
                        unsigned short  nwqid;
                        Qid     wqid[IXP_MAX_WELEM];
-               };
-               struct { /* Twrite */
+//             };
+//             struct { /* Twrite */
                        unsigned long long      offset; /* +Tread */
                        /* +Rread */
                        unsigned int    count; /* +Tread */
                        char            *data;
-               };
-               struct { /* Twstat, Rstat */
+//             };
+//             struct { /* Twstat, Rstat */
                        unsigned short  nstat;
                        unsigned char   *stat;
-               };
-       };
+//             };
+//     };
 } Fcall;
 
 typedef struct IXPServer IXPServer;
diff -ru 2006-10-17.org//wmii/config.mk 2006-10-17//wmii/config.mk
--- 2006-10-17.org//wmii/config.mk      Mon Oct 16 15:00:04 2006
+++ 2006-10-17//wmii/config.mk  Tue Oct 17 17:19:29 2006
@@ -16,11 +16,17 @@
 LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 -L${PREFIX}/lib -lixp -lm
 
 # flags
-CFLAGS = -Os ${INCS} -DVERSION=\"${VERSION}\"
-LDFLAGS = ${LIBS}
+#CFLAGS = -Os ${INCS} -DVERSION=\"${VERSION}\"
+#LDFLAGS = ${LIBS}
 #CFLAGS = -g -Wall -O2 ${INCS} -DVERSION=\"${VERSION}\"
 #LDFLAGS = -g ${LIBS}
 
+# Solaris
+CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
+LDFLAGS = ${LIBS}
+LDFLAGS += -lsocket -lnsl
+CFLAGS += -xtarget=ultra
+
 # compiler and linker
 CC = cc
 LD = ${CC}
diff -ru 2006-10-17.org//wmii/event.c 2006-10-17//wmii/event.c
--- 2006-10-17.org//wmii/event.c        Thu Oct 12 17:00:04 2006
+++ 2006-10-17//wmii/event.c    Tue Oct 17 17:16:55 2006
@@ -61,13 +61,17 @@
        XButtonPressedEvent *ev = &e->xbutton;
        if(ev->window == screen->barwin) {
                for(b=screen->lbar; b; b=b->next)
-                       if(ispointinrect(ev->x, ev->y, &b->brush.rect))
-                               return write_event("LeftBarClick %d %s\n",
+                       if(ispointinrect(ev->x, ev->y, &b->brush.rect)) {
+                               write_event("LeftBarClick %d %s\n",
                                                ev->button, b->name);
+                               return;
+                       }
                for(b=screen->rbar; b; b=b->next)
-                       if(ispointinrect(ev->x, ev->y, &b->brush.rect))
-                               return write_event("RightBarClick %d %s\n",
+                       if(ispointinrect(ev->x, ev->y, &b->brush.rect)) {
+                               write_event("RightBarClick %d %s\n",
                                                ev->button, b->name);
+                               return;
+                       }
        }
        else if((f = frame_of_win(ev->window))) 
                write_event("ClientClick %d %d\n", idx_of_client(f->client), 
ev->button);
diff -ru 2006-10-17.org//wmii/fs.c 2006-10-17//wmii/fs.c
--- 2006-10-17.org//wmii/fs.c   Mon Oct 16 18:00:06 2006
+++ 2006-10-17//wmii/fs.c       Tue Oct 17 17:17:17 2006
@@ -29,7 +29,7 @@
 typedef struct FileId FileId;
 struct FileId {
        FileId          *next;
-       union {
+//     union {
                void    *ref;
                char    *buf;
                Bar     *bar;
@@ -38,7 +38,7 @@
                Client  *client;
                Ruleset *rule;
                BlitzColor      *col;
-       };
+//     };
        unsigned int    id;
        unsigned int    index;
        Dirtab          tab;
Common subdirectories: 2006-10-17.org//wmii/rc and 2006-10-17//wmii/rc
diff -ru 2006-10-17.org//wmii/wmii 2006-10-17//wmii/wmii
--- 2006-10-17.org//wmii/wmii   Thu Oct 12 17:00:04 2006
+++ 2006-10-17//wmii/wmii       Tue Oct 17 17:14:10 2006
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 # start wmiiwm and wait for its termination
 
 WMII_CONFPATH="$HOME/.wmii-VERSION:CONFPREFIX/wmii-VERSION" export 
WMII_CONFPATH
diff -ru 2006-10-17.org//wmii/rc/wmiirc 2006-10-17//wmii/rc/wmiirc
--- 2006-10-17.org//wmii/rc/wmiirc      Thu Oct 12 17:00:04 2006
+++ 2006-10-17//wmii/rc/wmiirc  Tue Oct 17 17:13:06 2006
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 # configure wmii
 
 xwrite() {
Common subdirectories: 2006-10-17.org//wmii-3/cmd and 2006-10-17//wmii-3/cmd
diff -ru 2006-10-17.org//wmii-3/config.mk 2006-10-17//wmii-3/config.mk
--- 2006-10-17.org//wmii-3/config.mk    Tue Jun 27 06:00:03 2006
+++ 2006-10-17//wmii-3/config.mk        Tue Oct 17 17:07:32 2006
@@ -14,13 +14,16 @@
 LIBS = -L${PREFIX}/lib -L/usr/lib -lc -L${X11LIB} -lX11
 
 # Linux/BSD
-CFLAGS = -g -I. -I${PREFIX}/include -I/usr/include -I${X11INC} \
-       -DVERSION=\"${VERSION}\"
-LDFLAGS = -g ${LIBS}
+#CFLAGS = -g -I. -I${PREFIX}/include -I/usr/include -I${X11INC} \
+#      -DVERSION=\"${VERSION}\"
+#LDFLAGS = -g ${LIBS}
 
 # Solaris
-#CFLAGS = -fast -xtarget=ultra ${INCLUDES} -DVERSION=\"${VERSION}\"
-#LIBS += -lnsl -lsocket
+CFLAGS = -fast -I. -I${PREFIX}/include -I/usr/include -I${X11INC} \
+       -DVERSION=\"${VERSION}\"
+LDFLAGS = ${LIBS}
+LIBS += -lsocket -lnsl
+CFLAGS += -xtarget=ultra
 
 AR = ar cr
 CC = cc
Common subdirectories: 2006-10-17.org//wmii-3/doc and 2006-10-17//wmii-3/doc
Common subdirectories: 2006-10-17.org//wmii-3/extra and 2006-10-17//wmii-3/extra
Common subdirectories: 2006-10-17.org//wmii-3/libcext and 
2006-10-17//wmii-3/libcext
Common subdirectories: 2006-10-17.org//wmii-3/libixp and 
2006-10-17//wmii-3/libixp
Common subdirectories: 2006-10-17.org//wmii-3/liblitz and 
2006-10-17//wmii-3/liblitz
Common subdirectories: 2006-10-17.org//wmii-3/rc and 2006-10-17//wmii-3/rc
Common subdirectories: 2006-10-17.org//wmii-3/test and 2006-10-17//wmii-3/test
Common subdirectories: 2006-10-17.org//wmii-3/cmd/wm and 
2006-10-17//wmii-3/cmd/wm
Common subdirectories: 2006-10-17.org//wmii-3/extra/p9p and 
2006-10-17//wmii-3/extra/p9p
libixp build options:
CFLAGS   = -fast -I. -I/usr/include -DVERSION="0.1" -xtarget=ultra
LDFLAGS  = -L/usr/lib -lc -L. -lsocket -lnsl
CC       = cc
LD       = cc
CC client.c
"ixp.h", line 52: warning: enumerator value overflows INT_MAX (2147483647)
CC convert.c
"ixp.h", line 52: warning: enumerator value overflows INT_MAX (2147483647)
CC intmap.c
"ixp.h", line 52: warning: enumerator value overflows INT_MAX (2147483647)
CC message.c
"ixp.h", line 52: warning: enumerator value overflows INT_MAX (2147483647)
"message.c", line 34: warning: pointer to void or function used in arithmetic
CC request.c
"ixp.h", line 52: warning: enumerator value overflows INT_MAX (2147483647)
CC server.c
"ixp.h", line 52: warning: enumerator value overflows INT_MAX (2147483647)
CC socket.c
"ixp.h", line 52: warning: enumerator value overflows INT_MAX (2147483647)
"socket.c", line 56: warning: implicit function declaration: bcopy
CC transport.c
"ixp.h", line 52: warning: enumerator value overflows INT_MAX (2147483647)
"transport.c", line 22: warning: pointer to void or function used in arithmetic
"transport.c", line 41: warning: pointer to void or function used in arithmetic
CC util.c
"ixp.h", line 52: warning: enumerator value overflows INT_MAX (2147483647)
AR libixp.a
CC ixpc.c
"./ixp.h", line 52: warning: enumerator value overflows INT_MAX (2147483647)
"ixpc.c", line 185: warning: pointer to void or function used in arithmetic
LD ixpc
wmii build options:
CFLAGS   = -fast -I. -I/usr/local/include -I/usr/include -I/usr/X11R6/include 
-DVERSION="3.5" -xtarget=ultra
LDFLAGS  = -L/usr/lib -lc -L/usr/X11R6/lib -lX11 -L/usr/local/lib -lixp -lm 
-lsocket -lnsl
CC       = cc
LD       = cc
CC area.c
"/usr/local/include/ixp.h", line 52: warning: enumerator value overflows 
INT_MAX (2147483647)
CC bar.c
"/usr/local/include/ixp.h", line 52: warning: enumerator value overflows 
INT_MAX (2147483647)
CC client.c
"/usr/local/include/ixp.h", line 52: warning: enumerator value overflows 
INT_MAX (2147483647)
CC column.c
"/usr/local/include/ixp.h", line 52: warning: enumerator value overflows 
INT_MAX (2147483647)
CC draw.c
"/usr/local/include/ixp.h", line 52: warning: enumerator value overflows 
INT_MAX (2147483647)
CC event.c
"/usr/local/include/ixp.h", line 52: warning: enumerator value overflows 
INT_MAX (2147483647)
CC frame.c
"/usr/local/include/ixp.h", line 52: warning: enumerator value overflows 
INT_MAX (2147483647)
CC fs.c
"/usr/local/include/ixp.h", line 52: warning: enumerator value overflows 
INT_MAX (2147483647)
"fs.c", line 185: warning: pointer to void or function used in arithmetic
"fs.c", line 211: warning: pointer to void or function used in arithmetic
"fs.c", line 234: warning: implicit function declaration: bcopy
CC geom.c
"/usr/local/include/ixp.h", line 52: warning: enumerator value overflows 
INT_MAX (2147483647)
CC key.c
"/usr/local/include/ixp.h", line 52: warning: enumerator value overflows 
INT_MAX (2147483647)
CC mouse.c
"/usr/local/include/ixp.h", line 52: warning: enumerator value overflows 
INT_MAX (2147483647)
CC rule.c
"/usr/local/include/ixp.h", line 52: warning: enumerator value overflows 
INT_MAX (2147483647)
CC view.c
"/usr/local/include/ixp.h", line 52: warning: enumerator value overflows 
INT_MAX (2147483647)
CC wm.c
"/usr/local/include/ixp.h", line 52: warning: enumerator value overflows 
INT_MAX (2147483647)
LD wmiiwm

Reply via email to