On 12/07/2011, at 9:11 PM, Spencer Oliver wrote:

> On 12 July 2011 12:04, Steve Bennett <ste...@workware.net.au> wrote:
>> For libftd2xx1.0.4, which uses a different directory structure
>> than libftd2xx0.4.16
>> Without this fix the build fails with version 1.0.4 of the driver.
>> 
>> Note that this does not fix --with-ftd2xx-lib=shared
>> 
>> Signed-off-by: Steve Bennett <ste...@workware.net.au>
>> ---
> 
> That gets 64bit host through configure ok :)

Great.

The patch only promised to find the library, not fix the build.
I already sent two different patches to fix the build problem and
neither was accepted...

> 
> I get a lot of warnings with the new lib however
> ../../../../openocd/src/jtag/drivers/ft2232.c: In function ‘ft2232_write’:
> ../../../../openocd/src/jtag/drivers/ft2232.c:518: error: format ‘%lu’
> expects type ‘long unsigned int’, but argument 6 has type ‘FT_STATUS’
> ../../../../openocd/src/jtag/drivers/ft2232.c: In function ‘ft2232_read’:
> ../../../../openocd/src/jtag/drivers/ft2232.c:561: error: format ‘%lu’
> expects type ‘long unsigned int’, but argument 6 has type ‘FT_STATUS’
> ../../../../openocd/src/jtag/drivers/ft2232.c: In function 
> ‘ft2232_init_ftd2xx’:
> ../../../../openocd/src/jtag/drivers/ft2232.c:2218: error: format
> ‘%lu’ expects type ‘long unsigned int’, but argument 6 has type
> ‘FT_STATUS’
> ../../../../openocd/src/jtag/drivers/ft2232.c:2222: error: format
> ‘%lu’ expects type ‘long unsigned int’, but argument 6 has type
> ‘FT_STATUS’
> ../../../../openocd/src/jtag/drivers/ft2232.c:2238: error: format
> ‘%lu’ expects type ‘long unsigned int’, but argument 6 has type
> ‘DWORD’
> ../../../../openocd/src/jtag/drivers/ft2232.c:2257: error: format
> ‘%lu’ expects type ‘long unsigned int’, but argument 6 has type
> ‘FT_STATUS’
> ../../../../openocd/src/jtag/drivers/ft2232.c:2263: error: format
> ‘%lu’ expects type ‘long unsigned int’, but argument 6 has type
> ‘FT_STATUS’
> ../../../../openocd/src/jtag/drivers/ft2232.c:2273: error: format
> ‘%lu’ expects type ‘long unsigned int’, but argument 6 has type
> ‘FT_STATUS’
> ../../../../openocd/src/jtag/drivers/ft2232.c:2279: error: format
> ‘%lu’ expects type ‘long unsigned int’, but argument 6 has type
> ‘FT_STATUS’
> ../../../../openocd/src/jtag/drivers/ft2232.c:2285: error: format
> ‘%lu’ expects type ‘long unsigned int’, but argument 6 has type
> ‘FT_STATUS’
> ../../../../openocd/src/jtag/drivers/ft2232.c:2295: error: format
> ‘%lu’ expects type ‘long unsigned int’, but argument 6 has type
> ‘FT_DEVICE’
> ../../../../openocd/src/jtag/drivers/ft2232.c:2296: error: format
> ‘%lu’ expects type ‘long unsigned int’, but argument 6 has type
> ‘DWORD’
> ../../../../openocd/src/jtag/drivers/ft2232.c: In function
> ‘ft2232_purge_ftd2xx’:
> ../../../../openocd/src/jtag/drivers/ft2232.c:2310: error: format
> ‘%lu’ expects type ‘long unsigned int’, but argument 6 has type
> ‘FT_STATUS’
> ../../../../openocd/src/jtag/drivers/ft2232.c: In function
> ‘signalyzer_h_led_set’:
> ../../../../openocd/src/jtag/drivers/ft2232.c:3631: error: format
> ‘%lu’ expects type ‘long unsigned int’, but argument 6 has type
> ‘FT_STATUS’
> ../../../../openocd/src/jtag/drivers/ft2232.c:3639: error: format
> ‘%lu’ expects type ‘long unsigned int’, but argument 6 has type
> ‘FT_STATUS’
> ../../../../openocd/src/jtag/drivers/ft2232.c:3647: error: format
> ‘%lu’ expects type ‘long unsigned int’, but argument 6 has type
> ‘FT_STATUS’
> ../../../../openocd/src/jtag/drivers/ft2232.c:3654: error: format
> ‘%lu’ expects type ‘long unsigned int’, but argument 6 has type
> ‘FT_STATUS’
> ../../../../openocd/src/jtag/drivers/ft2232.c: In function 
> ‘signalyzer_h_init’:
> ../../../../openocd/src/jtag/drivers/ft2232.c:3743: error: format
> ‘%lu’ expects type ‘long unsigned int’, but argument 6 has type
> ‘FT_STATUS’
> ../../../../openocd/src/jtag/drivers/ft2232.c:3753: error: format
> ‘%lu’ expects type ‘long unsigned int’, but argument 6 has type
> ‘FT_STATUS’
> ../../../../openocd/src/jtag/drivers/ft2232.c:3767: error: format
> ‘%lu’ expects type ‘long unsigned int’, but argument 6 has type
> ‘FT_STATUS’
> ../../../../openocd/src/jtag/drivers/ft2232.c:3774: error: format
> ‘%lu’ expects type ‘long unsigned int’, but argument 6 has type
> ‘FT_STATUS’
> ../../../../openocd/src/jtag/drivers/ft2232.c:3781: error: format
> ‘%lu’ expects type ‘long unsigned int’, but argument 6 has type
> ‘FT_STATUS’
> ../../../../openocd/src/jtag/drivers/ft2232.c:3789: error: format
> ‘%lu’ expects type ‘long unsigned int’, but argument 6 has type
> ‘FT_STATUS’
> ../../../../openocd/src/jtag/drivers/ft2232.c:3796: error: format
> ‘%lu’ expects type ‘long unsigned int’, but argument 6 has type
> ‘FT_STATUS’
> ../../../../openocd/src/jtag/drivers/ft2232.c:3803: error: format
> ‘%lu’ expects type ‘long unsigned int’, but argument 6 has type
> ‘FT_STATUS’
> ../../../../openocd/src/jtag/drivers/ft2232.c:3810: error: format
> ‘%lu’ expects type ‘long unsigned int’, but argument 6 has type
> ‘FT_STATUS’
> ../../../../openocd/src/jtag/drivers/ft2232.c:3819: error: format
> ‘%lu’ expects type ‘long unsigned int’, but argument 6 has type
> ‘FT_STATUS’
> ../../../../openocd/src/jtag/drivers/ft2232.c:3833: error: format
> ‘%lu’ expects type ‘long unsigned int’, but argument 6 has type
> ‘FT_STATUS’
> ../../../../openocd/src/jtag/drivers/ft2232.c:3898: error: format
> ‘%lu’ expects type ‘long unsigned int’, but argument 6 has type
> ‘FT_STATUS’
> ../../../../openocd/src/jtag/drivers/ft2232.c:3906: error: format
> ‘%lu’ expects type ‘long unsigned int’, but argument 6 has type
> ‘FT_STATUS’
> ../../../../openocd/src/jtag/drivers/ft2232.c:3916: error: format
> ‘%lu’ expects type ‘long unsigned int’, but argument 6 has type
> ‘FT_STATUS’
> ../../../../openocd/src/jtag/drivers/ft2232.c:3925: error: format
> ‘%lu’ expects type ‘long unsigned int’, but argument 6 has type
> ‘FT_STATUS’
> ../../../../openocd/src/jtag/drivers/ft2232.c:3933: error: format
> ‘%lu’ expects type ‘long unsigned int’, but argument 6 has type
> ‘FT_STATUS’
> ../../../../openocd/src/jtag/drivers/ft2232.c:3943: error: format
> ‘%lu’ expects type ‘long unsigned int’, but argument 6 has type
> ‘FT_STATUS’
> ../../../../openocd/src/jtag/drivers/ft2232.c:3952: error: format
> ‘%lu’ expects type ‘long unsigned int’, but argument 6 has type
> ‘FT_STATUS’
> ../../../../openocd/src/jtag/drivers/ft2232.c:3961: error: format
> ‘%lu’ expects type ‘long unsigned int’, but argument 6 has type
> ‘FT_STATUS’
> ../../../../openocd/src/jtag/drivers/ft2232.c:4033: error: format
> ‘%lu’ expects type ‘long unsigned int’, but argument 6 has type
> ‘FT_STATUS’
> ../../../../openocd/src/jtag/drivers/ft2232.c:4042: error: format
> ‘%lu’ expects type ‘long unsigned int’, but argument 6 has type
> ‘FT_STATUS’
> ../../../../openocd/src/jtag/drivers/ft2232.c:4054: error: format
> ‘%lu’ expects type ‘long unsigned int’, but argument 6 has type
> ‘FT_STATUS’
> ../../../../openocd/src/jtag/drivers/ft2232.c:4063: error: format
> ‘%lu’ expects type ‘long unsigned int’, but argument 6 has type
> ‘FT_STATUS’
> ../../../../openocd/src/jtag/drivers/ft2232.c:4072: error: format
> ‘%lu’ expects type ‘long unsigned int’, but argument 6 has type
> ‘FT_STATUS’
> ../../../../openocd/src/jtag/drivers/ft2232.c:4084: error: format
> ‘%lu’ expects type ‘long unsigned int’, but argument 6 has type
> ‘FT_STATUS’
> ../../../../openocd/src/jtag/drivers/ft2232.c:4093: error: format
> ‘%lu’ expects type ‘long unsigned int’, but argument 6 has type
> ‘FT_STATUS’
> ../../../../openocd/src/jtag/drivers/ft2232.c:4102: error: format
> ‘%lu’ expects type ‘long unsigned int’, but argument 6 has type
> ‘FT_STATUS’
> 
> Cheers
> Spen
> 

--
µWeb: Embedded Web Framework - http://uweb.workware.net.au/
WorkWare Systems Pty Ltd
W: www.workware.net.au      P: +61 434 921 300
E: ste...@workware.net.au   F: +61 7 3391 6002





_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to