From owner-freebsd-questions Tue Feb 27 8:13:43 2001 Delivered-To: freebsd-questions@freebsd.org Received: from madcap.dyndns.org (bb158-90.singnet.com.sg [165.21.158.90]) by hub.freebsd.org (Postfix) with ESMTP id 3FB5A37B719 for ; Tue, 27 Feb 2001 08:13:40 -0800 (PST) (envelope-from ngps@madcap.dyndns.org) Received: by madcap.dyndns.org (Postfix, from userid 100) id 0893C1C0; Tue, 27 Feb 2001 23:53:39 +0800 (SGT) Date: Tue, 27 Feb 2001 23:53:39 +0800 From: Ng Pheng Siong To: Duncan Grisby Cc: Ng Pheng Siong , omniorb-list@uk.research.att.com, questions@freebsd.org Subject: Re: [omniORB] Python 2, FreeBSD 4, omniORBpy, core dump Message-ID: <20010227235339.C1427@madcap.dyndns.org> References: <200102121558.PAA07580@pineapple.uk.research.att.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <200102121558.PAA07580@pineapple.uk.research.att.com>; from dgrisby@uk.research.att.com on Mon, Feb 12, 2001 at 03:58:14PM +0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 * http://www.post1.com/home/ngps To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message