Re: problem running openldap

2009-12-03 Thread Dieter Klünter
Val Soika val.so...@gmail.com writes:

 On Wed, Nov 25, 2009 at 2:26 AM, Dieter Klünter h...@dkluenter.de wrote:

 Build cyrus-sasl, berkleydb and openldap with libpthread, add to the
 berkleyDB configure options
 --with-mutex=POSIX/pthreads/library
 don't use the default settings.

 Perhaps this is a known config option, but I could not figure out how to add
 --with-mutex=POSIX/pthreads/library into DB_CONFIG.

 Normally,  --with-mutex=POSIX/pthreads could be used when building bdb.
 However, according to http://www.openpkg.org/product/packages/?package=db
 there is no such build option for bdb in openpkg.

Then you should file a bug report, configure flags are documented here:
http://www.oracle.com/technology/documentation/berkeley-db/db/programmer_reference/build_unix_conf.html

-Dieter

-- 
Dieter Klünter | Systemberatung
http://dkluenter.de
Mobil: +49.176.51126864
sip: +49.180.1555.7770535   
Fax: +49.40.64891521
Key ID:8EF7B6C6
__
OpenPKG http://openpkg.org
User Communication List  openpkg-users@openpkg.org


Re: problem running openldap

2009-11-24 Thread Dieter Klünter
Val Soika val.so...@gmail.com writes:

 Hello,

 I have openldap installed from
 openldap-2.4.19-20091006.ix86-mandrivalinux2009.0-openpkg.rpm
 together with bdb installed from
 db-4.7.25.4-20091002.ix86-mandrivalinux2009.0-openpkg.rpm

 LDAP is run as
 openldap/slapd -f slapd2.conf -h ldap://127.0.0.1:8060 –d 1024

 Daemon seems to start Ok:
 slapd starting
 daemon: added 6r listener=(nil)
 daemon: added 9r listener=0x85b3900
 daemon: epoll: listen=9 active_threads=0 tvp=zero
 daemon: activity on 1 descriptor
 daemon: activity on:
 daemon: epoll: listen=9 active_threads=0 tvp=zero

 but would not respond to any request, e.g. ldapsearch,
 the only debug slapd prints out on request is

 daemon: activity on 1 descriptor
 daemon: activity on:
 slap_listener_activate(9):
 daemon: epoll: listen=9 busy

This is a long known bug with openpkg, OpenLDAP requires libpthread or
similar to call epoll or /dev/poll, the openpkg rpm builds with gnupth
which ich not able to handle epoll calls.
Build cyrus-sasl, berkleydb and openldap with libpthread, add to the
berkleyDB configure options
--with-mutex=POSIX/pthreads/library
don't use the default settings.

-Dieter

-- 
Dieter Klünter | Systemberatung
http://dkluenter.de
Mobil: +49.176.51126864
sip: +49.180.1555.7770535   
Fax: +49.40.64891521
Key ID:8EF7B6C6
__
OpenPKG http://openpkg.org
User Communication List  openpkg-users@openpkg.org


Re: openldap

2009-01-14 Thread Dieter Klünter
markus.fluecki...@bluewin.ch markus.fluecki...@bluewin.ch writes:

 @ all,

 We’re trying to setup an openldap environment together with sasl, kerberos, DB
 and openldap based with openpkg… well; there is no problem to build the
 packages…

 Situation: when I only use openldap, everything is working fine… when I use
 openldap together with sasl, Kerberos, then the openldap creates core files
 (problem with the libraries)…

 So my question is… is there someone which did more or less with the same
 environment based with openpkg… is there a special way to compile… or are
 there other things which are missing may be on my side…

 my environment is;

 -  Solaris10 / SPARC

 -  db-4.7.25.0

 -  openldap-2.4.11

 -  kerberos-1.6.3

 -  sasl-2.1.22

There are a few issues to consider:
- on Solaris OpenLDAP builds with /dev/poll
- with which mutex db has been built? 
- there are unresolved issues with db-4.7.x yould be better off with
  db-4.6.x,
