Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 396649 - dev-embedded/avrdude-5.11.1 emerge fails with TYPE_4232H errors
Summary: dev-embedded/avrdude-5.11.1 emerge fails with TYPE_4232H errors
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Embedded Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-01 07:14 UTC by tarek
Modified: 2012-05-06 00:54 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to circumvent the errors (avrdude-5.11.1-avrftdi.patch,406 bytes, patch)
2012-01-01 07:14 UTC, tarek
Details | Diff
ebuild to include patch (avrdude-5.11.1.ebuild,1.19 KB, text/plain)
2012-01-01 07:14 UTC, tarek
Details
emerge --info (info,5.46 KB, text/plain)
2012-01-01 07:15 UTC, tarek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tarek 2012-01-01 07:14:05 UTC
Created attachment 297501 [details, diff]
Patch to circumvent the errors

emerging avrdue-5.11.1 yields

avrftdi.c: In function ‘add_pin’:
avrftdi.c:141:5: error: ‘TYPE_4232H’ undeclared (first use in this function)
avrftdi.c:141:5: note: each undeclared identifier is reported only once for each function it appears in
avrftdi.c:145:10: error: ‘TYPE_2232H’ undeclared (first use in this function)
avrftdi.c: In function ‘add_pins’:
avrftdi.c:201:6: error: ‘TYPE_4232H’ undeclared (first use in this function)
avrftdi.c:205:11: error: ‘TYPE_2232H’ undeclared (first use in this function)
make[2]: *** [libavrdude_a-avrftdi.o] Error 1
make[2]: *** Waiting for unfinished jobs....

using 

dev-libs/libusb-1.08
dev-embedded/libftdi-0.19

/usr/include/ftdi.h shows

/** FTDI chip type */
enum ftdi_chip_type { TYPE_AM=0, TYPE_BM=1, TYPE_2232C=2, TYPE_R=3, TYPE_2232H=4, TYPE_4232H=5 };

ac_cfg.h shows HAVE_FTDI and HAVE_LIBUSB being set so avrftdi.c is pulling in ftdi.h

This should therefore work. What is really odd is that the function add_pin also includes references to TYPE_2232C and this one does not throw an error

As a quick and dirty created a patch to provide #defines to circumvent the problem.

ebuild, patch and emerge --info  provided.
Comment 1 tarek 2012-01-01 07:14:32 UTC
Created attachment 297503 [details]
ebuild to include patch
Comment 2 tarek 2012-01-01 07:15:22 UTC
Created attachment 297505 [details]
emerge --info
Comment 3 Michael Weber (RETIRED) gentoo-dev 2012-04-24 10:09:00 UTC
Looks like an automagic dep on libftdi, since it doesn't depend on libftdi and it compiles w/o libftdi being installed.
Comment 4 Michael Weber (RETIRED) gentoo-dev 2012-04-24 10:11:51 UTC
Sorry, I cannot reproduce this at all.

@tarek, can you please check if this problem really exists, thanks.
Comment 5 SpanKY gentoo-dev 2012-04-30 02:50:28 UTC
i can't reproduce this.  avrdude builds fine with libftdi 0.19 and 0.20.
Comment 6 tarek 2012-05-06 00:54:55 UTC
I have  upgraded to dev-embedded/libftdi-0.20 and I can now emerge the mainstream ebuild without problem.