LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices

Reply
 
Search this Thread
Old 05-28-2011, 09:31 PM   #1
BrandonJ
Member
 
Registered: Mar 2010
Posts: 33

Rep: Reputation: 16
Autofs-5.0.5 from BLFS Error


This is what I get when making Autofs in the BLFS book.

Quote:
gcc -O2 -Wall -D_REENTRANT -D_FILE_OFFSET_BITS=64 -I../include -fPIC -D_GNU_SOURCE -DAUTOFS_MAP_DIR=\"/etc\" -DAUTOFS_CONF_DIR=\"/etc/sysconfig\" -c defaults.c
In file included from defaults.c:22:0:
../include/lookup_ldap.h:4:18: fatal error: ldap.h: No such file or directory
compilation terminated.
make[1]: *** [defaults.o] Error 1
make[1]: Leaving directory `/sources/autofs-5.0.5/lib'
make: *** [daemon] Error 2
root:/sources/autofs-5.0.5#
 
Old 05-29-2011, 02:34 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,

Quote:
../include/lookup_ldap.h:4:18: fatal error: ldap.h: No such file or directory
Looking at the error that is thrown it seems you decided to build automakefs with the optional ldap dependency. Is ldap installed?

Another possibility: Did you implement all the patches correctly (78 of them, 7 are ldap related...)?

Hope this helps.
 
Old 05-29-2011, 11:28 AM   #3
BrandonJ
Member
 
Registered: Mar 2010
Posts: 33

Original Poster
Rep: Reputation: 16
I patched, configured it, and maked it using the command from the book.

Code:
for f in `cat ../patch_order-5.0.5`; do
  patch -Np1 -i ../$f
done &&
./configure --prefix=/ --mandir=/usr/share/man &&
make
I will install OpenLDAP-2.4.23 and see if that helps. I didn't think I would need it because its under "Optional".
 
Old 05-29-2011, 11:54 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,
Quote:
Originally Posted by BrandonJ View Post
I patched, configured it, and maked it using the command from the book.

Code:
for f in `cat ../patch_order-5.0.5`; do
  patch -Np1 -i ../$f
done &&
./configure --prefix=/ --mandir=/usr/share/man &&
make
I'll assume the above worked and did not throw any errors.

Did the commands earlier in the book (Additional Downloads) give you any problems?

Quote:
I will install OpenLDAP-2.4.23 and see if that helps. I didn't think I would need it because its under "Optional".
If you did not explicitly tell autofs to include ldap, autofs should not build it.

Hope this helps.

BTW: You did check the kernel options to verify that automounter support is enabled?
 
Old 05-29-2011, 12:09 PM   #5
BrandonJ
Member
 
Registered: Mar 2010
Posts: 33

Original Poster
Rep: Reputation: 16
I really don't know what its trying to do. Its not listening to me at all. I went to configure ldap and it said, MySQL config not found, but it says right in the command, --disbale-sql. So now im making MySQL and trying to fix all of this. I told Autofs nothing about ldap.
 
Old 05-29-2011, 01:03 PM   #6
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,
Quote:
Originally Posted by BrandonJ View Post
I really don't know what its trying to do. Its not listening to me at all. I went to configure ldap and it said, MySQL config not found, but it says right in the command, --disbale-sql. So now im making MySQL and trying to fix all of this.
Quote:
I told Autofs nothing about ldap.
Then you should stop trying to install ldap and mysql and fix the problem. It seems that both autofs and ldap are looking for optional dependencies which you did not specify. I'm not sure (yet) what it is you are doing wrong, but something must be off.

If I where you I would remove the source directories (autofs, mysql and ldap) and start fresh with the autofs chapter.

How about my other questions?

Last edited by druuna; 05-29-2011 at 01:04 PM. Reason: spelling
 
Old 05-29-2011, 07:49 PM   #7
BrandonJ
Member
 
Registered: Mar 2010
Posts: 33

Original Poster
Rep: Reputation: 16
I would like to note... before I went on trying all of this, I tried Autofs about 5 times. When it would fail in the make process, I would delete it and the patches and start fresh from the top. MySQL did fix the one error in ldap but then I got another one. Im just going to delete the whole project and move to the CLFS book. I will call this a learning experience and hope for the best next time. My linux is going to be called Xing, so why not make it a cross lfs.

Also: Im about 80% sure that I gave the kernel support for it.

Last edited by BrandonJ; 05-29-2011 at 07:51 PM.
 
Old 06-08-2011, 12:22 PM   #8
AndrewJM
LQ Newbie
 
Registered: Jun 2011
Distribution: LFS svn BLFS svn
Posts: 16

Rep: Reputation: Disabled
I have the same issue - immediately post LFS SVN 20110605 build. It seems to be a problem with the autofs patches - I am investigating it now.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
BLFS: autofs installation echnat0n Linux From Scratch 3 04-10-2007 02:52 PM
BLFS 6.1: Gnome-vfs-2.10.1 make error Lenard Spencer Linux From Scratch 1 08-29-2006 06:33 AM
BLFS Libxml2-2.6.20 compile error hbinded Linux From Scratch 1 05-31-2006 10:13 AM
blfs xfree startx error alexastro Linux From Scratch 3 08-15-2004 03:37 AM
error when compiling vim 6.1 in BLFS NeoAnderson Linux From Scratch 0 06-09-2003 06:39 AM


All times are GMT -5. The time now is 09:18 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration