linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] building LVM2 static fails
@ 2005-11-04 19:18 Dave Jiang
  2005-11-04 22:42 ` Alasdair G Kergon
  2005-11-04 22:45 ` Alasdair G Kergon
  0 siblings, 2 replies; 3+ messages in thread
From: Dave Jiang @ 2005-11-04 19:18 UTC (permalink / raw)
  To: linux-lvm

Has anyone compiled LVM2 successfully with static linking?
./configure --enable-static_link

gcc -o lvm.static dumpconfig.o formats.o lvchange.o lvconvert.o 
lvcreate.o lvdisplay.o lvextend.o lvmchange.o lvmcmdline.o lvmdiskscan.o 
lvreduce.o lvremove.o lvrename.o lvresize.o lvscan.o polldaemon.o 
pvchange.o pvcreate.o pvdisplay.o pvmove.o pvremove.o pvscan.o 
reporter.o segtypes.o toollib.o vgcfgbackup.o vgcfgrestore.o vgchange.o 
vgck.o vgcreate.o vgconvert.o vgdisplay.o vgexport.o vgextend.o 
vgimport.o vgmerge.o vgmknodes.o vgreduce.o vgremove.o vgrename.o 
vgscan.o vgsplit.o lvm-static.o -static -Wl,--export-dynamic -L../lib 
-L/lib -llvm -ldevmapper \
         -ldl  -rdynamic
/usr/bin/ld: cannot find -ldevmapper
collect2: ld returned 1 exit status
make[1]: *** [lvm.static] Error 1
make[1]: *** Waiting for unfinished jobs....

Why is autoconf still attempting dynamic linking while with -static? I 
can build successfully without --enable-static_link.


-- 

------------------------------------------------------
Dave Jiang
Software Engineer, Carrier Grade Software
MontaVista Software, Inc.
http://www.mvista.com
------------------------------------------------------

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-lvm] building LVM2 static fails
  2005-11-04 19:18 [linux-lvm] building LVM2 static fails Dave Jiang
@ 2005-11-04 22:42 ` Alasdair G Kergon
  2005-11-04 22:45 ` Alasdair G Kergon
  1 sibling, 0 replies; 3+ messages in thread
From: Alasdair G Kergon @ 2005-11-04 22:42 UTC (permalink / raw)
  To: LVM general discussion and development

On Fri, Nov 04, 2005 at 12:18:36PM -0700, Dave Jiang wrote:
> Why is autoconf still attempting dynamic linking while with -static? I 
> can build successfully without --enable-static_link.
 
That flag builds both dynamic and static versions.

Alasdair
-- 
agk@redhat.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-lvm] building LVM2 static fails
  2005-11-04 19:18 [linux-lvm] building LVM2 static fails Dave Jiang
  2005-11-04 22:42 ` Alasdair G Kergon
@ 2005-11-04 22:45 ` Alasdair G Kergon
  1 sibling, 0 replies; 3+ messages in thread
From: Alasdair G Kergon @ 2005-11-04 22:45 UTC (permalink / raw)
  To: LVM general discussion and development

On Fri, Nov 04, 2005 at 12:18:36PM -0700, Dave Jiang wrote:
> /usr/bin/ld: cannot find -ldevmapper

You installed a static libdevmapper first?

Alasdair
-- 
agk@redhat.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-11-04 22:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-04 19:18 [linux-lvm] building LVM2 static fails Dave Jiang
2005-11-04 22:42 ` Alasdair G Kergon
2005-11-04 22:45 ` Alasdair G Kergon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).