[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: Problems building with threads on OpenBSD (ITS#521)



You are encouraged to update the FAQ with additional answers.
The FAQ is interactive.

At 07:31 PM 5/2/00 GMT, adam.reece@cgi.ca wrote:
>I'm hoping this message reaches someone because after fighting with OpenLDAP
>for the past two weeks I have finally narrowed down to issues that have been
>bugging me.
>
>The first involves ITS#521 - Problems building with threads on OpenBSD. I
>was following the instructions on the OpenLDAP Faq-O-Matic (OpenLDAP
>Faq-O-Matic -> OpenLDAP Software FAQ -> Installation -> Platform Hints ->
>OpenBSD), and that apparently was my problem. The simple solution to build
>OpenLDAP on OpenBSD with threads is:
>
>1.) Ignore the instructions in the Faq-O-Matic for OpenBSD
>2.) Set the CPPFLAGS environment variable to '-pthread'
>	# export CPPFLAGS=-pthread
>3.) Run the configure script with the '--with-threads' option.
>	# ./configure --with-threads
>
>While building slapd and the others, it will result in compiler messages
>with '-pthread' in there twice, but there are no warning messages related to
>threads and compiles and links fine.
>
>On a final note, the reason I was trying to build with threads was because I
>was having performance issues on the Pentium-75 I'm using to host it, and
>the repsonses from slapd to other machines were taking far too long. I was
>hoping that building with threads would clear up the issue. However, it
>turned out that the test machines I was using had IP addresses assigned by
>DHCP (which I also knew), but the IP addresses weren't in the DNS. My
>performance issue turned out to be a long-timeout waiting for the DNS to
>respond that it didn't have those IP addresses in it. I simply put the names
>and addresses in the host file for each appropriate machine, and volia!
>Instant performance improvement.
>
>> -----Original Message-----
>> From: openldap-its@OpenLDAP.org [mailto:openldap-its@OpenLDAP.org]
>> Sent: Thursday, April 27, 2000 14:49
>> To: adam.reece@cgi.ca
>> Subject: Re: Problems building with threads on OpenBSD (ITS#521)
>>
>>
>>
>> *** THIS IS AN AUTOMATICALLY GENERATED REPLY ***
>>
>> Thanks for your report to openldap-its@OpenLDAP.org.  Your report
>> has been placed into our Issue Tracking System and has been assigned
>> the tracking number ITS#521.
>>
>> One of support engineers will look at your report in due course.
>> Note that this may take some time because our support engineers
>> are volunteers.  They only work on OpenLDAP when they have spare
>> time.
>>
>> You may follow the progress of this message by loading the following
>> URL in a web browser:
>>
>>     http://www.OpenLDAP.org/its/index.cgi?findid=521
>>
>> Please remember to retain your issue tracking number (ITS#521)
>> on any further messages you send to us regarding this message.  If
>> you don't then you'll just waste our time and yours because we
>> won't be able to properly track the message.
>>
>> In our experience many people ask questions that have been asked
>> before.  We recommend that you review our online FAQ
>>
>> 	http://www.OpenLDAP.org/faq/
>>
>> and search archives of our many mailing lists (such as openldap-software
>> and openldap-bugs).
>>
>> 	http://www.OpenLDAP.org/lists/#archives
>>
>> --------------
>> Copyright 1999 The OpenLDAP Foundation, All Rights Reserved.
>>
>>
>>
>
>
>
>