On Fri, Aug 17, 2012 at 1:08 PM, Marco Righi <marco.ri...@gmail.com> wrote:
> Hi,
> I am sorry but this change is not enougth.
>
> If I try to compile (I attach the modified file) I got a segmentation
> error or segmentation fault (the displayed error is "[Errore di
> segmentazione]").
>
> collect2: error: ld terminated with signal 11 [Errore di segmentazione]

Thanks for testing. I am unable to compile with the current unstable
package on debian wheezy, but I copied your file you emailed and it
compiles without the segfault [1]. I compile both the code you posted
and the "WebClient" example without any errors.

I forwarded the patch upstream to the original author of the arduino
library port to gcc 4.7. I can't see which version of gcc-avr you are
using, but segfaults sometimes fall as a problem with ld. For now, I
guess we can just make sure we have an updated toolchain and see if it
was some configuration error.

[1]
{clean install of arduino}

showard@debian-testing:~$ arduino

{attempt to compile web client example}

/usr/share/arduino/libraries/Ethernet/Ethernet.cpp: In member function
‘void EthernetClass::begin(uint8_t*, IPAddress, IPAddress, IPAddress,
IPAddress)’:
/usr/share/arduino/libraries/Ethernet/Ethernet.cpp:64:39: error: no
matching function for call to
‘W5100Class::setIPAddress(IPAddress::<anonymous union>&)’
/usr/share/arduino/libraries/Ethernet/Ethernet.cpp:64:39: note: candidate is:
In file included from /usr/share/arduino/libraries/Ethernet/Ethernet.cpp:1:0:
/usr/share/arduino/libraries/Ethernet/utility/w5100.h:392:6: note:
void W5100Class::setIPAddress(uint8_t*)
/usr/share/arduino/libraries/Ethernet/utility/w5100.h:392:6: note:
no known conversion for argument 1 from ‘IPAddress::<anonymous union>’
to ‘uint8_t* {aka unsigned char*}’
/usr/share/arduino/libraries/Ethernet/Ethernet.cpp:65:38: error: no
matching function for call to
‘W5100Class::setGatewayIp(IPAddress::<anonymous union>&)’
/usr/share/arduino/libraries/Ethernet/Ethernet.cpp:65:38: note: candidate is:
In file included from /usr/share/arduino/libraries/Ethernet/Ethernet.cpp:1:0:
/usr/share/arduino/libraries/Ethernet/utility/w5100.h:368:6: note:
void W5100Class::setGatewayIp(uint8_t*)
/usr/share/arduino/libraries/Ethernet/utility/w5100.h:368:6: note:
no known conversion for argument 1 from ‘IPAddress::<anonymous union>’
to ‘uint8_t* {aka unsigned char*}’
/usr/share/arduino/libraries/Ethernet/Ethernet.cpp:66:38: error: no
matching function for call to
‘W5100Class::setSubnetMask(IPAddress::<anonymous union>&)’
/usr/share/arduino/libraries/Ethernet/Ethernet.cpp:66:38: note: candidate is:
In file included from /usr/share/arduino/libraries/Ethernet/Ethernet.cpp:1:0:
/usr/share/arduino/libraries/Ethernet/utility/w5100.h:376:6: note:
void W5100Class::setSubnetMask(uint8_t*)
/usr/share/arduino/libraries/Ethernet/utility/w5100.h:376:6: note:
no known conversion for argument 1 from ‘IPAddress::<anonymous union>’
to ‘uint8_t* {aka unsigned char*}’

{copy the new Ethernet.cpp file}

showard@debian-testing:~$ sudo cp ~/Downloads/Ethernet.cpp
/usr/share/arduino/libraries/Ethernet/Ethernet.cpp

showard@debian-testing:~$ arduino

{attempt to compile web client example}

Binary sketch size: 12,004 bytes (of a 32,256 byte maximum)

{success}


--
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to