From: Leo Famulari <leo@famulari.name>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH 2/5] gnu: Build lua-5.2 with dynamic library support.
Date: Mon, 14 Dec 2015 01:23:41 -0500 [thread overview]
Message-ID: <20151214062341.GD10634@jasmine> (raw)
In-Reply-To: <87a8qo19o8.fsf@gnu.org>
On Sun, Nov 08, 2015 at 10:08:23PM +0100, Ludovic Courtès wrote:
> Leo Famulari <leo@famulari.name> skribis:
>
> > * gnu/packages/lua.scm (lua-5.2)[arguments]: Rewrite make-flags so that
> > Lua is built with platform-specific instructions for shared library
> > loading (dlopen).
>
> Please move the explanations as a comment in the code.
Done. Updated patches forthcoming...
>
> > #:phases (alist-replace
> > 'build
> > - (lambda _ (zero? (system* "make" "CFLAGS=-fPIC" "linux")))
> > + (lambda _ (zero? (system* "make"
> > + "PLAT=linux"
> > + "MYCFLAGS=-fPIC"
> > + "MYLDFLAGS=-fPIC")))
>
> How can I test whether this works as expected? I tried this, but I’m
> unsure whether it’s supposed to load OpenSSL’s libssl.so directly or
> not:
>
> --8<---------------cut here---------------start------------->8---
> $ ./pre-inst-env guix environment --ad-hoc lua-5.2 openssl
> [env]$ echo $PATH
> /gnu/store/zmqhwsl9vvxr4ihdnhwwpc3dpgmpsgsy-openssl-1.0.2d/bin:/gnu/store/9wmsrx7s9ydln5vgddms3cfavaiigwq2-lua-5.2.3/bin:/home/ludo/src/guix/scripts:/home/ludo/src/guix:/home/ludo/soft/bin:/home/ludo/.opam/system/bin:/home/ludo/.guix-profile/bin:/home/ludo/.guix-profile/sbin:/run/setuid-programs:/run/current-system/profile/bin:/run/current-system/profile/sbin
> [env]$ export LD_LIBRARY_PATH=/gnu/store/zmqhwsl9vvxr4ihdnhwwpc3dpgmpsgsy-openssl-1.0.2d/lib
> [env]$ lua -lssl
> lua: module 'ssl' not found:
> no field package.preload['ssl']
> no file '/usr/local/share/lua/5.2/ssl.lua'
> no file '/usr/local/share/lua/5.2/ssl/init.lua'
> no file '/usr/local/lib/lua/5.2/ssl.lua'
> no file '/usr/local/lib/lua/5.2/ssl/init.lua'
> no file './ssl.lua'
> no file '/usr/local/lib/lua/5.2/ssl.so'
> no file '/usr/local/lib/lua/5.2/loadall.so'
> no file './ssl.so'
> stack traceback:
> [C]: in function 'require'
> [C]: in ?
> --8<---------------cut here---------------end--------------->8---
>
> Apologies in advance if I’m just asking stupid questions!
>
> Besides, it would be nice to get rid of these hard-coded /usr/local in a
> subsequent patch.
>
> Ludo’.
next prev parent reply other threads:[~2015-12-14 6:23 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-02 17:46 [PATCH 0/5] Lua: enable shared library loading, build liblua.so Leo Famulari
2015-11-02 17:46 ` [PATCH 1/5] gnu: Remove tabulation from luajit Leo Famulari
2015-11-02 17:46 ` [PATCH 2/5] gnu: Build lua-5.2 with dynamic library support Leo Famulari
2015-11-08 21:08 ` Ludovic Courtès
2015-12-14 6:23 ` Leo Famulari [this message]
2015-11-02 17:46 ` [PATCH 3/5] gnu: Build lua-5.2 with a dynamic library Leo Famulari
2015-11-08 21:12 ` Ludovic Courtès
2015-11-02 17:46 ` [PATCH 4/5] gnu: Use make-flags and modify-phases for lua-5.2 Leo Famulari
2015-12-13 16:24 ` Ludovic Courtès
2015-12-14 6:22 ` Leo Famulari
2015-11-02 17:46 ` [PATCH 5/5] gnu: Build lua-5.1 with dynamic library support and a dynamic library Leo Famulari
2015-12-13 16:27 ` Ludovic Courtès
2015-12-14 6:22 ` Leo Famulari
-- strict thread matches above, loose matches on Subject: below --
2015-11-11 0:53 [PATCH 2/5] gnu: Build lua-5.2 with dynamic library support Leo Famulari
2015-11-11 21:28 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20151214062341.GD10634@jasmine \
--to=leo@famulari.name \
--cc=guix-devel@gnu.org \
--cc=ludo@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.