From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Aur=C3=A9lien_Aptel?= Newsgroups: gmane.emacs.devel Subject: Re: emacs-dynamic-module in Emacs Git? Date: Thu, 4 Dec 2014 21:40:34 +0100 Message-ID: References: <87siha7r3b.fsf@lifelogs.com> <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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0160b7ccdaedbc050969f8a5 X-Trace: ger.gmane.org 1417725661 28360 80.91.229.3 (4 Dec 2014 20:41:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Dec 2014 20:41:01 +0000 (UTC) To: Emacs development discussions Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 04 21:40:56 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 1XwdCq-0006le-NA for ged-emacs-devel@m.gmane.org; Thu, 04 Dec 2014 21:40:56 +0100 Original-Received: from localhost ([::1]:47649 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwdCp-0000f8-QS for ged-emacs-devel@m.gmane.org; Thu, 04 Dec 2014 15:40:56 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51318) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwdCb-0000f1-9f for emacs-devel@gnu.org; Thu, 04 Dec 2014 15:40:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XwdCW-0001Qv-VJ for emacs-devel@gnu.org; Thu, 04 Dec 2014 15:40:41 -0500 Original-Received: from mail-la0-x22f.google.com ([2a00:1450:4010:c03::22f]:64625) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwdCW-0001Px-Kp for emacs-devel@gnu.org; Thu, 04 Dec 2014 15:40:36 -0500 Original-Received: by mail-la0-f47.google.com with SMTP id hz20so15356058lab.34 for ; Thu, 04 Dec 2014 12:40:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=S9DpGfziswg2igg/9/uR/BgOSKEOlj0acDHhfyuYRZs=; b=Tej+aOwPQThCplD7oiwgmMnBQPaaGOnbVfVLMYFn69yVMgTERJeaU/hlrFIdc1ph8C M8BjMB+XQjA8g91N2xodEH7o+TvGF41CFnSpAnxToEX2uK7s//X1Y6Lym0vEhv5odNrX xDSxfWCBY0w8M6sqVq/+X4GQ7RjUanhVSsFo8EQVDNgSqFDSFgE1wkwP3W1MmnXtWcLV RMH7sU3tpWiZdCn4/Q3EeImrFooJb01nX3jWe3JsC6zKcqkhXhJC8E0zNP5B6srXRYr6 2Pvn0ZH7BPfgqOY7c7110lS2Bv17iAZi5mu/wu5qFWspIYj+LmbVQo/QZt3U1ta5K77r TmKQ== X-Received: by 10.152.28.131 with SMTP id b3mr11836634lah.12.1417725634864; Thu, 04 Dec 2014 12:40:34 -0800 (PST) Original-Received: by 10.114.77.131 with HTTP; Thu, 4 Dec 2014 12:40:34 -0800 (PST) In-Reply-To: <87oarlrbl7.fsf@lifelogs.com> X-Google-Sender-Auth: QuMNCPcgQ1UEKiwylXdfi_Ycx64 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::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:178853 Archived-At: --089e0160b7ccdaedbc050969f8a5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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=C3=A9lien wrote. You forgot to include the opaque module in SUBDIR_MAKEFILES. I'm currently on a different computer than usual and although loading works, calling any external symbol from a lib linked against the module crashes emacs (similar error with yaml). ./src/emacs: symbol lookup error: /home/aaptel/dev/emacs/modules/curl/curl.so: undefined symbol: curl_global_init Strangely enough the module file doesn't show any curl dependency with ldd, although it was compiled with -lcurl. $ ldd curl.so linux-gate.so.1 =3D> (0xb7757000) libc.so.6 =3D> /lib/i386-linux-gnu/libc.so.6 (0xb757f000) /lib/ld-linux.so.2 (0xb7758000) I don't know what's wrong (probably comes from my system). --089e0160b7ccdaedbc050969f8a5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

On Tue, Dec 2, 2014 at 10:22 PM, Ted Zlatan= ov <tzz@lifelogs.c= om> wrote:
> OK, dynamic-modules was rebased, squashed to a single commit, and push= ed
> to branch "dynamic-modules-rc1". I added ChangeLogs and rena= med
> Makefile to Makefile.in in all the modules, but otherwise this is pret= ty
> much what Aur=C3=A9lien wrote.

You forgot to include the opaque module in SUBDIR_MAKEFILES.=

I'm currently on a different computer than usual and alt= hough loading works, calling any external symbol from a lib linked against = the module crashes emacs (similar error with yaml).

./src= /emacs: symbol lookup error: /home/aaptel/dev/emacs/modules/curl/curl.so: u= ndefined symbol: curl_global_init

Strangely enough the module fil= e doesn't show any curl dependency with ldd, although it was compiled w= ith -lcurl.

$ ldd curl.so
=C2=A0=C2=A0=C2=A0 linux-gate.so.1 = =3D>=C2=A0 (0xb7757000)
=C2=A0=C2=A0=C2=A0 libc.so.6 =3D> /lib/i38= 6-linux-gnu/libc.so.6 (0xb757f000)
=C2=A0=C2=A0=C2=A0 /lib/ld-linux.so.2= (0xb7758000)

I don't know what's wrong (probably comes f= rom my system).

--089e0160b7ccdaedbc050969f8a5--