Article delegate-en/2972 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
search
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]

Newsgroups: mail-lists.delegate-en

[DeleGate-En] Build problems under Solaris 10
07 Jun 2005 14:35:38 GMT Matthias Kurz <ptqfqbdyi-re5dixvjuhtr.ml@ml.delegate.org>



Hi.

There where some problems with redefined macros (see attached patch). 
After fixing this, there are still some errors in the build, but they
are ignored (see attached log). Is this ok (because only "replacement"
stuff is affected) ? Or should i get rid of this errors, too ?


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +00 000 00 00f 47
  >> Im prämotorischen Cortex kann jeder ein Held sein. (bdw) <<

Index: maker/_-poll.c
===================================================================
RCS file: /cvs/opkg/vendor_stuff/delegate/maker/_-poll.c,v
retrieving revision 1.1.1.1
diff -u -u -r1.1.1.1 _-poll.c
--- maker/_-poll.c	6 Jun 2005 15:53:41 -0000	1.1.1.1
+++ maker/_-poll.c	7 Jun 2005 06:55:38 -0000
@@ -10,8 +10,8 @@
 #include <errno.h>
 #include "vsocket.h"
 #include "yselect.h" /* FD_SETSIZE */
-int syslog_ERROR(const char fmt*,...);
-int syslog_DEBUG(const char fmt*,...);
+int syslog_ERROR(const char *fmt,...);
+int syslog_DEBUG(const char *fmt,...);
 
 static int _gotRESET = -1;
 int connRESETbypeer(){ return _gotRESET; }
Index: src/X.c
===================================================================
RCS file: /cvs/opkg/vendor_stuff/delegate/src/X.c,v
retrieving revision 1.1.1.1
diff -u -u -r1.1.1.1 X.c
--- src/X.c	6 Jun 2005 15:53:39 -0000	1.1.1.1
+++ src/X.c	7 Jun 2005 06:55:38 -0000
@@ -24,6 +24,13 @@
 #include "delegate.h"
 #include "fpoll.h"
 #include "proc.h"
+
+/* #undef CS unconditionally
+ * real problem exists under Solaris (10) that defines CS in
+ * /usr/include/sys/ucontext.h which is included together with stdlib.h
+ */
+#undef CS
+
 void DBGMSG(PCStr(fmt),...);
 
 static jmp_buf tel_env;
Index: src/dget.c
===================================================================
RCS file: /cvs/opkg/vendor_stuff/delegate/src/dget.c,v
retrieving revision 1.1.1.1
diff -u -u -r1.1.1.1 dget.c
--- src/dget.c	6 Jun 2005 15:53:39 -0000	1.1.1.1
+++ src/dget.c	7 Jun 2005 06:55:38 -0000
@@ -27,6 +27,12 @@
 #include "file.h"
 #include "auth.h"
 
+/* #undef ERR unconditionally
+ * real problem exists under Solaris (10) that defines ERR in
+ * /usr/include/sys/regset.h which is included together with stdlib.h
+ */
+#undef ERR
+
 const char *strid_find(int tab,int hx,int id);
 int connect2server(Connection *Conn,PCStr(proto),PCStr(host),int port);
 
Index: src/ftp.c
===================================================================
RCS file: /cvs/opkg/vendor_stuff/delegate/src/ftp.c,v
retrieving revision 1.1.1.1
diff -u -u -r1.1.1.1 ftp.c
--- src/ftp.c	6 Jun 2005 15:53:40 -0000	1.1.1.1
+++ src/ftp.c	7 Jun 2005 06:55:38 -0000
@@ -33,6 +33,12 @@
 #include "auth.h"
 #include "proc.h"
 
+/* #undef FS unconditionally 
+ * real problem exists under Solaris (10) that defines FS in
+ * /usr/include/sys/ucontext.h which is included together with stdlib.h
+ */
+#undef FS
+
 int connect_ftp_data(Connection*Conn,PCStr(port),int cntrlsock,PCStr(lhost),int lport);
 void putFileInHTTP(FILE *tc,PCStr(path),PCStr(file));
 FILE *dirtar_fopen(PCStr(path));
Index: src/smtpgate.c
===================================================================
RCS file: /cvs/opkg/vendor_stuff/delegate/src/smtpgate.c,v
retrieving revision 1.1.1.1
diff -u -u -r1.1.1.1 smtpgate.c
--- src/smtpgate.c	6 Jun 2005 15:53:40 -0000	1.1.1.1
+++ src/smtpgate.c	7 Jun 2005 06:55:38 -0000
@@ -49,6 +49,12 @@
 #include "file.h"
 #include "auth.h"
 
+/* #undef FS unconditionally 
+ * real problem exists under Solaris (10) that defines FS in
+ * /usr/include/sys/ucontext.h which is included together with stdlib.h
+ */
+#undef FS
+
 #define LNSIZE  1024
 #define lfprintf	SMTP_lfprintf
 void SMTP_lfprintf(FILE *log,FILE *tosc,PCStr(fmt),...);
Index: src/telnet.c
===================================================================
RCS file: /cvs/opkg/vendor_stuff/delegate/src/telnet.c,v
retrieving revision 1.1.1.1
diff -u -u -r1.1.1.1 telnet.c
--- src/telnet.c	6 Jun 2005 15:53:40 -0000	1.1.1.1
+++ src/telnet.c	7 Jun 2005 06:55:38 -0000
@@ -28,6 +28,12 @@
 #include "auth.h"
 #include "proc.h"
 
+/* #undef CS unconditionally
+ * real problem exists under Solaris (10) that defines CS in
+ * /usr/include/sys/ucontext.h which is included together with stdlib.h
+ */
+#undef CS
+
 extern int IO_TIMEOUT;
 
 int makeXproxy(Connection *Conn,PVStr(pxdisplay),PCStr(display),PVStr(pxhost),PCStr(relhost),PCStr(me),int timeo);
Index: src/urlfind.c
===================================================================
RCS file: /cvs/opkg/vendor_stuff/delegate/src/urlfind.c,v
retrieving revision 1.1.1.1
diff -u -u -r1.1.1.1 urlfind.c
--- src/urlfind.c	6 Jun 2005 15:53:40 -0000	1.1.1.1
+++ src/urlfind.c	7 Jun 2005 06:55:38 -0000
@@ -25,6 +25,12 @@
 #include "ystring.h"
 #include "dglib.h"
 
+/* #undef ERR unconditionally
+ * real problem exists under Solaris (10) that defines ERR in
+ * /usr/include/sys/regset.h which is included together with stdlib.h
+ */
+#undef ERR
+
 static const char *usage = "\
 Usage: urlfind URL\n\
     -- Find recursively in URL space.\n\
Index: teleport/vehicle.c
===================================================================
RCS file: /cvs/opkg/vendor_stuff/delegate/teleport/vehicle.c,v
retrieving revision 1.1.1.1
diff -u -u -r1.1.1.1 vehicle.c
--- teleport/vehicle.c	6 Jun 2005 15:53:40 -0000	1.1.1.1
+++ teleport/vehicle.c	7 Jun 2005 06:55:38 -0000
@@ -21,6 +21,12 @@
 #include <stdio.h>
 #include "teleport.h"
 
+/* #undef ERR unconditionally
+ * real problem exists under Solaris (10) that defines ERR in
+ * /usr/include/sys/regset.h which is included together with stdlib.h
+ */
+#undef ERR
+
 #define TP_INVITE	"INVITE"
 #define TP_ROUTE	"ROUTE"
 #define IMSIZE	(1024*8)


  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
@_@V