mod_cfg_ldap

Support for webhosts that use CentOS
Post Reply
igro
Posts: 77
Joined: 2010/08/27 00:41:25

mod_cfg_ldap

Post by igro » 2010/08/27 00:47:57

Hi!
I'm trying to build from sources and get the following error:
[root@localhost mod_cfg_ldap-1.2]# make
apxs2 -Wc,-Wall -Wc,-Werror -Wc,-g -c -lldap_r mod_cfg_ldap.c
/usr/lib64/apr-1/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/httpd -I/usr/include/apr-1 -I/usr/include/apr-1 -Wall -Werror -g -c -o mod_cfg_ldap.lo mod_cfg_ldap.c && touch mod_cfg_ldap.slo
cc1: warnings being treated as errors
mod_cfg_ldap.c: In function 'cfg_ldap_init_ldap':
mod_cfg_ldap.c:108: warning: implicit declaration of function 'ldap_init'
mod_cfg_ldap.c:108: warning: assignment makes pointer from integer without a cast
mod_cfg_ldap.c:119: warning: implicit declaration of function 'ldap_unbind'
mod_cfg_ldap.c:129: warning: implicit declaration of function 'ldap_unbind_s'
mod_cfg_ldap.c:150: warning: assignment makes pointer from integer without a cast
mod_cfg_ldap.c:153: warning: implicit declaration of function 'ldap_simple_bind_s'
mod_cfg_ldap.c: In function 'cfg_ldap_read_vhost_from_ldap':
mod_cfg_ldap.c:237: warning: implicit declaration of function 'ldap_search_s'
mod_cfg_ldap.c:283: warning: implicit declaration of function 'ldap_get_values'
mod_cfg_ldap.c:283: warning: assignment makes pointer from integer without a cast
mod_cfg_ldap.c:298: warning: implicit declaration of function 'ldap_value_free'
apxs:Error: Command failed with rc=65536
.
make: *** [mod_cfg_ldap.o] Error 1

Created symlink on apxs because can't find apxs2 (even with installed httpd-devel.x86_64).
can anyone help?

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

mod_cfg_ldap

Post by pschaff » 2010/08/29 03:55:08

Welcome to the CentOS fora. The following reading is recommended for new users:
[url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=14274&forum=47]Readme First[/url]
[url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=14408&forum=47]Installing Software[/url]
[url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=14273&forum=47]Where to Find Answers[/url]
[url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=25128&forum=47]How to provide information about your system[/url]

After reading the above you may understand why [url=http://wiki.centos.org/PackageManagement/SourceInstalls]Source Installs[/url] are [b]highly[/b] discouraged. What capability do you require that is not available as a package? Perhaps you should grab a [url=http://sourceforge.net/projects/modcfgldap/files/mod_cfg_ldap/1.1/mod_cfg_ldap-1.1-1.src.rpm/download]SRPM[/url] found by a [url=http://www.google.com/search?q=mod_cfg_ldap+%22src.rpm%22&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a]google search[/url] and follow [url=http://wiki.centos.org/HowTos/RebuildSRPM]How to Rebuild a Source RPM[/url].

igro
Posts: 77
Joined: 2010/08/27 00:41:25

Re: mod_cfg_ldap

Post by igro » 2010/08/29 23:04:35

i tried but no success.
however we compiled it.
it seems like some changes in options of compiling by gcc:
[quote]$(APXS) -DLDAP_DEPRECATED -Wc,-Wall -Wc,-Werror -Wc,-g -c -lldap_r mod_cfg_ldap.c[/quote]
hope it might be useful for some one.

Post Reply

Return to “CentOS 5 - Webhosting Support”