Discussion:
[UrJTAG-dev] Making release 0.10
Gregg Levine
2012-10-22 02:36:07 UTC
Permalink
Hello!
I've downloaded the source code from the site, and the object code
only library from the FTDI site, and installed it, and of course
extracted the source code. After bootstrapping the configure script so
that it knows where to find the OCO library I execute it. And run the
make command expecting nothing to go wrong. It did. This is what
happens:
Script started on Sun 21 Oct 2012 10:29:10 PM EDT
***@rsl_spock:/usr/local/urjtag/urjtag-0.10# make
make all-recursive
make[1]: Entering directory `/usr/local/urjtag/urjtag-0.10'
Making all in doc
make[2]: Entering directory `/usr/local/urjtag/urjtag-0.10/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/local/urjtag/urjtag-0.10/doc'
Making all in include
make[2]: Entering directory `/usr/local/urjtag/urjtag-0.10/include'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/local/urjtag/urjtag-0.10/include'
Making all in data
make[2]: Entering directory `/usr/local/urjtag/urjtag-0.10/data'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/local/urjtag/urjtag-0.10/data'
Making all in src
make[2]: Entering directory `/usr/local/urjtag/urjtag-0.10/src'
Making all in flash
make[3]: Entering directory `/usr/local/urjtag/urjtag-0.10/src/flash'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/local/urjtag/urjtag-0.10/src/flash'
Making all in lib
make[3]: Entering directory `/usr/local/urjtag/urjtag-0.10/src/lib'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/local/urjtag/urjtag-0.10/src/lib'
Making all in tap
make[3]: Entering directory `/usr/local/urjtag/urjtag-0.10/src/tap'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/local/urjtag/urjtag-0.10/src/tap'
Making all in part
make[3]: Entering directory `/usr/local/urjtag/urjtag-0.10/src/part'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/local/urjtag/urjtag-0.10/src/part'
Making all in bus
make[3]: Entering directory `/usr/local/urjtag/urjtag-0.10/src/bus'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/local/urjtag/urjtag-0.10/src/bus'
Making all in cmd
make[3]: Entering directory `/usr/local/urjtag/urjtag-0.10/src/cmd'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/local/urjtag/urjtag-0.10/src/cmd'
Making all in svf
make[3]: Entering directory `/usr/local/urjtag/urjtag-0.10/src/svf'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/local/urjtag/urjtag-0.10/src/svf'
Making all in bsdl
make[3]: Entering directory `/usr/local/urjtag/urjtag-0.10/src/bsdl'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/local/urjtag/urjtag-0.10/src/bsdl'
make[3]: Entering directory `/usr/local/urjtag/urjtag-0.10/src'
gcc -g -O2 -I/usr/lib/libftd2xx -L/usr/lib/libftd2xx -Wall -o jtag
jtag.o -Lcmd -lcmd -Ltap -ltap -Lpart -lpart -Llib -ljtaglib -Lflash
-lflash -Ltap -ltap -Lflash -lflash -Lbus -lbus -lm -Lsvf -lsvf -Lbsdl
-lbsdl -lftd2xx -L/usr/lib -lftdi -L/usr/lib -lusb -lrt -lreadline
-ltermcap -L/usr/lib -lusb
/usr/lib/libftd2xx/libftd2xx.a(ftd2xx.o): In function `InitCheckDevice':
ftd2xx.c:(.text+0x315): undefined reference to `dlopen'
ftd2xx.c:(.text+0x33b): undefined reference to `dlopen'
ftd2xx.c:(.text+0x378): undefined reference to `dlsym'
ftd2xx.c:(.text+0x383): undefined reference to `dlerror'
/usr/lib/libftd2xx/libftd2xx.a(ftd2xx.o): In function `my_init':
ftd2xx.c:(.text+0x44c): undefined reference to `dlclose'
/usr/lib/libftd2xx/libftd2xx.a(ftd2xx.o): In function `DeviceMatch':
ftd2xx.c:(.text+0x537): undefined reference to `dlclose'
collect2: ld returned 1 exit status
make[3]: *** [jtag] Error 1
make[3]: Leaving directory `/usr/local/urjtag/urjtag-0.10/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/urjtag/urjtag-0.10/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/urjtag/urjtag-0.10'
make: *** [all] Error 2
***@rsl_spock:/usr/local/urjtag/urjtag-0.10# exit
exit

Script done on Sun 21 Oct 2012 10:29:18 PM EDT

