You just need the standard unix patch program. Use this command:

patch < crypto521gcc4patch

----- Original Message ----- From: "Bob McCown" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, September 08, 2005 10:32 PM
Subject: RE: gcc 4.0 on Mac OS X 10.4



This is a pretty basic question, but how do I apply the 4.0 patch?  I dont
have dpatch on my Mac, and a bit of rummaging with google doesnt show where
I can get it.

Thanks in advance.

-=Bob the Mac Newbie

-----Original Message-----
From: Kevin Hock [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 07, 2005 6:16 PM
To: [email protected]
Subject: gcc 4.0 on Mac OS X 10.4


Hi everyone,

I saw the recent patch for gcc 4.0 and tried it out on Mac OS X
10.4.2. There is still one problem:

c++ -g -pipe -D__pic__ -c socketft.cpp
socketft.cpp: In member function 'bool
CryptoPP::Socket::Accept(CryptoPP::Socket&, sockaddr*,
CryptoPP::socklen_t*)':
socketft.cpp:167: error: invalid conversion from
'CryptoPP::socklen_t*' to 'socklen_t*'
socketft.cpp:167: error:   initializing argument 3 of 'int accept(int,
sockaddr*, socklen_t*)'
socketft.cpp: In member function 'void
CryptoPP::Socket::GetSockName(sockaddr*, CryptoPP::socklen_t*)':
socketft.cpp:178: error: invalid conversion from
'CryptoPP::socklen_t*' to 'socklen_t*'
socketft.cpp:178: error:   initializing argument 3 of 'int
getsockname(int, sockaddr*, socklen_t*)'

It looks like socklen_t* is causing a problem. Does anyone have any
suggestions for how this could be fixed?

I'd be happy to supply any additional information needed or do any
additional testing.

Thanks,

Kevin






Reply via email to