[omniORB] Python 2, FreeBSD 4, omniORBpy, core dump

Ng Pheng Siong ngps@post1.com
Tue, 27 Feb 2001 23:53:39 +0800


On Mon, Feb 12, 2001 at 03:58:14PM +0000, Duncan Grisby wrote:
> > $ python example_echo_nssrv.py 
> > Segmentation fault (core dumped)
> 
> Does the non-naming service example (example_echo_srv.py and
> example_echo_clt.py) work?

Hi,

Alexander Shakhov suggested linking the C++ library statically.
This seems to have fixed it for me. Here's what I changed in
src/lib/omniORBpy/modules/dir.mk:

--- dir.mk.org	Wed Feb 28 00:03:55 2001
+++ dir.mk	Sun Feb 25 14:07:28 2001
@@ -298,6 +298,7 @@
 ifdef FreeBSD
 
 CXXOPTIONS += -fPIC
+EXTRAS  = /usr/lib/libgcc_r.a
 
 libname = _omnipymodule.so
 soname  = $(libname).$(OMNIPY_MAJOR)
@@ -310,6 +311,7 @@
        -shared -o $@ -Wl,-soname,$(soname) \
        $(IMPORT_LIBRARY_FLAGS) \
         $(filter-out $(LibSuffixPattern),$^) $(OMNIORB_LIB)\
+        $(EXTRAS) \
        )
 
 all:: $(lib)


A better rendition of "EXTRAS" is appreciated. Cheers.

-- 
Ng Pheng Siong <ngps@post1.com> * http://www.post1.com/home/ngps