Update of /cvsroot/monetdb/pathfinder/runtime
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv3625/runtime
Modified Files:
Tag: XQuery_0-16
Makefile.ag shredder.mx shttpd.c xrpc_server.mx
Log Message:
allow compilation of pathfinder on Windows (32-bits) via the Intel Compiler.
some highlights:
- inline getopt implementation for win32 (BSD licences)
- avoid stroll(), win32 does not have it
- new win32-specific files (Makefile, configure.py, rules.msc, pf_config.h.in)
see NOTES. next week the story continues on 64-bits windows
Index: shttpd.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/runtime/shttpd.c,v
retrieving revision 1.19.4.3
retrieving revision 1.19.4.4
diff -u -d -r1.19.4.3 -r1.19.4.4
--- shttpd.c 21 Feb 2007 16:48:34 -0000 1.19.4.3
+++ shttpd.c 1 Mar 2007 18:56:44 -0000 1.19.4.4
@@ -2938,7 +2938,7 @@
elog(ERR_DEBUG, "select: %s", strerror(errno));
} else {
/* If listening socket is ready, accept new connection */
- if (listen_socket != -1 && FD_ISSET(listen_socket, &rset) &&
+ if (listen_socket != -1 && FD_ISSET(listen_socket,
&rset) &&
(sock = accept(listen_socket, &sa.u.sa, &sa.len)) != 0)
newconnection(ctx, sock, &sa);
Index: Makefile.ag
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/runtime/Makefile.ag,v
retrieving revision 1.65.2.4
retrieving revision 1.65.2.5
diff -u -d -r1.65.2.4 -r1.65.2.5
--- Makefile.ag 21 Feb 2007 09:38:52 -0000 1.65.2.4
+++ Makefile.ag 1 Mar 2007 18:56:44 -0000 1.65.2.5
@@ -99,7 +99,7 @@
SOURCES = xrpc_client.mx
LIBS = \
$(PF_LIBS) $(SOCKET_LIBS) ./lib_pf_support
./lib_pathfinder \
- $(MONETDB_LIBS) -lbat -lstream $(MONETDB4_LIBS)
-lmonet -lpthread \
+ $(MONETDB_LIBS) -lbat -lstream $(MONETDB4_LIBS)
-lmonet \
$(MONETDB4_MODS) -l_streams -l_builtin -l_ascii_io
}
@@ -124,7 +124,7 @@
../compiler/libcompiler2 \
../compiler/sql/libsql \
$(PF_LIBS) $(SOCKET_LIBS) ./lib_pf_support
./lib_pathfinder \
- $(MONETDB_LIBS) -lbat -lstream $(MONETDB4_LIBS)
-lmonet -lpthread \
+ $(MONETDB_LIBS) -lbat -lstream $(MONETDB4_LIBS)
-lmonet $(PTHREAD_LIBS) \
$(MONETDB4_MODS) -l_mapi -l_streams -l_builtin
-l_ascii_io
}
Index: xrpc_server.mx
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/runtime/xrpc_server.mx,v
retrieving revision 1.7.2.13
retrieving revision 1.7.2.14
diff -u -d -r1.7.2.13 -r1.7.2.14
--- xrpc_server.mx 27 Feb 2007 17:40:28 -0000 1.7.2.13
+++ xrpc_server.mx 1 Mar 2007 18:56:45 -0000 1.7.2.14
@@ -1179,9 +1179,6 @@
xrpc_port = rpcd_running = *port;
- /* Initialize with specific config file, pass NULL to use default
- * values */
- shttpd_init(NULL);
/* find 'datadir' (often datadir = <prefix>/share), otherwise use
* "/usr/share", hence, httpd serves out <datadir>/MonetDB/xrpc */
if( !(s = GDKgetenv("datadir")) ){
@@ -1191,6 +1188,12 @@
snprintf(datadir, 1024, "%s%cMonetDB%cxrpc", s, DIR_SEP, DIR_SEP);
}
shttpd_setopt("document_root", datadir);
+/*
+ shttpd_setopt("error_log", "c:\\tmp\\err.txt");
+ shttpd_setopt("debug", "1");
+ */
+
+ shttpd_init(NULL); /* Initialize httpsd thread */
if (option && strstr(option, "timing") != NULL)
timing = 1;
Index: shredder.mx
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/runtime/shredder.mx,v
retrieving revision 1.114.2.3
retrieving revision 1.114.2.4
diff -u -d -r1.114.2.3 -r1.114.2.4
--- shredder.mx 28 Feb 2007 10:03:30 -0000 1.114.2.3
+++ shredder.mx 1 Mar 2007 18:56:44 -0000 1.114.2.4
@@ -76,8 +76,6 @@
#define DOCUMENT 4
#define COLLECTION 5
-#include <strings.h>
-
/* SAX parser interface(libxml2) */
#include "libxml/parser.h"
#include "libxml/parserInternals.h"
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins