Hallo Vytautas, I had the same error yesterday. It seems that you have to change the order of the commandline in this way:
gcc ... .libs/libopenocd.so /home/vylu/downloads/ftd2xx/extracted/libftd2xx0.4.16_x86_64/static_lib/libftd2xx.a.0.4.16 -ldl -lpthread Regards, Hubert On Mon, May 25, 2009 at 11:53:24AM +0300, Vytautas Lukenskas wrote: > Hi all, > > I'm unable to compile latest trunk with ftd2xx library. Linker fails with > the > following error: > > make[3]: Entering directory `/usr/src/openocd/trunk/src' > /bin/sh ../libtool --tag=CC --mode=link > gcc -std=gnu99 -g -O2 > -I/home/vylu/downloads/ftd2xx/extracted/libftd2xx0.4.16_x86_64 -Wall > -Wstrict-prototypes -Wformat-security -Wextra -Wno-unused-parameter > -Wbad-function-cast -Wcast-align -Wredundant-decls -Werror -o > openocd main.o > libopenocd.la -ldl > /home/vylu/downloads/ftd2xx/extracted/libftd2xx0.4.16_x86_64/static_lib/libftd2xx.a.0.4.16 > -lpthread > gcc -std=gnu99 -g -O2 > -I/home/vylu/downloads/ftd2xx/extracted/libftd2xx0.4.16_x86_64 -Wall > -Wstrict-prototypes -Wformat-security -Wextra -Wno-unused-parameter > -Wbad-function-cast -Wcast-align -Wredundant-decls -Werror -o .libs/openocd > main.o > /home/vylu/downloads/ftd2xx/extracted/libftd2xx0.4.16_x86_64/static_lib/libftd2xx.a.0.4.16 > ./.libs/libopenocd.so -ldl -lpthread > ./.libs/libopenocd.so: undefined reference to `FT_GetLatencyTimer' > ./.libs/libopenocd.so: undefined reference to `FT_Close' > ./.libs/libopenocd.so: undefined reference to `FT_SetBitMode' > ./.libs/libopenocd.so: undefined reference to `FT_OpenEx' > ./.libs/libopenocd.so: undefined reference to `FT_Read' > ./.libs/libopenocd.so: undefined reference to `FT_SetTimeouts' > ./.libs/libopenocd.so: undefined reference to `FT_SetVIDPID' > ./.libs/libopenocd.so: undefined reference to `FT_Write' > ./.libs/libopenocd.so: undefined reference to `FT_SetLatencyTimer' > ./.libs/libopenocd.so: undefined reference to `FT_ListDevices' > ./.libs/libopenocd.so: undefined reference to `FT_Purge' > collect2: ld returned 1 exit status > ..... > etc. > > configure script parameters are: > ./configure --enable-maintainer-mode --enable-ft2232_ftd2xx > --with-ftd2xx-linux-tardir=/home/vylu/downloads/ftd2xx/extracted/libftd2xx0.4.16_x86_64 > > Are the latest revisions broken, or I just use wrong configure instructions? > > Regards, > vylu > _______________________________________________ > Openocd-development mailing list > Openocd-development@lists.berlios.de > https://lists.berlios.de/mailman/listinfo/openocd-development _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development