Not surprisingly when asking Google to help find the library it
brought up an earlier discussion on this list concerning that dratted
library.
-----
Gregg C Levine ***@gmail.com
"This signature fought the Time Wars, time and again."
Mike Frysinger
2012-10-22 05:37:12 UTC
Permalink
Post by Gregg Levine
gcc -g -O2 -I/usr/lib/libftd2xx -L/usr/lib/libftd2xx -Wall -o jtag
jtag.o -Lcmd -lcmd -Ltap -ltap -Lpart -lpart -Llib -ljtaglib -Lflash
-lflash -Ltap -ltap -Lflash -lflash -Lbus -lbus -lm -Lsvf -lsvf -Lbsdl
-lbsdl -lftd2xx -L/usr/lib -lftdi -L/usr/lib -lusb -lrt -lreadline
-ltermcap -L/usr/lib -lusb
add -ldl to the end of this link line
-mike
Gregg Levine
2012-10-22 05:51:30 UTC
Permalink
Post by Mike Frysinger
Post by Gregg Levine
gcc -g -O2 -I/usr/lib/libftd2xx -L/usr/lib/libftd2xx -Wall -o jtag
jtag.o -Lcmd -lcmd -Ltap -ltap -Lpart -lpart -Llib -ljtaglib -Lflash
-lflash -Ltap -ltap -Lflash -lflash -Lbus -lbus -lm -Lsvf -lsvf -Lbsdl
-lbsdl -lftd2xx -L/usr/lib -lftdi -L/usr/lib -lusb -lrt -lreadline
-ltermcap -L/usr/lib -lusb
add -ldl to the end of this link line
-mike
Hello!
Mike I stuck it there, and now this happens:
gcc -g -O2 -I/usr/lib/libftd2xx -L/usr/lib/libftd2xx -Wall -o jtag
jtag.o -Lcmd -lcmd -Ltap -ltap -Lpart -lpart -Llib -ljtaglib -Lflash
-lflash -Ltap -ltap -Lflash -lflash -Lbus -lbus -lm -Lsvf -lsvf -Lbsdl
-lbsdl -lftd2xx -L/usr/lib -lftdi -L/usr/lib -lusb -lrt -lreadline
-ltermcap -L/usr/lib -lusb
/usr/lib/libftd2xx/libftd2xx.a(ftd2xx.o): In function `InitCheckDevice':
ftd2xx.c:(.text+0x315): undefined reference to `dlopen'
ftd2xx.c:(.text+0x33b): undefined reference to `dlopen'
ftd2xx.c:(.text+0x378): undefined reference to `dlsym'
ftd2xx.c:(.text+0x383): undefined reference to `dlerror'
/usr/lib/libftd2xx/libftd2xx.a(ftd2xx.o): In function `my_init':
ftd2xx.c:(.text+0x44c): undefined reference to `dlclose'
/usr/lib/libftd2xx/libftd2xx.a(ftd2xx.o): In function `DeviceMatch':
ftd2xx.c:(.text+0x537): undefined reference to `dlclose'
collect2: ld returned 1 exit status
make[3]: *** [jtag] Error 1
make[3]: Leaving directory `/usr/local/urjtag/urjtag-0.10/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/urjtag/urjtag-0.10/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/urjtag/urjtag-0.10'
make: *** [all] Error 2

I am seriously considering doing it all over again without the
references to both the OCO library and the settings that would
probably need it, especially since the folks at FTDI actually name the
open source one directly.
-----
Gregg C Levine ***@gmail.com
"This signature fought the Time Wars, time and again."
Mike Frysinger
2012-10-22 06:02:45 UTC
Permalink
Post by Gregg Levine
Post by Mike Frysinger
Post by Gregg Levine
gcc -g -O2 -I/usr/lib/libftd2xx -L/usr/lib/libftd2xx -Wall -o jtag
jtag.o -Lcmd -lcmd -Ltap -ltap -Lpart -lpart -Llib -ljtaglib -Lflash
-lflash -Ltap -ltap -Lflash -lflash -Lbus -lbus -lm -Lsvf -lsvf -Lbsdl
-lbsdl -lftd2xx -L/usr/lib -lftdi -L/usr/lib -lusb -lrt -lreadline
-ltermcap -L/usr/lib -lusb
add -ldl to the end of this link line
gcc -g -O2 -I/usr/lib/libftd2xx -L/usr/lib/libftd2xx -Wall -o jtag
jtag.o -Lcmd -lcmd -Ltap -ltap -Lpart -lpart -Llib -ljtaglib -Lflash
-lflash -Ltap -ltap -Lflash -lflash -Lbus -lbus -lm -Lsvf -lsvf -Lbsdl
-lbsdl -lftd2xx -L/usr/lib -lftdi -L/usr/lib -lusb -lrt -lreadline
-ltermcap -L/usr/lib -lusb
there is no -ldl here

you probably can edit the src/Makefile and add -ldl after every place where
-lftd2xx shows up
-mike

Loading...