Bug#689325: arduino: Ethernet Library Dns getHostByName doesn't work

2012-10-02 Thread Francesco Apollonio
Actually what you need to change in the IPAddress.h debian version is only what you can find into this new patch attached in this email. The two casts to (uint32_t*) are only valid and useful into the original version of the library, here they are completely useless. So it's better if you include t

Bug#689325: arduino: Ethernet Library Dns getHostByName doesn't work

2012-10-02 Thread Francesco Apollonio
OK. I didn't manage to use arduino original libraries but I found a solution for the gethostbyname function. The patch is very simple I took the code from the original header file (downloaded from the website) and I changed the operator line into the Debian package header file. It solves the probl

Bug#689325: arduino: Ethernet Library Dns getHostByName doesn't work

2012-10-02 Thread Scott Howard
On Tue, Oct 2, 2012 at 4:48 AM, Francesco Apollonio wrote: > Ok, I tried to copy all directories (arduino-1.0.1/libraries and > arduino-1.0.1/hardware/arduino) from the archive downloaded from arduino > website to the system path (/usr/share/arduino) reverting your modified > files. > > After that

Bug#689325: arduino: Ethernet Library Dns getHostByName doesn't work

2012-10-02 Thread Francesco Apollonio
Ok, I tried to copy all directories (arduino-1.0.1/libraries and arduino-1.0.1/hardware/arduino) from the archive downloaded from arduino website to the system path (/usr/share/arduino) reverting your modified files. After that I tried to compile my code with the IDE installed by the debian packag

Bug#689325: arduino: Ethernet Library Dns getHostByName doesn't work

2012-10-01 Thread Scott Howard
On Mon, Oct 1, 2012 at 3:11 PM, Francesco Apollonio wrote: > What are the toolchains that differ from the original arduino package? > I tried to use the original package from the website and it works well. > > So I'll be happy to help you to fix this package. > > Francesco Wonderful! Mainly, Ard

Bug#689325: arduino: Ethernet Library Dns getHostByName doesn't work

2012-10-01 Thread Francesco Apollonio
What are the toolchains that differ from the original arduino package? I tried to use the original package from the website and it works well. So I'll be happy to help you to fix this package. Francesco Il giorno 01/ott/2012 19:28, "Scott Howard" ha scritto: > On Mon, Oct 1, 2012 at 1:06 PM, Sc

Bug#689325: arduino: Ethernet Library Dns getHostByName doesn't work

2012-10-01 Thread Scott Howard
On Mon, Oct 1, 2012 at 1:06 PM, Scott Howard wrote: > 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]. That won't

Bug#689325: arduino: Ethernet Library Dns getHostByName doesn't work

2012-10-01 Thread Scott Howard
On Mon, Oct 1, 2012 at 11:50 AM, Pietrofrancesco Apollonio 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) inclu

Bug#689325: arduino: Ethernet Library Dns getHostByName doesn't work

2012-10-01 Thread Pietrofrancesco Apollonio
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: #include #include #include byte mac[] = { 0xDE, 0xAD, 0xBE,