RPM Community Forums

Mailing List Message of <rpm-users>

problem with popt when cross-compiling rpm-5.1.2

From: lai wei <lai56@yahoo.com.br>
Date: Thu 12 Jun 2008 - 15:36:17 CEST
Message-ID: <221729.98953.qm@web56611.mail.re3.yahoo.com>
I am cross-compiling rpm-5.1.2 in host system i686 for target powerpc, my targetsys files are installed in /home/wlai/targetsys directory, where I have installed popt whose lib in is /home/wlai/targetsys/usr/lib.

I run the configure with the following parameters:
CC=powerpc-unknown-linux-gnu-ar AR=powerpc-unknown-linux-gnu-ar AS=powerpc-unknown-linux-gnu-as CXX=powerpc-unknown-linux-gnu-g++
LD=powerpc-unknown-linux-gnu-ld NM=powerpc-unknown-linux-gnu-nm 
OBJCOPY=powerpc-unknown-linux-gnu-objcopy OBJDUMP=powerpc-unknown-linux-gnu-objdump
CPPFLAGS=" -I/targetsys/usr/include"
LDFLAGS="-L/targetsys/usr/lib -L/targetsys/lib"
./configure --without-selinux --disable-nls --build=i686-cross-linux --host=powerpc-unknown-linux-gnu 

then run make, and got the following erros:
/usr/lib/libpopt.so: could not read symbols: File in wrong format

why the libpopt.so in /usr/lib is catched and not in my tagetsys dir?
how can I force it to find library in my targetsys dir?

Received on Thu Jun 12 16:11:08 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.