On Wed, Oct 19, 2011 at 12:14, alexander barakin <alex.barakin@gmail.com> wrote:
On Wed, Oct 19, 2011 at 11:33, Rüdiger Meier <sweet_f_a@gmx.de> wrote:
On Wednesday 19 October 2011, alexander barakin wrote:
i understand that rpm-devel package from sle11 does not contain /usr/lib/pkgconfig/rpm.pc and therefore command "pkg-config --libs rpm" failes· in what package can be this file? or how else can i get LDFLAGS for rpm in sle11?
jfyi: in opensuse.11.4 and opensuse.factory command "pkg-config --libs rpm" returns "-lrpm -lrpmio"
Try something like this if ! pkg-config --libs rpms &>/dev/null ;then export rpm_LIBS="-lrpm -lrpmio"; fi %configure ...
(in doubt see configure --help whether rpm_LIBS is supported)
or you could ship such rpm.pc with your rpm sources and set PKG_CONFIG_PATH="." before configure.
it helped, but only partly· if factory - ok: $ ldd /usr/lib/perl5/vendor_perl/5.14.1/i586-linux-thread-multi/auto/URPM/URPM.so linux-gate.so.1 => (0xffffe000) librpm.so.2 => /usr/lib/librpm.so.2 (0xb76aa000) librpmio.so.2 => /usr/lib/librpmio.so.2 (0xb764c000) libc.so.6 => /lib/libc.so.6 (0xb74cb000) libpopt.so.0 => /lib/libpopt.so.0 (0xb74be000) libselinux.so.1 => /lib/libselinux.so.1 (0xb749f000) libcap.so.2 => /lib/libcap.so.2 (0xb7499000) libacl.so.1 => /lib/libacl.so.1 (0xb748f000) liblua.so.5.1 => /usr/lib/liblua.so.5.1 (0xb745e000) libdl.so.2 => /lib/libdl.so.2 (0xb7459000) libpthread.so.0 => /lib/libpthread.so.0 (0xb743e000) libbz2.so.1 => /lib/libbz2.so.1 (0xb742e000) libz.so.1 => /lib/libz.so.1 (0xb7416000) libelf.so.1 => /usr/lib/libelf.so.1 (0xb73fe000) liblzma.so.5 => /lib/liblzma.so.5 (0xb73d4000) /lib/ld-linux.so.2 (0xb78c6000) libattr.so.1 => /lib/libattr.so.1 (0xb73ce000) libm.so.6 => /lib/libm.so.6 (0xb73a2000)
in opensuse 11.4 - ok: $ ldd /usr/lib/perl5/vendor_perl/5.12.3/i586-linux-thread-multi/auto/URPM/URPM.so linux-gate.so.1 => (0xffffe000) librpm.so.1 => /usr/lib/librpm.so.1 (0xb7577000) librpmio.so.1 => /usr/lib/librpmio.so.1 (0xb7518000) librpmbuild.so.1 => /usr/lib/librpmbuild.so.1 (0xb74ed000) libc.so.6 => /lib/libc.so.6 (0xb7380000) liblua.so.5.1 => /usr/lib/liblua.so.5.1 (0xb734e000) libpopt.so.0 => /lib/libpopt.so.0 (0xb7341000) libselinux.so.1 => /lib/libselinux.so.1 (0xb7322000) libcap.so.2 => /lib/libcap.so.2 (0xb731c000) libacl.so.1 => /lib/libacl.so.1 (0xb7312000) libpthread.so.0 => /lib/libpthread.so.0 (0xb72f7000) libbz2.so.1 => /lib/libbz2.so.1 (0xb72e6000) libz.so.1 => /lib/libz.so.1 (0xb72cf000) libelf.so.1 => /usr/lib/libelf.so.1 (0xb72b7000) liblzma.so.5 => /lib/liblzma.so.5 (0xb728d000) libmagic.so.1 => /usr/lib/libmagic.so.1 (0xb726f000) /lib/ld-linux.so.2 (0xb7706000) libm.so.6 => /lib/libm.so.6 (0xb7244000) libdl.so.2 => /lib/libdl.so.2 (0xb723f000) libattr.so.1 => /lib/libattr.so.1 (0xb7239000)
but in sle11sp1: $ ldd /usr/lib/perl5/vendor_perl/5.10.0/i586-linux-thread-multi/auto/URPM/URPM.so linux-gate.so.1 => (0xffffe000) librpm-4.4.so => /usr/lib/librpm-4.4.so (0xb77a5000) librpmio-4.4.so => /usr/lib/librpmio-4.4.so (0xb76c3000) libc.so.6 => /lib/libc.so.6 (0xb7562000) librpmdb-4.4.so => /usr/lib/librpmdb-4.4.so (0xb745b000) libm.so.6 => /lib/libm.so.6 (0xb7432000) libdl.so.2 => /lib/libdl.so.2 (0xb742d000) libz.so.1 => /lib/libz.so.1 (0xb7418000) librt.so.1 => /lib/librt.so.1 (0xb740e000) libpthread.so.0 => /lib/libpthread.so.0 (0xb73f3000) libbz2.so.1 => /lib/libbz2.so.1 (0xb73e3000) libpopt.so.0 => /lib/libpopt.so.0 (0xb73d9000) libselinux.so.1 => /lib/libselinux.so.1 (0xb73bc000) /lib/ld-linux.so.2 (0xb789c000)
and error now: $ genhdlist2 . adding 2 new rpms not available in existing hdlist /usr/bin/perl: symbol lookup error: /usr/lib/perl5/vendor_perl/5.10.0/i586-linux-thread-multi/auto/URPM/URPM.so: undefined symbol: headerPutString there is no such function in rpm 4.4.2.3 (sle11sp1)· that is, this function must be ported· Adrian, do i need to do this? may be 11.4 and factory is enough? -- wbr, alexander barakin aka sash-kan. http://gnu.linuxcenter.ru -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org