pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/27009: net/ORBit and devel/pth conflict on socklen_t



>Number:         27009
>Category:       pkg
>Synopsis:       net/ORBit and devel/pth conflict on socklen_t
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 20 19:16:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Georg Schwarz
>Release:        current pkgsrc
>Organization:
>Environment:
IRIX lorenz 5.3 08031225 IP20 mips
>Description:
On systems with no native socklen_t definition, net/ORbit uses
#define socklen_t size_t

At the same time, net/ORbit uses devel/pth, which on such systems in pthread.h 
uses
typedef int socklen_t;

The result is a compile time error because size_t is being redefined.

>How-To-Repeat:

>Fix:
As a workaround (not nice, but works), patch configure:

--- configure.orig1     2004-09-20 19:45:18.000000000 +0200
+++ configure   2004-09-20 19:47:37.000000000 +0200
@@ -8612,7 +8612,7 @@
   echo "$as_me: failed program was:" >&5
 cat conftest.$ac_ext >&5
 cat >>confdefs.h <<\EOF
-#define socklen_t size_t
+/*#define socklen_t size_t*/
 EOF
 
    echo "$as_me:8618: result: no" >&5

>Release-Note:
>Audit-Trail:
>Unformatted:



Home | Main Index | Thread Index | Old Index