Patchwork libftdi

login
register
mail settings
Submitter Jaap de Jong
Date Nov. 27, 2012, 10:10 a.m.
Message ID <50B491AE.2090702@nedap.com>
Download mbox | patch
Permalink /patch/39651/
State Not Applicable
Headers show

Comments

Jaap de Jong - Nov. 27, 2012, 10:10 a.m.
On 11/23/2012 03:31 PM, Henning Heinold wrote:
> On Fri, Nov 23, 2012 at 11:20:56AM +0100, Jaap de Jong wrote:
>> Hi All,
>> on my buildserver under debian, libftdi does not compile.
>> Looks like some library issue.
>> Anyone an idea how to solve?
>> Thanks in advance!
>> Jaap
>>
>>
>> NOTE: package libftdi-0.19-r0: task do_compile: Started
>> ERROR: Function failed: do_compile (see /var/lib/jenkins/jobs/oe-core/develop/build/tmp-angstrom_v2012_05-eglibc/work/armv5te-angstrom-linux-gnueabi/libftdi-0.19-r0/temp/log.do_compile.21748
>> for further information)
>> ERROR: Logfile of failure stored in: /var/lib/jenkins/jobs/oe-core/develop/build/tmp-angstrom_v2012_05-eglibc/work/armv5te-angstrom-linux-gnueabi/libftdi-0.19-r0/temp/log.do_compile.21748
>> Log data follows:
>> | DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common',
>> 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi',
>> 'common']
>> | ERROR: Function failed: do_compile (see /var/lib/jenkins/jobs/oe-core/develop/build/tmp-angstrom_v2012_05-eglibc/work/armv5te-angstrom-linux-gnueabi/libftdi-0.19-r0/temp/log.do_compile.21748
>> for further information)
>> | NOTE: make -j2
>> | make  all-recursive
>> | make[1]: Entering directory `/data/jenkins/jobs/oe-core/develop/build/tmp-angstrom_v2012_05-eglibc/work/armv5te-angstrom-linux-gnueabi/libftdi-0.19-r0/libftdi-0.19'
>> | Making all in src
>> | make[2]: Entering directory `/data/jenkins/jobs/oe-core/develop/build/tmp-angstrom_v2012_05-eglibc/work/armv5te-angstrom-linux-gnueabi/libftdi-0.19-r0/libftdi-0.19/src'
>> | ../arm-angstrom-linux-gnueabi-libtool --tag=CC   --mode=compile
>> arm-angstrom-linux-gnueabi-gcc  -march=armv5te  -marm
>> -mthumb-interwork  -mtune=arm926ej-s --sysroot=/var/lib/jenkins/jobs/oe-core/develop/build/tmp-angstrom_v2012_05-eglibc/sysroots/nedap9g45
>> -DHAVE_CONFIG_H -I. -I..     -O2 -pipe -g
>> -feliminate-unused-debug-types -I/var/lib/jenkins/jobs/oe-core/develop/build/tmp-angstrom_v2012_05-eglibc/sysroots/nedap9g45/usr/include
>> -c -o ftdi.lo ftdi.c
>> | arm-angstrom-linux-gnueabi-libtool: compile:
>> arm-angstrom-linux-gnueabi-gcc -march=armv5te -marm
>> -mthumb-interwork -mtune=arm926ej-s --sysroot=/var/lib/jenkins/jobs/oe-core/develop/build/tmp-angstrom_v2012_05-eglibc/sysroots/nedap9g45
>> -DHAVE_CONFIG_H -I. -I.. -O2 -pipe -g -feliminate-unused-debug-types -I/var/lib/jenkins/jobs/oe-core/develop/build/tmp-angstrom_v2012_05-eglibc/sysroots/nedap9g45/usr/include
>> -c ftdi.c  -fPIC -DPIC -o .libs/ftdi.o
>> | arm-angstrom-linux-gnueabi-libtool: compile:
>> arm-angstrom-linux-gnueabi-gcc -march=armv5te -marm
>> -mthumb-interwork -mtune=arm926ej-s --sysroot=/var/lib/jenkins/jobs/oe-core/develop/build/tmp-angstrom_v2012_05-eglibc/sysroots/nedap9g45
>> -DHAVE_CONFIG_H -I. -I.. -O2 -pipe -g -feliminate-unused-debug-types -I/var/lib/jenkins/jobs/oe-core/develop/build/tmp-angstrom_v2012_05-eglibc/sysroots/nedap9g45/usr/include
>> -c ftdi.c -o ftdi.o >/dev/null 2>&1
>> | ../arm-angstrom-linux-gnueabi-libtool --tag=CC   --mode=link
>> arm-angstrom-linux-gnueabi-gcc  -march=armv5te  -marm
>> -mthumb-interwork  -mtune=arm926ej-s --sysroot=/var/lib/jenkins/jobs/oe-core/develop/build/tmp-angstrom_v2012_05-eglibc/sysroots/nedap9g45
>> -O2 -pipe -g -feliminate-unused-debug-types -I/var/lib/jenkins/jobs/oe-core/develop/build/tmp-angstrom_v2012_05-eglibc/sysroots/nedap9g45/usr/include
>> -version-info 20:0:19 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed
>> -o libftdi.la -rpath /usr/lib ftdi.lo  -L/lib -lusb
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> Fix the Makefile to not use this.
>
> Bye Henning
>
>
Fixed it.
Probably not this best way to do it, but it works.
Added a patch:

  AC_MSG_CHECKING([if libusb version is >= 0.1.7])

Patch

diff -urN a/configure.in b/configure.in
--- a/configure.in    2012-11-26 14:59:05.084788496 +0100
+++ b/configure.in    2012-11-26 14:59:21.665316347 +0100
@@ -19,6 +19,7 @@ 
  else
     AC_MSG_ERROR([*** libusb-config not found. You need a working 
libusb installation.])
  fi
+LIBS=""

  dnl check for version of libusb