From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ivan Andrus Newsgroups: gmane.emacs.devel Subject: Re: emacs-dynamic-module in Emacs Git? Date: Thu, 4 Dec 2014 19:43:17 -0700 Message-ID: <1DAEA680-6DB7-4173-B83D-7B107FD0F8CF@gmail.com> References: <87lhmz4mtj.fsf@lifelogs.com> <87sih575rc.fsf@lifelogs.com> <8361dyaqf1.fsf@gnu.org> <837fycae5p.fsf@gnu.org> <87y4qs19mi.fsf@lifelogs.com> <874mtfu0et.fsf@lifelogs.com> <83wq6b6z9d.fsf@gnu.org> <87oarlrbl7.fsf@lifelogs.com> <87fvcuq585.fsf@lifelogs.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1417747431 13667 80.91.229.3 (5 Dec 2014 02:43:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Dec 2014 02:43:51 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 05 03:43:46 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Xwirw-0006et-HZ for ged-emacs-devel@m.gmane.org; Fri, 05 Dec 2014 03:43:44 +0100 Original-Received: from localhost ([::1]:48511 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xwirw-0001Bw-7V for ged-emacs-devel@m.gmane.org; Thu, 04 Dec 2014 21:43:44 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45622) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xwirn-0001Ah-N3 for emacs-devel@gnu.org; Thu, 04 Dec 2014 21:43:40 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xwirb-00049C-70 for emacs-devel@gnu.org; Thu, 04 Dec 2014 21:43:35 -0500 Original-Received: from mail-ig0-x22f.google.com ([2607:f8b0:4001:c05::22f]:61841) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xwirb-00047h-2p for emacs-devel@gnu.org; Thu, 04 Dec 2014 21:43:23 -0500 Original-Received: by mail-ig0-f175.google.com with SMTP id h15so100094igd.14 for ; Thu, 04 Dec 2014 18:43:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=oTuW0uqO9SKAPazJoG3Ksas7onTGu999PTT4JtaTnWI=; b=c8pSb4P+Px/PZXh8DlEQHQeAXTdjCtIVEFoPqWYLlR4PYVJ205NBkGFvvis6/t+Oto S6Z4B9nVBAd3lP8HKVGSUnPieDph7ZsKlLlFPQO98Cpo1eW6GfiReDSmEAuRfoMvETWX Ju6rfVVARkKVLCa42GA0C06sp+AtO/oweOYYhaXS73xIhWxX4zHWpEBe7nNaBQWtIP/B 7uQmga4WxPqFEuZZ5XpXIKXbyxXqwfkA8InjGLqDDGlN1vPF34OQMR/nssBQF9gADQeH RcPS4mY6tUvcCa9o0x4JHUjsj2KthEr/a6m/+m0Vl/uK6Ja+ufQv7tsRfb0nqnPSJReE exQQ== X-Received: by 10.43.76.67 with SMTP id zd3mr14444840icb.42.1417747401392; Thu, 04 Dec 2014 18:43:21 -0800 (PST) Original-Received: from [192.168.0.3] (75-169-22-244.slkc.qwest.net. [75.169.22.244]) by mx.google.com with ESMTPSA id m2sm15397318ioi.10.2014.12.04.18.43.20 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 04 Dec 2014 18:43:20 -0800 (PST) In-Reply-To: <87fvcuq585.fsf@lifelogs.com> X-Mailer: Apple Mail (2.1878.6) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c05::22f X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:178874 Archived-At: On Dec 4, 2014, at 6:02 PM, Ted Zlatanov wrote: On Thu, 4 Dec 2014 21:40:34 +0100 Aur=E9lien Aptel = wrote:=20 >=20 > AA> On Tue, Dec 2, 2014 at 10:22 PM, Ted Zlatanov = wrote: >>> OK, dynamic-modules was rebased, squashed to a single commit, and = pushed >>> to branch "dynamic-modules-rc1". I added ChangeLogs and renamed >>> Makefile to Makefile.in in all the modules, but otherwise this is = pretty >>> much what Aur=E9lien wrote. >=20 > AA> You forgot to include the opaque module in SUBDIR_MAKEFILES. >=20 > I pushed with that minor change to dynamic-modules-rc2 >=20 > AA> I'm currently on a different computer than usual and although = loading > AA> works, calling any external symbol from a lib linked against the = module > AA> crashes emacs (similar error with yaml). >=20 > AA> ./src/emacs: symbol lookup error: > AA> /home/aaptel/dev/emacs/modules/curl/curl.so: undefined symbol: > AA> curl_global_init >=20 > AA> Strangely enough the module file doesn't show any curl dependency = with ldd, > AA> although it was compiled with -lcurl. >=20 > AA> $ ldd curl.so > AA> linux-gate.so.1 =3D> (0xb7757000) > AA> libc.so.6 =3D> /lib/i386-linux-gnu/libc.so.6 (0xb757f000) > AA> /lib/ld-linux.so.2 (0xb7758000) >=20 > AA> I don't know what's wrong (probably comes from my system). >=20 > Weird. Anyone else tested this? >=20 > I'll hold off merging for 1 more day=85 I wanted to, but couldn=92t get it to compile on my Mac. Though I must = admit I didn=92t try very hard. I should also say that =93gcc=94 is actually clang: $ make gcc -ggdb3 -Wall -I../../src -I../../lib -fPIC -c elisp.c gcc -shared -o elisp.so elisp.o Undefined symbols for architecture x86_64: "_Fprovide", referenced from: _init in elisp.o "_Qnil", referenced from: _init in elisp.o "_call3", referenced from: _Felisp_test in elisp.o "_defsubr", referenced from: _init in elisp.o "_intern_c_string", referenced from: _init in elisp.o "_make_string", referenced from: _Felisp_test in elisp.o "_staticpro", referenced from: _init in elisp.o ld: symbol(s) not found for architecture x86_64 -Ivan=