- with regard to sasl you should check the sasl mailinglist archives,
  I rember having read a few mails with solaris issues.

-Dieter

-- 
Dieter Klünter | Systemberatung
http://www.dpunkt.de/buecher/2104.html
Mobil: +49.176.51126864
sip: +49.180.1555.7770535   
Fax: +49.40.64891521
Key ID:8EF7B6C6
__
OpenPKG http://openpkg.org
User Communication List  openpkg-users@openpkg.org


Re: unable to buld FreeRADIUS 2.0.5 under Solaris 10

2008-07-30 Thread Dieter Klünter
Victor G. Bolshakov [EMAIL PROTECTED] writes:

 Ralf S. Engelschall wrote:
 On Wed, Jul 30, 2008, Victor G. Bolshakov wrote:

 External dependence for OpenPKG packege? I also try to build without LDAP 
 (with_openldap=no) without any success...

 [EMAIL PROTECTED] wrote:

 I try to build openldap and also without success:

  /openpkg/bin/cc -O2 -pipe -I/openpkg/include/pth -D_AVL_H
 -I../../../include -I../../../include -I.. -I./.. -I/openpkg/include
 -I/openpkg/include/pth -c monitor.c -o monitor.o
 In file included from ../../../include/ac/signal.h:20,
  from ../slap.h:38,
  from ../back-monitor/back-monitor.h:28,
  from back-ldap.h:27,
  from monitor.c:33:
 /usr/include/signal.h:222: error: conflicting types for 'pth_sigwait'
 /openpkg/include/pth/pth.h:536: error: previous declaration of 'pth_sigwait' 
 was here
 make[3]: *** [monitor.lo] Error 1
 make[2]: *** [.backend] Error 1
 make[1]: *** [all-common] Error 1
 make: *** [all-common] Error 1

This error is due to gnu-pth, openldap calls epoll on linux and
/dev/poll on solaris.

-Dieter

-- 
Dieter Klünter | Systemberatung
Mobil: +49.176.51126864
Fax: +49.40.64891521
Key ID:8EF7B6C6
__
OpenPKG http://openpkg.org
User Communication List  openpkg-users@openpkg.org


some remarks on openldap.spec

2007-12-22 Thread Dieter Klünter
Hi,
the openldap.spec file for openldap-2.4.7 contains some deprecated
build args:

ldbm is deprecated
slurp is deprecated
crypt is discouraged
readline is deprecated

openldap.patch is obsolete to my understanding.

As OpenLDAP strongly recommends building with sasl I would also
recommend to modify package options to 'with_sasl yes'.

-Dieter

-- 
Dieter Klünter | Systemberatung
Mobil: +49.176.51126864
Fax: +49.40.64891521
Key ID:8EF7B6C6
__
OpenPKG http://openpkg.org
User Communication List  openpkg-users@openpkg.org


BerkeleyDB in current

2007-12-21 Thread Dieter Klünter
Hi,
I just realised that current contains BerkeleyDB-4.6. Could you please
stick to BerkeleyDB-4.5 for some time, as the API has changed in 4.6,
this would probabely cause some problems. The OpenLDAP stable release
2.3.39 for example does not build with db-4.6 and there might be
issues with other applications as well.

-Dieter
 
-- 
Dieter Klünter | Systemberatung
Mobil: +49.176.51126864
Fax: +49.40.64891521
Key ID:8EF7B6C6
__
OpenPKG http://openpkg.org
User Communication List  openpkg-users@openpkg.org


Re: Building PADL's nss_ldap pam_ldap - Solaris 8

2006-08-10 Thread Dieter Klünter
Doug Summers [EMAIL PROTECTED] writes:

 Has anyone got this to work using OpenPKG stable? I can't never get
 the configure script to see the proper headers  libraries.

What is precisely your problem? 
There is an issue with openldap and pth on linux with regard to epoll.

-Dieter

-- 
Dieter Klünter | Systemberatung
Tel: +49.40.64861967
Fax: +49.40.64891521
Key ID:8EF7B6C6

__
The OpenPKG Projectwww.openpkg.org
User Communication List  openpkg-users@openpkg.org