* compiling lvm2 source on ppc64 arch
@ 2009-11-10 19:56 ` malahal
0 siblings, 0 replies; 2+ messages in thread
From: malahal @ 2009-11-10 19:56 UTC (permalink / raw)
To: lvm-devel, dm-devel
RHEL5.4 installed a 32 bit LVM2 rpm by default on a ppc64 machine. I
downloaded the corresponding source rpm and ran "rpmbuild -bb
--target=ppc <spec-file>" to build my own 32 bit rpm for debugging. It
failed with the following errors. Note that it can build ppc64 binary
rpm fine but doesn't work for me (I get errors while loading some shared
objects). How do I build a 32 bit rpm on ppc64 using lvm2 source rpm?
Thank you for any info.
gcc -o dmsetup.static dmsetup.o -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -Wl,--export-dynamic -L../libdm -L../lib -L../daemons/dmeventd -static \
-L../libdm/ioctl -ldevmapper -lreadline -lrt -lselinux -ldl -lncurses \
-lpthread
/usr/lib/gcc/ppc64-redhat-linux/4.1.2/../../../../lib/libselinux.a(load_policy.o): In function `selinux_mkload_policy':
(.text+0x154): undefined reference to `sepol_policy_kern_vers_max'
/usr/lib/gcc/ppc64-redhat-linux/4.1.2/../../../../lib/libselinux.a(load_policy.o): In function `selinux_mkload_policy':
(.text+0x1b0): undefined reference to `sepol_policy_kern_vers_min'
/usr/lib/gcc/ppc64-redhat-linux/4.1.2/../../../../lib/libselinux.a(load_policy.o): In function `selinux_mkload_policy':
(.text+0x2cc): undefined reference to `sepol_policy_file_create'
/usr/lib/gcc/ppc64-redhat-linux/4.1.2/../../../../lib/libselinux.a(load_policy.o): In function `selinux_mkload_policy':
Thanks, Malahal.
PS: I was able to compile 32 bit binary rpm by removing
"--enable-static_link and --enable-readline" and fixing other things in the
spec file that are directly related to static_link.
^ permalink raw reply [flat|nested] 2+ messages in thread
* compiling lvm2 source on ppc64 arch
@ 2009-11-10 19:56 ` malahal
0 siblings, 0 replies; 2+ messages in thread
From: malahal @ 2009-11-10 19:56 UTC (permalink / raw)
To: lvm-devel
RHEL5.4 installed a 32 bit LVM2 rpm by default on a ppc64 machine. I
downloaded the corresponding source rpm and ran "rpmbuild -bb
--target=ppc <spec-file>" to build my own 32 bit rpm for debugging. It
failed with the following errors. Note that it can build ppc64 binary
rpm fine but doesn't work for me (I get errors while loading some shared
objects). How do I build a 32 bit rpm on ppc64 using lvm2 source rpm?
Thank you for any info.
gcc -o dmsetup.static dmsetup.o -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -Wl,--export-dynamic -L../libdm -L../lib -L../daemons/dmeventd -static \
-L../libdm/ioctl -ldevmapper -lreadline -lrt -lselinux -ldl -lncurses \
-lpthread
/usr/lib/gcc/ppc64-redhat-linux/4.1.2/../../../../lib/libselinux.a(load_policy.o): In function `selinux_mkload_policy':
(.text+0x154): undefined reference to `sepol_policy_kern_vers_max'
/usr/lib/gcc/ppc64-redhat-linux/4.1.2/../../../../lib/libselinux.a(load_policy.o): In function `selinux_mkload_policy':
(.text+0x1b0): undefined reference to `sepol_policy_kern_vers_min'
/usr/lib/gcc/ppc64-redhat-linux/4.1.2/../../../../lib/libselinux.a(load_policy.o): In function `selinux_mkload_policy':
(.text+0x2cc): undefined reference to `sepol_policy_file_create'
/usr/lib/gcc/ppc64-redhat-linux/4.1.2/../../../../lib/libselinux.a(load_policy.o): In function `selinux_mkload_policy':
Thanks, Malahal.
PS: I was able to compile 32 bit binary rpm by removing
"--enable-static_link and --enable-readline" and fixing other things in the
spec file that are directly related to static_link.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-11-10 19:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-10 19:56 compiling lvm2 source on ppc64 arch malahal
2009-11-10 19:56 ` malahal
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.