[muscle] AW: Cannot compile on AMD64

  • From: Vorwerk Peter <peter.vorwerk@xxxxxxxxxxx>
  • To: "'muscle@xxxxxxxxxxxxx'" <muscle@xxxxxxxxxxxxx>
  • Date: Wed, 29 Sep 2004 18:15:51 +0200

Hello,

looks like this is a general problem with 64bit systems.

Look into ./util/NetworkUtilityFunctions.cpp: line 37
and make sure your system will use the "int" definition,
and not size_t.

Regards,
Mit freundlichen Gr=FC=DFen

Peter Vorwerk

_________________________________________________________________
Siemens Transportation Systems
Rail Automation, TS RA D OC 1
Postfach 33 27, 38023 Braunschweig
Tel.    : +49 (0) 531 /  226 - 2017
Fax     : +49 (0) 531 / 2277 - 2017
Mobil   : +49 (0) 172 / 616 11 56
Email   : mailto:Peter.Vorwerk@xxxxxxxxxxx
Internet: http://www.siemens.com/transportation/rail-automation



-----Urspr=FCngliche Nachricht-----
Von: muscle-bounce@xxxxxxxxxxxxx [mailto:muscle-bounce@xxxxxxxxxxxxx]Im
Auftrag von Julien Torr=E8s
Gesendet: Mittwoch, 29. September 2004 18:04
An: muscle@xxxxxxxxxxxxx
Betreff: [muscle] Cannot compile on AMD64


Hello.

We have just bought a new AMD64, and our application does not compile =
anymo=3D
re.=3D20
Here are the errors :
=3D2E./util/NetworkUtilityFunctions.cpp: In function `status_t=3D20
muscle::BindUDPSocket(int, short unsigned int, uint16*, long unsigned =
int)':
=3D2E./util/NetworkUtilityFunctions.cpp:83: error: cannot convert =
`net_length=3D
_t*'=3D20
to `socklen_t*' for argument `3' to `int getsockname(int, =
sockaddr*,=3D20
socklen_t*)'
=3D2E./util/NetworkUtilityFunctions.cpp: In function `int=3D20
muscle::CreateAcceptingSocket(short unsigned int, int, uint16*, long =
unsign=3D
ed=3D20
int)':
=3D2E./util/NetworkUtilityFunctions.cpp:149: error: cannot convert =
`net_lengt=3D
h_t*'=3D20
to `socklen_t*' for argument `3' to `int getsockname(int, =
sockaddr*,=3D20
socklen_t*)'
=3D2E./util/NetworkUtilityFunctions.cpp: In function `int32=3D20
muscle::ReceiveDataUDP(int, void*, long unsigned int, bool, =
uint32*,=3D20
uint16*)':
=3D2E./util/NetworkUtilityFunctions.cpp:177: error: cannot convert =
`net_lengt=3D
h_t*'=3D20
to `socklen_t*' for argument `6' to `ssize_t recvfrom(int, void*, =
long=3D20
unsigned int, int, sockaddr*, socklen_t*)'
=3D2E./util/NetworkUtilityFunctions.cpp: In function `int32=3D20
muscle::SendDataUDP(int, const void*, long unsigned int, bool, long =
unsigne=3D
d=3D20
int, short unsigned int)':
=3D2E./util/NetworkUtilityFunctions.cpp:209: error: cannot convert =
`net_lengt=3D
h_t*'=3D20
to `socklen_t*' for argument `3' to `int getpeername(int, =
sockaddr*,=3D20
socklen_t*)'
=3D2E./util/NetworkUtilityFunctions.cpp: In function `int =
muscle::Accept(int)=3D
':
=3D2E./util/NetworkUtilityFunctions.cpp:243: error: cannot convert =
`net_lengt=3D
h_t*'=3D20
to `socklen_t*' for argument `3' to `int accept(int, sockaddr*, =
socklen_t*)'
=3D2E./util/NetworkUtilityFunctions.cpp: In function `uint32=3D20
muscle::GetPeerIPAddress(int)':
=3D2E./util/NetworkUtilityFunctions.cpp:371: error: cannot convert =
`net_lengt=3D
h_t*'=3D20
to `socklen_t*' for argument `3' to `int getpeername(int, =
sockaddr*,=3D20
socklen_t*)'


=3D2D-=3D20
Julien Torr=3DE8s
=3D2D--------------------------------------------------
e-mail:julien.torres@xxxxxxxxxxx
T=3DE9l: +33 4 76 50 54 01
=3D46ax: +33 4 76 50 54 03
347, rue Aristide Berg=3DE8s
Parc d'Activit=3DE9s de Centr'Alp
38340 Voreppe
=3D46RANCE

This e-mail message is intended for the addressee(s) only and may =
contain=3D20
confidential and or privileged information. If you are not the =
intended=3D20
recipient of this e-mail message, you should not read, copy, forward =
or=3D20
otherwise distribute or further disclose the information in it. If you =
have=3D
=3D20
received this e-mail message in error, please contact Certess SARL =
at=3D20
telephone number +33 4 76 50 54 02, fax number +33 4 76 50 54 03 or =
contact=3D
=3D20
the originator of this e-mail message via e-mail and delete all copies =
of=3D20
this message from your computer or network, thank you.

Other related posts: