Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Aug 1998 07:51:33 +0200 (SAT)
From:      Peter van Heusden <pvh@leftside.wcape.school.za>
To:        Andre Oppermann <oppermann@pipeline.ch>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: Threaded X libs..
Message-ID:  <Pine.BSF.3.95.980806074542.5914A-100000@leftside.wcape.school.za>
In-Reply-To: <35C821FD.3506A837@pipeline.ch>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 5 Aug 1998, Andre Oppermann wrote:

> John Birrell wrote:
> -snip-
> > -pthread was added to gcc first in -current, then to -stable after the
> > release of 2.2.6. All it does is to use libc_r instead of libc. Linking
> > with -lc_r, but no -nostdlib means that you risk getting functions from
> > libc if the symbols aren't in libc_r. The only one that comes to mind
> > is poll(). If XFree86 uses poll() instead of select(), you can expect to
> > have problems.
> 
> UhhOhh... Thats why the Netscape Directory SDK (LDAP-Client libs)
> compile crashes on 2.2.7 with _poll not defined...
> 
> How can I get around that?

In the Netscape Directory SDK source, apply the patch which follows
this message. It seems to work for me.

Peter
--
Peter van Heusden |    Its the 90's, and collective action is STILL cool!
pvh@leftside.wcape.school.za | Get active in your union today!

*** directory/c-sdk/ldap/libraries/libldap/ldap-int.h.old	Tue Jul 21 21:15:49 1998
--- directory/c-sdk/ldap/libraries/libldap/ldap-int.h	Tue Jul 21 21:18:04 1998
***************
*** 79,85 ****
  #  include <unistd.h>
  #endif /* USE_SYSCONF */
  
! #if !defined(_WINDOWS) && !defined(macintosh) && !defined(LINUX2_0)
  #define NSLDAPI_HAVE_POLL	1
  #endif
  
--- 79,85 ----
  #  include <unistd.h>
  #endif /* USE_SYSCONF */
  
! #if !defined(_WINDOWS) && !defined(macintosh) && !defined(LINUX2_0) && !defined(FREEBSD)
  #define NSLDAPI_HAVE_POLL	1
  #endif



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95.980806074542.5914A-100000>