Open aBuder opened 10 years ago
Do you have libldap2-dev installed?
Thanks for help. I installed libldap2-dev and now I get the following error:
-lpthread -lcrypt -lldap -lpcre -lssl -lcrypto -ldl -lz
/usr/bin/ld: objs/addon/nginx-auth-ldap/ngx_http_auth_ldap_module.o: undefined reference to symbol 'ber_sockbuf_add_io@@OPENLDAP_2.4_2' //usr/lib/x86_64-linux-gnu/liblber-2.4.so.2: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make[1]: * [objs/nginx] Fehler 1 make[1]: Verlasse Verzeichnis '/home/abuder/nginx-1.7.2' make: * [install] Fehler 2
same error as @aBuder :+1:
-lpthread -lcrypt -lldap -lpcre -lssl -lcrypto -ldl -lz
/usr/bin/ld: objs/addon/nginx-auth-ldap/ngx_http_auth_ldap_module.o: undefined reference to symbol 'ber_sockbuf_add_io@@OPENLDAP_2.4_2' //usr/lib/x86_64-linux-gnu/liblber-2.4.so.2: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make[1]: * [objs/nginx] Error 1 make[1]: Leaving directory `/root/nginx-1.7.3' make: * [build] Error 2
What's the next ?
Thanks .
Edit /nginx-auth-ldap/conf:
Change
CORE_LIBS="$CORE_LIBS -lldap"
to
CORE_LIBS="$CORE_LIBS -lldap -llber"
Editing the conf file to include -llber solved this issue for me.
I try it the next days and give some feedback
But after this changes something bad happened in my system. Everytime I run some executable I can see:
nginx: /usr/local/lib/liblber-2.4.so.2: no version information available (required by nginx)
nginx: /usr/local/lib/libldap_r-2.4.so.2: no version information available (required by nginx)
@kvspb why you set --llber
only for Sun systems, and not all? Especially as Ubuntu is asking about it.
Hi,
after make I get the following error:
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DLDAP_DEPRECATED -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \ -o objs/src/http/modules/ngx_http_upstream_keepalive_module.o \ src/http/modules/ngx_http_upstream_keepalive_module.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DLDAP_DEPRECATED -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules -I src/mail \ -o objs/addon/nginx-auth-ldap/ngx_http_auth_ldap_module.o \ /etc/nginx/nginx-auth-ldap/ngx_http_auth_ldap_module.c /etc/nginx/nginx-auth-ldap/ngx_http_auth_ldap_module.c:33:18: fatal error: ldap.h: Datei oder Verzeichnis nicht gefunden
include
I don't know why. Can you help me? Here my configure code.
sudo ./configure --add-module=/etc/nginx/nginx-auth-ldap --prefix=/usr/share/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --pid-path=/var/run/nginx.pid --lock-path=/var/lock/nginx.lock --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/access.log