[reSIProcate] tarball 0.9.0-4631

Alan Hawrylyshen alan at jasomi.com
Sat May 14 12:45:47 CDT 2005


On May 14, 2005, at 10.00, Nils Ohlmeier wrote:

> Just want to let you know that the popt detection on MacOSX in this  
> tarball is
> broken for me (it detects a popt.h which is not present). I'll try  
> to fix it.
>
>   NO

Additionally, under Tiger (10.4) the compat definition of socklen_t  
conflicts with the OS built-in.
Can someone with 10.3 verify that you can still build after applying  
this patch?

This patch (against 0.9.0-4631) is needed to compile cleanly on Mac  
OS/X 10.4. The popt problem nils describes above is present, but can  
be worked around by specifying flags to ./configure (CPPFLAGS=-I/sw  
LIBS=-L/sw) which works if you have popt from fink. Would be better  
if it auto-did all that because some people won't have fink and popt.


Mind you -- I can even make the patch better by only triggering when  
it's gcc 4.0 on apple, but that's not really what I want.
We can define NEED_SOCKLEN_T to twig on either the OS or the  
existance of socklen_t ... etc.

Looking much better though.

A


Patch:

diff -rwup orig/resiprocate-0.9.0-4631/resiprocate/os/Socket.hxx  
resiprocate-0.9.0-4631/resiprocate/os/Socket.hxx
--- orig/resiprocate-0.9.0-4631/resiprocate/os/Socket.hxx        
2005-05-12 21:25:54.000000000 -0600
+++ resiprocate-0.9.0-4631/resiprocate/os/Socket.hxx    2005-05-13  
17:04:33.000000000 -0600
@@ -59,7 +59,7 @@ inline int getErrno() { return WSAGetLas
#else
#ifdef __APPLE__
-typedef int socklen_t;
+//typedef int socklen_t;
#endif
#define WSANOTINITIALISED  EPROTONOSUPPORT





More information about the resiprocate-devel mailing list