Compiling AOLserver 4.0.10 on Linux (Debian unstable) with GCC 4.0
fails like this:

conn.c: In function 'NsTclConnObjCmd':
conn.c:843: error: invalid lvalue in assignment
make[1]: *** [conn.o] Error 1
make[1]: Leaving directory `/home/vinod/temp/aolserver-4.0.10/nsd'
make: *** [all] Error 1

This seems to be a change in GCC 4.0.
http://mail.gnome.org/archives/gnome-accessibility-devel/2005-January/msg00004.html

Applying this patch to nsd/conn.c fixes it.

--- nsd/conn.c~ 2003-08-05 15:56:05.000000000 -0400
+++ nsd/conn.c  2005-08-01 12:08:38.000000000 -0400
@@ -840,7 +840,7 @@
    }

    result  = Tcl_GetObjResult(interp);
-    connPtr = (Conn *) conn = itPtr->conn;
+    connPtr = conn = (Conn *) itPtr->conn;

    /*
     * Only the "isconnected" option operates without a conn.



Vinod


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.

Reply via email to