Hi Wei Dai,

Yes, that appears to solve the problem. Thanks! Now on to get Apple on this massive compiler glitch I found with arch i386. ;)

Kevin

Wei Dai wrote:
try putting this line at the top of config.h and recompile socketft.cpp:
#define TYPE_OF_SOCKLEN_T ::socklen_t

Let me know if that works.
----- Original Message ----- From: "Kevin Hock" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, September 08, 2005 6:15 AM
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