[sisuite-users] LVM2.2.02.57 (mklibs, line 478, in module, raise No library provides non-weak + symbol) ERROR

2010-01-15 Thread Thierry Iceta
Hi
  
My problem is when I try to include new LVM2.2.02.56 in 
systemimager-4.0.2 production environment  and compile (make ) under 
Fedora12
I got an error when mklibs try to link sbin/* directory where lvm 
binaries are located.
No probleme with LVM22.02.53 and under
probleme  with LVM22.02.56 and   This LVM is requested for FEDORA12
Here under you will find most of informations

Could you help me please ?

Thanks in advance

===
A) THE ERROR IS:
===
Object: sbin/parted
Object: sbin/sfdisk
Object: sbin/blockdev
Object: sbin/mdadm
Object: sbin/mkreiserfs
Object: sbin/reiserfstune
956 symbols, 781 unresolved
Traceback (most recent call last):
  File 
/homes/tmps/icetat/usr/src/redhat/BUILD/systemimager-4.0.2/initrd_source/mklibs,
 
line 478, in module
raise No library provides non-weak  + symbol
TypeError: exceptions must be classes or instances, not str
make: *** 
[/homes/tmps/icetat/usr/src/redhat/BUILD/systemimager-4.0.2/tmp/boel_binaries.tar.gz]
 
Error 1


B) LVM USED AND make file rule  =lvm.rul for LVM2.2.02.57.tgz
-
LVM_VERSION := 2.2.02.57
LVM_DIR := LVM$(LVM_VERSION)
LVM_TARBALL := LVM$(LVM_VERSION).tgz
#LVM_URL:= ftp://sources.redhat.com/pub/lvm2/old/$(LVM_TARBALL)
LVM_URL := http://download.systemimager.org/pub/lvm/$(LVM_TARBALL)
LVM_BINARY  := $(SRC_DIR)/$(LVM_DIR)/tools/lvm
LVM_PATCHES := $(shell ls $(PATCH_DIR)/lvm.*.patch 2/dev/null | sort)

PHONY += lvm
lvm:$(LVM_BINARY) $(DEVMAPPER_BINARY)
$(LVM_BINARY):  $(SRC_DIR)/$(LVM_TARBALL) $(DEVMAPPER_BINARY)
rm -rf $(SRC_DIR)/$(LVM_DIR)
cd $(SRC_DIR)  tar -xvzf $(LVM_TARBALL)
cd $(SRC_DIR)/$(LVM_DIR)  \
./configure --prefix=/usr --disable-nls 
--with-optimisation=-Os \
#   --with-dmdir=$(SRC_DIR)/$(DEVMAPPER_DIR)


C) COMMAND  mklibs -L FAIL WHEN IT TRY TO LINK sbin/* WHERE ALL LVM 
COMPILED FILES ARE LOCATED
---
# But copy over ld.so* files first.  for some reason these don't always
# get copied by mklibs if both /lib/ld* and /lib64/ld* exist) -BEF-
#
output=`find /lib/ -name ld*`
test ! -n  || cp -a /lib/ld*   
/homes/tmps/icetat/usr/src/redhat/BUILD/systemimager-4.0.2/tmp/boel_binaries/lib
test ! -d /lib64 || cp -a /lib64/ld* 
/homes/tmps/icetat/usr/src/redhat/BUILD/systemimager-4.0.2/tmp/boel_binaries/lib64
cd 
/homes/tmps/icetat/usr/src/redhat/BUILD/systemimager-4.0.2/tmp/boel_binaries 
\
 /usr/bin/python2 
/homes/tmps/icetat/usr/src/redhat/BUILD/systemimager-4.0.2/initrd_source/mklibs 
-L 
/homes/tmps/icetat/usr/src/redhat/BUILD/systemimager-4.0.2/src/parted-1.8.8/libparted/.libs:/homes/tmps/icetat/usr/src/redhat/BUILD/systemimager-4.0.2/src/discover1-1.7.18/lib/.libs:/homes/tmps/icetat/usr/src/redhat/BUILD/systemimager-4.0.2/src//lib/ioctl:/homes/tmps/icetat/usr/src/redhat/BUILD/systemimager-4.0.2/src/e2fsprogs-1.41.3/lib:/lib64:/usr/lib64:/usr/kerberos/lib64:/lib:/usr/lib:/usr/kerberos/lib:/usr/local/lib:/opt/gnome/lib:/lib/tls:`find
 
/lib/tls /usr/lib/tls /lib64/tls /usr/lib64/tls -type d 2/dev/null | tr 
'\n' :` -v -d lib64 bin/* sbin/* usr/bin/* usr/sbin/* 
/homes/tmps/icetat/usr/src/redhat/BUILD/systemimager-4.0.2/initrd_source/build_dir/*bin/*
 
/homes/tmps/icetat/usr/src/redhat/BUILD/systemimager-4.0.2/initrd_source/build_dir/usr/*bin/*
I: Using ld-linux-x86-64.so.2 as dynamic linker.

===
D) MKLIBS script USED
===
MKLIBS FILE USED FROM 4.1.7
[ice...@atlas systemimager-4.0.2]$ ls -l 
/homes/tmps/icetat/usr/src/redhat/BUILD/systemimager-4.0.2/initrd_source/mklibs
-rwxr-xr-x 1 icetat ia64 21358 2010-01-13 12:34 
/homes/tmps/icetat/usr/src/redhat/BUILD/systemimager-4.0.2/initrd_source/mklibs
==
E)  LDD COMMAND TO SEE  LIB ASSOCIATED
==
PROBLEM DUE TO LVM2 under sbin/*
/homes/tmps/icetat/usr/src/redhat/BUILD/systemimager-4.0.2/tmp/boel_binaries/sbin

-rwxr-xr-x 1 icetat ia64 699312 2010-01-15 10:33 lvm
lrwxrwxrwx 1 icetat ia64  3 2010-01-15 10:33 vgcfgbackup - lvm
lrwxrwxrwx 1 icetat ia64  3 2010-01-15 

Re: [sisuite-users] LVM2.2.02.57 (mklibs, line 478, in module, raise No library provides non-weak + symbol) ERROR

2010-01-15 Thread Bernard Li
Hi Thierry:

On Fri, Jan 15, 2010 at 2:05 AM, Thierry Iceta thierry.ic...@bull.net wrote:

 My problem is when I try to include new LVM2.2.02.56 in
 systemimager-4.0.2 production environment  and compile (make ) under
 Fedora12
 I got an error when mklibs try to link sbin/* directory where lvm
 binaries are located.
 No probleme with LVM22.02.53 and under
 probleme  with LVM22.02.56 and   This LVM is requested for FEDORA12
 Here under you will find most of informations

Is there a reason why you need that version specifically?  Are you
saying that if you image a client using LVM 22.02.53 it is not
recognizable by Fedora 12?

Cheers,

Bernard

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
sisuite-users mailing list
sisuite-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sisuite-users