Linux - SoftwareThis 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.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I am trying to compile openldap on my system and the following error results. Can someone help please.
[root@localhost openldap-2.3.42]# make
Making all in /root/openldap-2.3.42
Entering subdirectory include
make: Entering directory `/root/openldap-2.3.42/include'
make: Nothing to be done for `all'.
make: Leaving directory `/root/openldap-2.3.42/include'
Entering subdirectory libraries
make: Entering directory `/root/openldap-2.3.42/libraries'
Making all in /root/openldap-2.3.42/libraries
Entering subdirectory liblutil
make: Entering directory `/root/openldap-2.3.42/libraries/liblutil'
rm -f version.c
../../build/mkversion -v "2.3.42" liblutil.a > version.c
gcc -g -O2 -I../../include -I../../include -I/usr/local/BerkeleyDB.4.5/include -c -o utils.o utils.c
gcc -g -O2 -I../../include -I../../include -I/usr/local/BerkeleyDB.4.5/include -c -o fetch.o fetch.c
fetch.c: In function ‚ldif_open_url‚:
fetch.c:52: warning: assignment discards qualifiers from pointer target type
gcc -g -O2 -I../../include -I../../include -I/usr/local/BerkeleyDB.4.5/include -c -o getpeereid.o getpeereid.c
getpeereid.c: In function ‚getpeereid‚:
getpeereid.c:52: error: storage size of ‚peercred‚ isn‚t known
make: *** [getpeereid.o] Error 1
make: Leaving directory `/root/openldap-2.3.42/libraries/liblutil'
make: *** [all-common] Error 1
make: Leaving directory `/root/openldap-2.3.42/libraries'
make: *** [all-common] Error 1
About the error you get:
I think you've hit this bug. Use the patch proposed to see if it works. Or you can use openldap 2.4.10 to see if it works.
About Fedora's openldap:
I don't use Fedora, but I think you mean the Directory Server that comes with Fedora and RH.
What version are you trying to install btw. Because in you first post the prompt is "root@localhost openldap-2.3.42" and now it is "root@localhost openldap-2.3.39". Why don't you try to install the 2.4.10?
sorry for the confusion in the version. First in installed the 2.4 version but i found the latest stable version is 2.3.39 so i guessed that could be the problem and installed the old one. Is it okay if i try 2.3.42?
I think using the latest release is better, since it resolves various problems (either bugs or security issues). You can read here the changes of 2.4.x branch.
Anyway, did you managed to patch getpeereid.c and build the sources?
Its working now . Now, can you tell me what this code is? I mean what does that --- and +++ mean? i can make out something like add the lines beginning with +?
Glad to see you've made it.
Now about the code in the patch file: --- means the original file and +++ the patched file. The numbers between the @@ are the line numbers to change and + mean add what follows (a "-" mean remove).
You could add just the line "#define _GNU_SOURCE" followed by a blank line to get the same result.
Btw what is your distro, that has this problem?