From: Cong Wang <xiyou.wangcong@gmail.com>
To: Atsushi Kumagai <kumagai-atsushi@mxc.nes.nec.co.jp>
Cc: oomichi@mxs.nes.nec.co.jp, kexec@lists.infradead.org,
wency@cn.fujitsu.com
Subject: Re: makedumpfile can't build on Fedora 16
Date: Fri, 20 Jan 2012 15:19:24 +0800 [thread overview]
Message-ID: <4F19157C.3090809@gmail.com> (raw)
In-Reply-To: <20120120160322.d5dbd362.kumagai-atsushi@mxc.nes.nec.co.jp>
On 01/20/2012 03:03 PM, Atsushi Kumagai wrote:
> Hi,
Hi, Kumagai-san,
> I think that makedumpfile should be compiled with -static option,
> because it must be executable in many environment as possible, e.g. even if
> there are no dynamic libraries in 2nd kernel environment. (as written in README)
>
> But I've got some requests to build it using dynamic libraries,
> so I will change the Makefile as attached patch.
>
> If you want to build makedumpfile using dynamic libraries,
> you need "LINKTYPE=dynamic"(see below).
>
> How to build:
> a) linking static libraries (default)
> $ make
> ...
> $ ldd makedumpfile
> not a dynamic executable
>
> b) linking dynamic libraries
> $ make LINKTYPE=dynamic
> ...
> $ ldd makedumpfile
> libdw.so.1 => /usr/lib64/libdw.so.1 (0x0000003ca2800000)
> libbz2.so.1 => /usr/lib64/libbz2.so.1 (0x000000394b200000)
> libdl.so.2 => /lib64/libdl.so.2 (0x00000031a5a00000)
> libelf.so.1 => /usr/lib64/libelf.so.1 (0x0000003ca2400000)
> libz.so.1 => /usr/lib64/libz.so.1 (0x00000031a6200000)
> libc.so.6 => /lib64/libc.so.6 (0x00000031a5200000)
> /lib64/ld-linux-x86-64.so.2 (0x00000031a4e00000)
>
> What do you think, Cong?
This also works for me! Thanks for your patch!
BTW, we also need to update README. ;)
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
next prev parent reply other threads:[~2012-01-20 7:19 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-17 16:36 makedumpfile can't build on Fedora 16 Cong Wang
2012-01-18 0:35 ` Wen Congyang
2012-01-18 0:40 ` Ken'ichi Ohmichi
2012-01-18 13:45 ` Cong Wang
2012-01-19 7:58 ` Ken'ichi Ohmichi
2012-01-20 7:03 ` Atsushi Kumagai
2012-01-20 7:19 ` Cong Wang [this message]
2012-01-20 8:02 ` Atsushi Kumagai
2012-01-20 7:35 ` Ken'ichi Ohmichi
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=4F19157C.3090809@gmail.com \
--to=xiyou.wangcong@gmail.com \
--cc=kexec@lists.infradead.org \
--cc=kumagai-atsushi@mxc.nes.nec.co.jp \
--cc=oomichi@mxs.nes.nec.co.jp \
--cc=wency@cn.fujitsu.com \
/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.
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.