[omniORB] OmniOrb 4.0.3 on OpenBsd 3.5

Mark Zimmerman markzimm at frii.com
Tue Jun 1 09:50:33 BST 2004


On Tue, Jun 01, 2004 at 05:18:14PM +0300, Adriaan Joubert wrote:
> Hi,
> 
>    did anybody manage to get omniORB running on OpenBsd? It does not 
> compile out of the box, with complaints such as 
> `OMNI_MUTEX_LOCK_IMPLEMENTATION' undeclared, which indicates that it 
> could not find pthread. Pthread is there however, so something went 
> wrong during the configuration.
> 
> Just thought I'd ask before digging...
> 

I did it a few weeks ago but neglected to record in detail what I did.
Here is what I can recall from a quick check of my build area:

alien$ diff -c omni/include/omnithread.h omni-obsd/include/omnithread.h
*** omni/include/omnithread.h   Fri Feb  6 09:16:29 2004
--- omni-obsd/include/omnithread.h      Mon May 10 11:07:51 2004
***************
*** 154,159 ****
--- 154,162 ----
  #elif defined(__freebsd__)
  #include <omnithread/posix.h>
  
+ #elif defined(__openbsd__)
+ #include <omnithread/posix.h>
+ 
  #elif defined(__rtems__)
  #include <omnithread/posix.h>
  #include <sched.h>

alien$ diff -c omni/configure omni-obsd/configure
*** omni/configure      Wed Feb 11 10:01:10 2004
--- omni-obsd/configure Mon May 10 11:07:15 2004
***************
*** 10139,10144 ****
--- 10139,10145 ----
    *-*-freebsd3*) plat_name="FreeBSD";  plat_def="__freebsd__";  os_v="3";;
    *-*-freebsd4*) plat_name="FreeBSD";  plat_def="__freebsd__";  os_v="4";;
    *-*-freebsd5*) plat_name="FreeBSD";  plat_def="__freebsd__";  os_v="5";;
+   *-*-openbsd*)  plat_name="OpenBSD";  plat_def="__openbsd__";  os_v="3";;
    *-*-sco*)      plat_name="OSR5";     plat_def="__osr5__";     os_v="5";;
  esac
  
alien$ diff -c omni/configure.ac omni-obsd/configure.ac
*** omni/configure.ac   Wed Feb 11 10:01:11 2004
--- omni-obsd/configure.ac      Mon May 10 11:07:07 2004
***************
*** 161,166 ****
--- 161,167 ----
    *-*-freebsd3*) plat_name="FreeBSD";  plat_def="__freebsd__";  os_v="3";;
    *-*-freebsd4*) plat_name="FreeBSD";  plat_def="__freebsd__";  os_v="4";;
    *-*-freebsd5*) plat_name="FreeBSD";  plat_def="__freebsd__";  os_v="5";;
+   *-*-openbsd*)  plat_name="OpenBSD";  plat_def="__openbsd__";  os_v="3";;
    *-*-sco*)      plat_name="OSR5";     plat_def="__osr5__";     os_v="5";;
  esac
  

Then, (in a build directory) configure with

../configure CC=egcc CXX=eg++ MAKE=gmake

As I recall, it went smoothly after that but I may have forgotten something.

-- Mark



More information about the omniORB-list mailing list