From: mquinson Date: Tue, 27 Apr 2010 13:19:51 +0000 (+0000) Subject: Allow to cross compile simgrid.dll using the autotools suite X-Git-Tag: SVN~90 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/f8a33bde3e1bbeaf77b6560c9bfb75cd285852f0?ds=sidebyside Allow to cross compile simgrid.dll using the autotools suite - update the autotools to add vivaldi network model - do not export static methods - don't use gras_wsa_err2txt since I cannot get it defined in the DLL (and is useless for simgrid.dll) git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7651 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/Makefile.am b/src/Makefile.am index 120033faf5..f30c30a634 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -190,7 +190,7 @@ SURF_SRC= \ surf/random_mgr.c \ surf/surf.c \ surf/surfxml_parse.c \ - surf/cpu.c surf/network.c surf/network_constant.c surf/workstation.c \ + surf/cpu.c surf/network.c surf/network_constant.c surf/network_vivaldi.c surf/workstation.c \ surf/surf_model_timer.c \ surf/workstation_ptask_L07.c \ surf/cpu_ti.c \ @@ -372,10 +372,10 @@ simgrid_ruby_la_SOURCES = bindings/ruby/simgrid_ruby.c simgrid_ruby_la_LDFLAGS = $(VERSION_INFO) @LD_DYNAMIC_FLAGS@ -lm -module endif -# Windows users (at least, MSVC ones) need a def file. +# Windows users (at least, MSVC ones) need a def file. (and JNI dont like @ cruft added to symbols) if IS_WINDOWS libgras_la_LDFLAGS += -Wl,--output-def,libgras.def -libsimgrid_la_LDFLAGS += -Wl,--output-def,libsimgrid.def +libsimgrid_la_LDFLAGS += -Wl,--output-def,libsimgrid.def -Wl,--kill-at libsmpi_la_LDFLAGS += -Wl,--output-def,libsmpi.def endif diff --git a/src/gras/Msg/gras_msg_listener.c b/src/gras/Msg/gras_msg_listener.c index cb3807204d..4bc0bf28e4 100644 --- a/src/gras/Msg/gras_msg_listener.c +++ b/src/gras/Msg/gras_msg_listener.c @@ -58,8 +58,12 @@ static void listener_function(void *p) int sock; xbt_queue_shift_timed(me->socks_to_close, &sock, 0); if (tcp_close(sock) < 0) { +#ifdef _WIN32 + WARN2("error while closing tcp socket %d: %d (%s)\n", sock, sock_errno); +#else WARN3("error while closing tcp socket %d: %d (%s)\n", sock, sock_errno, sock_errstr(sock_errno)); +#endif } } } diff --git a/src/surf/surf_private.h b/src/surf/surf_private.h index 276cb4c8c2..e1c110e605 100644 --- a/src/surf/surf_private.h +++ b/src/surf/surf_private.h @@ -114,7 +114,7 @@ XBT_PUBLIC(void) routing_model_create(size_t size_of_link,void *loopback); /* * Resource protected methods */ -XBT_PUBLIC(xbt_dict_t) surf_resource_properties(const void *resource); +xbt_dict_t surf_resource_properties(const void *resource); XBT_PUBLIC(void) surfxml_bufferstack_push(int new); XBT_PUBLIC(void) surfxml_bufferstack_pop(int new);