Hi.
I tried MICO 2.3.12RC2 under OpenDarwin 7.2.1 (x86) and found the
following 3 problems:
1. The attached patch is required to compile orb/transport/tcp.cc. It
appears that Darwin doesn't support POLLRDNORM and POLLRDBAND. Older
versions of Darwin didn't have poll() at all.
2. In order to link libmico2.3.12RC2.so I had to set LDFLAGS="-lssl
-lcrypto" when running configure because they were not added in the link
command itself.
3. The following error happens when linking against the static libraries:
ld: table of contents for archive: libmico2.3.12RC2.a is out of date;
rerun ranlib(1) (can't load from it)
I think that the fix is to run ranlib on the installed library archive
(i.e. after install-sh, because it touches it).
Vlado
--- mico-orig/orb/transport/tcp.cc Fri Nov 25 03:15:54 2005
+++ mico/orb/transport/tcp.cc Sat Nov 26 06:28:04 2005
@@ -285,7 +285,10 @@
::pollfd pfd;
pfd.fd = fd;
- pfd.events = POLLIN | POLLOUT | POLLRDNORM | POLLRDBAND | POLLPRI |
POLLHUP | POLLERR | POLLNVAL;
+ pfd.events = POLLIN | POLLOUT | POLLPRI | POLLHUP | POLLERR | POLLNVAL;
+#ifdef _XOPEN_SOURCE
+ pfd.events = pfd.events | POLLRDNORM | POLLRDBAND;
+#endif
if (poll (&pfd, 1, -1) < 0) {
if (MICO::Logger::IsLogged (MICO::Logger::Transport)) {
_______________________________________________
Mico-devel mailing list
[email protected]
http://www.mico.org/mailman/listinfo/mico-devel