On Mon, Oct 1, 2012 at 11:50 AM, Pietrofrancesco Apollonio <france...@ldlabs.org> wrote: > Package: arduino > Version: 1:1.0.1+dfsg-6 > Severity: important > > Dear Maintainer, > I was tring to compile a simple code to make a translation from the hostname > to > an IP address using the Arduino IDE (and libraries) included in debian sid:
Thanks for the careful debugging. Long story short, the original Ethernet library has some hacks in it that don't work with the the new compiler in Debian (gcc 4.7). We patched the code so that the ipaddress class is the union of address.a8 and address.a32 depending if you wanted uint8_t or uint32_t returned. I'd really appreciate it if you could help me out since I don't have the hardware: in /usr/share/arduino/libraries/Ethernet/Dns.cpp find and replace: aResult[segment] with aResult.a8[segment] There are two occurrences of aResult[segment] that will need to be replaced with aResult.a8[segment]. Thanks for your help - it's a bit annoying now while Debian and Arduino's packages have a different toolchain, but hopefully our work with the new toolchain can pass back patches to Arduino to help them when they go to port. And in the meantime, Debian package users would have more optimized binaries on their arduinos (smaller/faster). [1] andybrown.me.uk/wk/2012/04/28/avr-gcc-4-7-0-and-avr-libc-1-8-0-compiled-for-windows/ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org