public inbox for kexec@lists.infradead.org
 help / color / mirror / Atom feed
From: Wen Congyang <wency@cn.fujitsu.com>
To: Cong Wang <xiyou.wangcong@gmail.com>
Cc: kexec@lists.infradead.org,
	Atsushi Kumagai <kumagai-atsushi@mxc.nes.nec.co.jp>
Subject: Re: makedumpfile can't build on Fedora 16
Date: Wed, 18 Jan 2012 08:35:24 +0800	[thread overview]
Message-ID: <4F1613CC.9040405@cn.fujitsu.com> (raw)
In-Reply-To: <4F15A377.3090302@gmail.com>

At 01/18/2012 12:36 AM, Cong Wang Wrote:
> Hello, Atsushi,
> 
> I can't build the latest makedumpfile on Fedora 16,
> 
> [wangcong@cr0]~/makedumpfile% make
> ...
> gcc -g -O2 -Wall -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
> -D_LARGEFILE64_SOURCE -DVERSION='"1.4.1"' -DRELEASE_DATE='"6 January
> 2012"' -D__x86_64__  print_info.o dwarf_info.o elf_info.o erase_info.o
> sadump_info.o arch/arm.o arch/x86.o arch/x86_64.o arch/ia64.o
> arch/ppc64.o arch/s390x.o -o makedumpfile makedumpfile.c -static -ldw
> -lbz2 -lebl -ldl -lelf -lz

The parameter has -static, so you need libc.a, libdw.a and ...
Or you can remove -static, but you should ensure that there are these
dynamic librarys in the second os.

Thanks
Wen Congyang

> makedumpfile.c: In function ‘__exclude_unnecessary_pages’:
> makedumpfile.c:3625:15: warning: variable ‘_count’ set but not used
> [-Wunused-but-set-variable]
> /usr/bin/ld: cannot find -lbz2
> /usr/bin/ld: cannot find -ldl
> /usr/bin/ld: cannot find -lc
> collect2: ld returned 1 exit status
> make: *** [makedumpfile] Error 1
> 
> [wangcong@cr0]~/makedumpfile% rpm -ql bzip2-libs
> /lib64/libbz2.so.1
> /lib64/libbz2.so.1.0.6
> /usr/share/doc/bzip2-libs-1.0.6
> /usr/share/doc/bzip2-libs-1.0.6/LICENSE
> 
> So, I don't know why ld can't find libbz2 and libc... Any hints?
> 
> Thanks!
> 
> _______________________________________________
> kexec mailing list
> kexec@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/kexec
> 


_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

  reply	other threads:[~2012-01-18  0:33 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 [this message]
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
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=4F1613CC.9040405@cn.fujitsu.com \
    --to=wency@cn.fujitsu.com \
    --cc=kexec@lists.infradead.org \
    --cc=kumagai-atsushi@mxc.nes.nec.co.jp \
    --cc=xiyou.wangcong@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox