You probably need something like the attached patch. Cross building sucks.
-Corey
ZhiHuaXu wrote:
>hi,
> When I use the cross-complie tools compile the openipmi,there are some
> errors.
>
> My linux's vesion is 2.4.20 and the openipmi's vesion is 1.4.26.
>
>[EMAIL PROTECTED] OpenIPMI-1.4.26]#./configure --disable-dummy --enable-ipmi
>--disable-snmp_bc --enable-daemon --disable-ipmidirect --enable-examples
>--enable-clients CC=ppc_8xx-gcc CPP=ppc_8xx-cpp RANLIB=ppc_8xx-ranlib
>STRIP=ppc_8xx-strip AR=ppc_8xx-ar NM=ppc_8xx-nm OBJDUMP=ppc_8xx-objdump
>LD=ppc_8xx-ld --build=ppc --host=i686-pc-linux-gnu --prefix=/opt/nfs
>--with-ucdsnmp=no
>
>[EMAIL PROTECTED] OpenIPMI-1.4.26]#make
>
>ppc_8xx-gcc -Wall -I../include -DIPMI_CHECK_LOCKS -g -O2 -o .libs/ipmilan
>-rdynamic lanserv.o /usr/lib/libpopt.so ./.libs/libIPMIlanserv.so
>/home/OpenIPMI-1.4.26/utils/.libs/libOpenIPMIutils.so -Wl,--rpath
>-Wl,/opt/nfs/lib
>/usr/lib/libpopt.so: could not read symbols: Invalid operation
>collect2: ld returned 1 exit status
>make[1]: *** [ipmilan] Error 1
>make[1]: Leaving directory `/home/OpenIPMI-1.4.26/lanserv'
>make: *** [all-recursive] Error 1
>
> could you please help me regarding my problem.
>
> Thank you
>R颧�:&q玔嘿辻踙v墾^y踙碴i⒒py�渮�r赈�!灦薾}鱤濌畨�%�瓎氜妠^偠瓂踍r钖�殤歙焊鑝娆夑茫
>濉艦m*az穩bq玝灝鳙縘5m�v壚ェ!xgxΒm��靭V勤朏牆�遍\櫺濱"t
>咏=n'郗翮穁�
>桩6:棫姍朕枈^甪)鄸+-:棫姍朕枈^甔�(悍~娻zw瓎踚��鍔薼矉玵玷�咤娝l⺋)撸�)zx'^介hper=
>
Removes libtool la searching and modifies defaulting relinking to not
use /usr/lib.
--- old/ltmain.sh 2005-03-29 16:10:22.810557234 -0600
+++ new/ltmain.sh 2005-03-29 16:11:46.388945832 -0600
@@ -1990,20 +1990,7 @@
continue
fi
name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
- for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
- for search_ext in .la $std_shrext .so .a; do
- # Search the libtool library
- lib="$searchdir/lib${name}${search_ext}"
- if test -f "$lib"; then
- if test "$search_ext" = ".la"; then
- found=yes
- else
- found=no
- fi
- break 2
- fi
- done
- done
+ found=no
if test "$found" != yes; then
# deplib doesn't seem to be a libtool library
if test "$linkmode,$pass" = "prog,link"; then
@@ -2629,18 +2616,6 @@
else
add="$libdir/$linklib"
fi
- else
- # We cannot seem to hardcode it, guess we'll fake it.
- add_dir="-L$libdir"
- # Try looking first in the location we're being installed to.
- if test -n "$inst_prefix_dir"; then
- case "$libdir" in
- [\\/]*)
- add_dir="$add_dir -L$inst_prefix_dir$libdir"
- ;;
- esac
- fi
- add="-l$name"
fi
if test "$linkmode" = prog; then