LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-14-2004, 08:30 AM   #1
leandrop
LQ Newbie
 
Registered: Sep 2003
Location: Argentina
Distribution: RedHat
Posts: 7

Rep: Reputation: 0
mod_auth_ldap


Hi everyone!
I have compiled my apache2.0.49 and php4.3.6 to run with ssl, ldap and php

i've configured my apache like this
CFLAGS="-I/usr/kerberos/include" ./configure --prefix=/usr/local/apache-socks --enable-so --enable-ssl --with-ssl=/usr/include/openssl --enable-ldap --enable-auth-ldap --with-ldap --enable-module=mod_auth_ldap --enable-shared=mod_auth_ldap

i've configured my php like this
CFLAGS="-I/usr/kerberos/include" ./configure --with-apxs2=/usr/local/apache-socks/bin/apxs --with-ldap --with-openssl=/usr/ --enable-track-vars

i have it working perfectly with php but when i want tu run it with ldap, i can't.
apache didn't create me the mod_auth_ldap in /usr/local/apache/modules.
so i'm trying to compile it in my own like this
$ /usr/local/apache/bin/apxs -I/usr/local/include \
-L/usr/local/lib -lldap -llber -i -a -c mod_auth_ldap.c
but i received what you see next

[root@socks02 mod_auth_ldap]# /usr/local/apache-socks/bin/apxs -I/usr/local/include \
> -L/usr/local/lib -lldap -llber -i -a -c mod_auth_ldap.c
/usr/local/apache-socks/build/libtool --silent --mode=compile gcc -prefer-pic -I/usr/kerberos/include -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -pthread -I/usr/local/apache-socks/include -I/usr/local/apache-socks/include -I/usr/local/apache-socks/include -I/usr/local/include -c -o mod_auth_ldap.lo mod_auth_ldap.c && touch mod_auth_ldap.slo
mod_auth_ldap.c:82: parse error before "ldap_auth_module"
mod_auth_ldap.c:82: warning: data definition has no type or storage class
mod_auth_ldap.c:173: parse error before '*' token
mod_auth_ldap.c: In function `create_ldap_auth_dir_config':
mod_auth_ldap.c:178: `p' undeclared (first use in this function)
mod_auth_ldap.c:178: (Each undeclared identifier is reported only once
mod_auth_ldap.c:178: for each function it appears in.)
mod_auth_ldap.c:189: warning: assignment makes pointer from integer without a cast
mod_auth_ldap.c: In function `set_ldap_server':
mod_auth_ldap.c:200: warning: assignment makes pointer from integer without a cast
mod_auth_ldap.c: In function `set_base_dn':
mod_auth_ldap.c:216: warning: assignment makes pointer from integer without a cast
mod_auth_ldap.c: In function `set_bind_dn':
mod_auth_ldap.c:224: warning: assignment makes pointer from integer without a cast
mod_auth_ldap.c: In function `set_bind_pass':
mod_auth_ldap.c:231: warning: assignment makes pointer from integer without a cast
mod_auth_ldap.c: In function `set_uid_attr':
mod_auth_ldap.c:238: warning: assignment makes pointer from integer without a cast
mod_auth_ldap.c: In function `set_ldapauthoritative':
mod_auth_ldap.c:246: warning: initialization makes pointer from integer without a cast
mod_auth_ldap.c: At top level:
mod_auth_ldap.c:291: warning: initialization from incompatible pointer type
mod_auth_ldap.c:292: warning: initialization from incompatible pointer type
mod_auth_ldap.c:293: warning: initialization from incompatible pointer type
mod_auth_ldap.c:294: warning: initialization from incompatible pointer type
mod_auth_ldap.c:295: warning: initialization from incompatible pointer type
mod_auth_ldap.c:296: warning: initialization from incompatible pointer type
mod_auth_ldap.c:297: warning: initialization from incompatible pointer type
mod_auth_ldap.c: In function `ldapFindUserDN':
mod_auth_ldap.c:382: warning: passing arg 4 of `ap_log_rerror' makes integer from pointer without a cast
mod_auth_ldap.c:382: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
mod_auth_ldap.c:421: warning: passing arg 4 of `ap_log_rerror' makes integer from pointer without a cast
mod_auth_ldap.c:421: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
mod_auth_ldap.c:421: too few arguments to function `ap_log_rerror'
mod_auth_ldap.c:425: warning: passing arg 4 of `ap_log_rerror' makes integer from pointer without a cast
mod_auth_ldap.c:425: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
mod_auth_ldap.c:435: warning: passing arg 4 of `ap_log_rerror' makes integer from pointer without a cast
mod_auth_ldap.c:435: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
mod_auth_ldap.c:442: warning: passing arg 4 of `ap_log_rerror' makes integer from pointer without a cast
mod_auth_ldap.c:442: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
mod_auth_ldap.c:447: warning: passing arg 4 of `ap_log_rerror' makes integer from pointer without a cast
mod_auth_ldap.c:447: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
mod_auth_ldap.c:471: warning: passing arg 4 of `ap_log_rerror' makes integer from pointer without a cast
mod_auth_ldap.c:471: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
mod_auth_ldap.c: In function `ldap_authenticate_basic_user':
mod_auth_ldap.c:579: request for member `module_index' in something not a structure or union
mod_auth_ldap.c:586: structure has no member named `user'
mod_auth_ldap.c:586: structure has no member named `user'
mod_auth_ldap.c:591: `AUTH_REQUIRED' undeclared (first use in this function)
mod_auth_ldap.c:640: warning: passing arg 4 of `ap_log_rerror' makes integer from pointer without a cast
mod_auth_ldap.c:640: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
mod_auth_ldap.c:692: structure has no member named `user'
mod_auth_ldap.c:716: warning: assignment makes pointer from integer without a cast
mod_auth_ldap.c: In function `ldap_check_user_access':
mod_auth_ldap.c:762: syntax error before '*' token
mod_auth_ldap.c:786: structure has no member named `user'
mod_auth_ldap.c:789: `reqs_arr' undeclared (first use in this function)
mod_auth_ldap.c:789: `array_header' undeclared (first use in this function)
mod_auth_ldap.c:789: parse error before ')' token
mod_auth_ldap.c:793: request for member `module_index' in something not a structure or union
mod_auth_ldap.c:817: warning: passing arg 4 of `ap_log_rerror' makes integer from pointer without a cast
mod_auth_ldap.c:817: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
mod_auth_ldap.c:817: too few arguments to function `ap_log_rerror'
mod_auth_ldap.c:936: `AUTH_REQUIRED' undeclared (first use in this function)
mod_auth_ldap.c:956: warning: passing arg 4 of `ap_log_rerror' makes integer from pointer without a cast
mod_auth_ldap.c:956: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
mod_auth_ldap.c:956: too few arguments to function `ap_log_rerror'
mod_auth_ldap.c:964: warning: passing arg 4 of `ap_log_rerror' makes integer from pointer without a cast
mod_auth_ldap.c:964: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
mod_auth_ldap.c:964: too few arguments to function `ap_log_rerror'
mod_auth_ldap.c:1034: warning: assignment makes pointer from integer without a cast
mod_auth_ldap.c:1181: warning: assignment makes pointer from integer without a cast
mod_auth_ldap.c: At top level:
mod_auth_ldap.c:1256: conflicting types for `ldap_auth_module'
mod_auth_ldap.c:82: previous declaration of `ldap_auth_module'
mod_auth_ldap.c:1258: `this_module_needs_to_be_ported_to_apache_2_0' undeclared here (not in a function)
mod_auth_ldap.c:1258: initializer element is not constant
mod_auth_ldap.c:1258: (near initialization for `ldap_auth_module.version')
mod_auth_ldap.c:1259: warning: initialization makes integer from pointer without a cast
mod_auth_ldap.c:1260: warning: initialization makes integer from pointer without a cast
mod_auth_ldap.c:1264: warning: initialization makes integer from pointer without a cast
mod_auth_ldap.c:1267: warning: initialization from incompatible pointer type
mod_auth_ldap.c:1268: warning: initialization from incompatible pointer type
mod_auth_ldap.c:1272: warning: excess elements in struct initializer
mod_auth_ldap.c:1272: warning: (near initialization for `ldap_auth_module')
mod_auth_ldap.c:1273: warning: excess elements in struct initializer
mod_auth_ldap.c:1273: warning: (near initialization for `ldap_auth_module')
mod_auth_ldap.c:1274: warning: excess elements in struct initializer
mod_auth_ldap.c:1274: warning: (near initialization for `ldap_auth_module')
mod_auth_ldap.c:1275: warning: excess elements in struct initializer
mod_auth_ldap.c:1275: warning: (near initialization for `ldap_auth_module')
mod_auth_ldap.c:1277: warning: excess elements in struct initializer
mod_auth_ldap.c:1277: warning: (near initialization for `ldap_auth_module')
apxs:Error: Command failed with rc=65536

PLease, has anyone any idea ???
thank you so much
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mod_auth_ldap + mass hosting deoren Linux - Networking 2 07-27-2005 01:00 PM
AS3-mod_auth_ldap w/apache2 r_morris Red Hat 0 03-24-2004 10:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration