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 problem with DNS but when the problem with the latest version of avr-gcc will be solved, I think it's better to not differ to much from the upstream code. On 2 October 2012 14:41, Scott Howard <showard...@gmail.com> wrote: > On Tue, Oct 2, 2012 at 4:48 AM, Francesco Apollonio > <france...@ldlabs.org> 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 I tried to compile my code with the IDE installed by the > debian > > package and It works and the gethostbyname returns the right address. > > > > Maybe do we need only to revert the modified files? > > Thanks, can you try to compile the webserver and webclient Ethernet > examples too? A user had trouble with them previously and asked to > apply the patches from the blog posted above. However, I have a > feeling it may be that the patch just takes advantage of some compiler > optimizations and is not essential to the library's compilation. If it > works without the patches, I'll revert the Ethernet library patches. > Thanks again! >
IPAddress.h.patch
Description: Binary data