Gentoo Archives: gentoo-dev

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-dev@l.g.o
Cc: vapier@g.o, jurek@g.o, dev-embedded@g.o
Subject: [gentoo-dev] (resend) dev-embedded/libftd2xx move to '/opt' breaks dev-embedded/openocd
Date: Sun, 15 Aug 2010 21:07:57
Message-Id: 20100815231253.40b08e40@sf.home
1 Hi
2
3 I tried to build (i don't know what do i need of those for sheevaplug)
4 USE="ftd2xx ftdi parport presto usb" dev-embedded/openocd
5 and got failure:
6
7 checking for ftd2xx.h... yes
8 checking for library containing FT_GetLibraryVersion... no
9 configure: error: You appear to be missing the FTD2xx driver library.
10
11 !!! ERROR in dev-embedded/openocd-0.3.1::gentoo:
12 !!! In econf at line 1719
13 !!! econf failed
14
15 config.log snippet:
16
17 configure:17012: x86_64-pc-linux-gnu-gcc -std=gnu99 -o conftest -O2 -pipe -I${prefix}/include -Wl,-O1 -Wl,--as-needed -Wl,-O1
18 -Wl,--as-needed -L/usr/lib -Wl,-rpath,/usr/lib conftest.c -lftd2xx -ldl >&5
19 /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lftd2xx
20
21 Seems it's a result of move and lack of env.d entry
22
23 > *libftd2xx-0.4.16 (17 Jun 2009)
24 >
25 > 17 Jun 2009; Mike Frysinger <vapier@g.o> +libftd2xx-0.4.16.ebuild:
26 > Version bump, add multilib support #261315 by Micke Prag, and fix path
27 > install #261286 by Diego E. Pettenò.
28
29 My /etc/ld.so.conf.d/ is empty, and /etc/ld.so.conf contains:
30
31 [sf] /etc:cat ld.so.conf
32 # ld.so.conf autogenerated by eselect
33 # Make all changes to /etc/env.d files
34 /usr/local/lib
35 include ld.so.conf.d/*.conf
36 //usr/lib32/opengl/xorg-x11/lib
37 //usr/lib64/opengl/xorg-x11/lib
38 /lib
39 /usr/lib
40 /lib64
41 /usr/lib64
42 /usr/local/lib64
43 /lib32
44 /usr/lib32
45 /usr/local/lib32
46 /usr/x86_64-pc-linux-gnu/lib
47 /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.4
48 /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.4/32
49 /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2
50 /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/32
51 //usr/lib64/xulrunner-1.9.2
52 /usr/lib64/qca2
53 /usr/lib/qt4
54 /usr/lib64/qt4
55 /usr/lib32/qt4
56 /usr/lib64/postgresql-9.0/lib64
57 /usr/lib64/sidplay/builders
58 /usr/lib/sidplay/builders
59 /usr/games/lib
60 /usr/games/lib64
61 /usr/games/lib32
62
63 Sorry for not patching it myself. I haven't decided what to choose:
64
65 1. just envadd LDPATH="/opt/lib64" (but it can occur in many other ebuilds)
66 2. push something similar to baselayout (we have /usr/local/lib after all)
67 3. move this library to /opt/libftd2xx/lib64 and envadd LDPATH= there
68
69 UPD.:
70 I fixed it for myself by disabling faulty stuff: USE="-ftd2xx -presto".
71 Was enough for my device, but libftd2xx smells unusable.
72
73 --
74
75 Sergei

Attachments

File name MIME type
signature.asc application/pgp-signature