[unixODBC-support] Need help compiling unixodbc for open-embedded

Alexander Varnin fenixk19 at mail.ru
Wed Feb 4 20:04:10 GMT 2015

I'm working on unixodbc (v2.3.2) recipe for OpenEmbedded to use it on
our ARM platform.

The way OpenEmbedded build autotools based packages assumes running
basic stuff - aclocal, autoconf to regenerate high-level build scripts.
And this led me to problem.

In the attached file there is a compilation error I receive.

My libtool is 2.4.2 everywhere. As I see, newly generated aclocal.m4
contains the inclusion of m4/ltversion.m4 file. And it contains this
reference to the 2.2.6 libtool.

In aclocal.m4 provided by v2.3.2 package on unixodbc website there is
m4/ltversion.m4 included as well, but version numbers are different from
those in the real presented file.

Is it ok just to manually update version numbers in m4/ltversion.m4 file
so it conforms with that provided in aclocal.m4?
-------------- next part --------------
DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common']
DEBUG: Executing shell function do_compile
NOTE: make -j 1
make  all-recursive
make[1]: Entering directory `/home/varnin/fsl-community-bsp/build-dir/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/unixodbc/2.3.2-r0/unixODBC-2.3.2'
Making all in extras
make[2]: Entering directory `/home/varnin/fsl-community-bsp/build-dir/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/unixodbc/2.3.2-r0/unixODBC-2.3.2/extras'
/bin/sh ../libtool  --tag=CC   --mode=compile arm-poky-linux-gnueabi-gcc  -march=armv7-a -mthumb-interwork -mfloat-abi=softfp -mfpu=neon --sysroot=/home/varnin/fsl-community-bsp/build-dir/tmp/sysroots/imx53qsb -DHAVE_CONFIG_H -I. -I.. -I../include    -O2 -pipe -g -feliminate-unused-debug-types -pthread -c -o strcasecmp.lo strcasecmp.c
libtool: Version mismatch error.  This is libtool 2.4.2, but the
libtool: definition of this LT_INIT comes from libtool 2.2.6.
libtool: You should recreate aclocal.m4 with macros from libtool 2.4.2
libtool: and run autoconf again.
make[2]: *** [strcasecmp.lo] Error 63
make[2]: Leaving directory `/home/varnin/fsl-community-bsp/build-dir/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/unixodbc/2.3.2-r0/unixODBC-2.3.2/extras'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/varnin/fsl-community-bsp/build-dir/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/unixodbc/2.3.2-r0/unixODBC-2.3.2'
make: *** [all] Error 2
ERROR: oe_runmake failed
WARNING: /home/varnin/fsl-community-bsp/build-dir/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/unixodbc/2.3.2-r0/temp/run.do_compile.687:1 exit 1 from
  exit 1
ERROR: Function failed: do_compile (log file is located at /home/varnin/fsl-community-bsp/build-dir/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/unixodbc/2.3.2-r0/temp/log.do_compile.687)

More information about the unixODBC-support mailing list