[oe] Building xserver-xorg 1.6.1 for i686: libtool error

Michael Smith msmith at cbnco.com
Fri Jul 10 18:31:15 UTC 2009


Hi,

On my x86_64 build box, xserver-xorg's configure is generating 
i686-oe-linux-libtool instead of libtool, but the doltlibtool script is 
still looking for plain old libtool.

I worked around it with a symlink.

Wondering if anyone has a pointer where I can look to solve it 
permanently. It looks like libtool.m4 is setting 
ofile=${host_alias}-libtool, but xserver-xorg's acinclude.m4 is "dolt, a 
replacement for libtool" and it doesn't have the same ideas about what 
libtool should be called.

Thanks,
Mike

../doltlibtool --tag=CC   --mode=link i686-oe-linux-gcc 
-march=pentiumpro -DHAVE_DIX_CONFIG_H -Wall -Wpointer-arith 
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations 
-Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN 
-DHAS_STICKY_DIR_BIT -DDBUS_API_SUBJECT_TO_CHANGE

[blah blah blah]

-Wl,-O1 -Wl,--hash-style=gnu  -ldl -o libdix.la  atom.lo colormap.lo

[blah blah]

../doltlibtool: line 17: 
/home/michael/startitup/tmp/work/i686-oe-linux/xserver-xorg-2_1.6.1-r1/xorg-server-1.6.1/dix/../libtool: 
No such file or directory
../doltlibtool: line 17: exec: 
/home/michael/startitup/tmp/work/i686-oe-linux/xserver-xorg-2_1.6.1-r1/xorg-server-1.6.1/dix/../libtool: 
cannot execute: No such file or directory
make[2]: *** [libdix.la] Error 126



$ cat doltlibtool
#!/bin/bash
top_builddir_slash="${0%%doltlibtool}"
: ${top_builddir_slash:=./}
args=()
modeok=false
tagok=false
for arg in "$@"; do
     case "$arg" in
         --mode=compile) modeok=true ;;
         --tag=CC|--tag=CXX) tagok=true ;;
         *) args[${#args[@]}]="$arg" ;;
     esac
done
if $modeok && $tagok ; then
     . ${top_builddir_slash}doltcompile "${args[@]}"
else
     exec ${top_builddir_slash}libtool "$@"
fi




More information about the Openembedded-devel mailing list