[omniORB] OmniOrb 4.0.3 on OpenBsd 3.5
Adriaan Joubert
a.joubert at albourne.com
Wed Jun 9 09:47:33 BST 2004
Mark,
thanks a lot for that! Took me a little while to get it going, as
another file needs modification. It is
josephine:~/src/omniORB-4.0.3$ diff -c mk/beforeauto.mk.in{,-}
*** mk/beforeauto.mk.in Tue Jun 8 17:50:31 2004
--- mk/beforeauto.mk.in- Tue Jun 8 17:48:38 2004
***************
*** 979,993 ****
endif
###################
- ifdef OpenBSD
- IMPORT_CPPFLAGS += -D__openbsd__
-
- OMNITHREAD_CPPFLAGS = -D_REENTRANT -D_THREAD_SAFE
- OMNITHREAD_POSIX_CPPFLAGS = -DUsePthread -DPthreadDraftVersion=10
- OMNITHREAD_LIB += -pthread
- endif
-
- ###################
ifdef OSR5
IMPORT_CPPFLAGS += -D__osr5__
--- 979,984 ----
I just copied the definitions from FreeBsd - they look fine and it
compiles fine with this, but if somebody spots anything please let me know.
Duncan, would it be possible to add these to the normal source tree? Do
you have a specific set of tests that need to pass before you can do that?
Cheers,
Adriaan
Mark Zimmerman wrote:
>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