[omniORB] OS X Tiger Compilation

Eric Noyau eric.noyau at gmail.com
Sun Sep 18 03:02:44 BST 2005


Greg,

This bug was fixed in CVS, but there was no new release since then.  
You will find below the diffs you need to apply to 4.06 in order to  
fix this issue. Alternatively you can retrieve the current CVS  
version of 4.0 which already include the fix.

Hope this helps,
-- Eric


Index: appl/utils/catior/catior.cc
===================================================================
RCS file: /cvsroot/omniorb/omni/src/appl/utils/catior/Attic/catior.cc,v
retrieving revision 1.12.2.13
diff -u -r1.12.2.13 catior.cc
--- appl/utils/catior/catior.cc 31 Aug 2004 15:21:49 -0000       
1.12.2.13
+++ appl/utils/catior/catior.cc 19 May 2005 10:45:01 -0000
@@ -42,6 +42,9 @@
#  include <unistd.h>
#endif
+// unixstd on some platforms (the mac for example) define a minor macro
+#undef minor
+
#ifndef Swap16
#define Swap16(s) ((((s) & 0xff) << 8) | (((s) >> 8) & 0xff))
#else
Index: appl/utils/convertior/convertior.cc
===================================================================
RCS file: /cvsroot/omniorb/omni/src/appl/utils/convertior/Attic/ 
convertior.cc,v
retrieving revision 1.10.2.7
diff -u -r1.10.2.7 convertior.cc
--- appl/utils/convertior/convertior.cc 9 May 2003 13:33:00  
-0000       1.10.2.7
+++ appl/utils/convertior/convertior.cc 19 May 2005 10:45:01 -0000
@@ -40,6 +40,9 @@
#  include <unistd.h>
#endif
+// unixstd on some platforms (the mac for example) define a minor macro
+#undef minor
+
#ifndef Swap16
#define Swap16(s) ((((s) & 0xff) << 8) | (((s) >> 8) & 0xff))
#else
Index: lib/omnithread/posix.cc
===================================================================
RCS file: /cvsroot/omniorb/omni/src/lib/omnithread/Attic/posix.cc,v
retrieving revision 1.27.2.15
diff -u -r1.27.2.15 posix.cc
--- lib/omnithread/posix.cc     25 Apr 2005 18:16:24 -0000       
1.27.2.15
+++ lib/omnithread/posix.cc     19 May 2005 10:45:02 -0000
@@ -78,7 +78,7 @@
#include <time.h>
#include <omnithread.h>
-#if (defined(__GLIBC__) && __GLIBC__ >= 2) || defined 
(__SCO_VERSION__) || defined(__aix__) || defined (__cygwin__)
+#if (defined(__GLIBC__) && __GLIBC__ >= 2) || defined 
(__SCO_VERSION__) || defined(__aix__) || defined (__cygwin__) ||  
defined(__darwin__) || defined(__macos__)
// typedef of struct timeval and gettimeofday();
#include <sys/time.h>
#include <unistd.h>


-- Eric



On Sep 16, 2005, at 23:23, Greg Trimble wrote:

> Hello,
>
> I'm new to this list but was searching previous months' posts and
> found this one concerning posix.cc and osx.  I did what the person
> suggested, but I still get errors about gettimeofday and usleep.  Has
> anyone had any luck with the compile on Tiger?
>
> Here's the message I found:
>
> "Hi,
>
>             I was installing omniorb vs 4.06 into a Mac OSX 10.4,
> launching "make" instruction after "configure". "make" failed in
> executing file "posix.cc" at line 882, 'cause "gettimeofday" is not
> defined on this scope.
>
> The bug is that in line 81, just before including <sys/time.h>, I  
> had to
> add:
>
>
>
> || define (__darwin__)
>
>
>
> Now it seems to work fine.
>
>
>
>
>
> Regards."
>
> _______________________________________________
> omniORB-list mailing list
> omniORB-list at omniorb-support.com
> http://www.omniorb-support.com/mailman/listinfo/omniorb-list
>




More information about the omniORB-list mailing list