Hallo Laurent,

> I've some troubles compiling pam-ldap 1.53 on solaris 8
> Are they any problems with the last version of pam-ldap and openldap
> 2.0.25?

Yes that could be that openldap  2.0.25 is to new, Systems like RH7.3
use 2.0.15 version.

> gcc -DHAVE_CONFIG_H   -I/usr/local/ssl/include -I/usr/local/include
> -DLDAP_REFERRALS -D_REENTRANT -I/usr/local/lib/include  -g -O2 -Wall
> -fPIC -c -o pam_ldap.o pam_ldap.c
> gcc -DHAVE_CONFIG_H   -I/usr/local/ssl/include -I/usr/local/include
> -DLDAP_REFERRALS -D_REENTRANT -I/usr/local/lib/include  -g -O2 -Wall
> -fPIC -c -o md5.o md5.c
> /usr/ccs/bin/ld  -o pam_ldap.so   -B dynamic -M ./exports.solaris -G -B
> group -lc pam_ldap.o md5.o  -lldap -llber -lnsl -lcrypt -lresolv -lpam
> -ldl
> ld: fatal: library -llber: not found
> ld: fatal: File processing errors. No output written to pam_ldap.so
> make: *** [pam_ldap.so] Error 1

> I don't undertand why linker doesn't see the liblber.so which is located
> on /usr/local/bin as libldap.so

liblber* and libldap* should be in /usr/local/lib or /usr/lib
better is /usr/lib.

Than it will work.

> But I don't have the problem with pam-ldap 1.44:

I have also compiled and linked pam-ldap 1.52 successfully
with  openldap  2.0.25.
I think it should work because openldap  2.0.25  is stated as Stable
Release.
.
> gcc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/local/ssl/include
> -I/usr/local/include -DLDAP_REFERRALS -D_REENTRANT  -g -O2 -Wall -fPIC
> -c pam_ldap.c
> pam_ldap.c: In function `_get_user_info':
> pam_ldap.c:2072: warning: passing arg 4 of `_get_integer_value' from
> incompatible pointer type
> gcc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/local/ssl/include
> -I/usr/local/include -DLDAP_REFERRALS -D_REENTRANT  -g -O2 -Wall -fPIC
> -c md5.c
> /usr/ccs/bin/ld  -L/usr/local/ssl/lib -L/usr/local/lib
> -R/usr/local/ssl/lib:/usr/local/lib -o pam_ldap.so -B dynamic -M mapfile
> -G pam_ldap.o md5.o  -lldap -llber -lnsl -lcrypt -lresolv -lpam -ldl
> $

Here it works maybe, because you are using -L/usr/local/lib

> I'm using gcc 2.95 and openssl from sunfreeware.com.
> I've compiled succesfully openldap 2.0.25 with SSL support.

Should be ok, mybe gcc 3.x

hth,
reg,
Andreas


Reply via email to