LinuxQuestions.org
Register a domain and help support LQ
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 08-25-2009, 11:55 AM   #1
corbis_demon
Member
 
Registered: Jun 2004
Location: India
Distribution: Slack 13
Posts: 497

Rep: Reputation: 35
Can't configure Perl in LFS-SVN (Chapter 5.27). -lgdbm not found


Hi,
I'm repeatedly running into this Perl configure error-

Code:
/mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.4.1/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lgdbm
collect2: ld returned 1 exit status
I can't compile the test program.
You have a BIG problem.  Shall I abort Configure [y]
Ok.  Stopping Configure.
I've never experienced this problem before. Isn't Perl supposed to compile fine with GDBM not installed (or any other db for that matter during this chapter)? I'm using LFS-SVN-20090819. Please advise.
 
Old 08-25-2009, 12:14 PM   #2
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by corbis_demon View Post
I'm using LFS-SVN-20090819.
You are using a development snapshot. You should probably use the latest stable version: Latest stable version of LFS
 
Old 08-25-2009, 12:26 PM   #3
corbis_demon
Member
 
Registered: Jun 2004
Location: India
Distribution: Slack 13
Posts: 497

Original Poster
Rep: Reputation: 35
I know, but the current stable builds onexactly the same packages as used by the current devel version. In fact LFS-6.5 went stable on the 19th of this month. I don't think this is any reason for the configure to fail.
 
Old 08-25-2009, 02:00 PM   #4
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by corbis_demon View Post
In fact LFS-6.5 went stable on the 19th of this month.
This is the index of the stable download directory:
Code:
Index of /lfs/downloads/stable

Icon  Name                             Last modified      Size  Description
[DIR] Parent Directory                                      -   
[   ] LFS-BOOK-6.5-HTML.tar.bz2        16-Aug-2009 15:02  175K  tar archive
[   ] LFS-BOOK-6.5-NOCHUNKS.html.bz2   16-Aug-2009 15:02  155K  BZIP2 compressed docum>
[   ] LFS-BOOK-6.5-XML.tar.bz2         16-Aug-2009 15:02  522K  tar archive
[   ] LFS-BOOK-6.5-wget-list           19-Aug-2009 15:52  4.8K  
[   ] LFS-BOOK-6.5.pdf                 16-Aug-2009 15:02  1.4M  
[   ] lfs-bootscripts-20090812.tar.bz2 16-Aug-2009 15:04   41K  tar archive
[   ] udev-config-20090523.tar.bz2     16-Aug-2009 15:04   13K  tar archive
Except for the "wget-list", it looks like it went stable on the "16th", not the "19th". Easy to get those confused, though...
 
Old 08-26-2009, 12:58 AM   #5
corbis_demon
Member
 
Registered: Jun 2004
Location: India
Distribution: Slack 13
Posts: 497

Original Poster
Rep: Reputation: 35
My bad. Didn't pay close enough attention to the release dates. But I decided to go for the stable release an still get the same error, although the build process is exactly the same for the devel version. Dunno what I'm doing wrong. I tried using -Dnoextensions flag, but Perl seems to ignore it (or maybe it isn't a valid option). Also, is gdbm a critical dependency for installing Perl? I thought it just gave a warning and continued, if it didn't find a library, instead of exiting with a fatal error. Is there something else I could try? Please advise.
 
Old 08-26-2009, 11:28 AM   #6
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by corbis_demon View Post
I tried using -Dnoextensions flag, but Perl seems to ignore it (or maybe it isn't a valid option).
Try "-Dnoextensions=GDBM_File"

Here is the relevant text from the INSTALL file in the Perl source:
Code:
By default, Configure will offer to build every extension which appears
to be supported.  For example, Configure will offer to build GDBM_File
only if it is able to find the gdbm library.

To disable certain extensions so that they are not built, use the
-Dnoextensions=... and -Donlyextensions=... options.  They both accept
a space-separated list of extensions.  The extensions listed in
C<noextensions> are removed from the list of extensions to build, while
the C<onlyextensions> is rather more severe and builds only the listed
extensions.  The latter should be used with extreme caution since
certain extensions are used by many other extensions and modules:
examples of such modules include Fcntl and IO.  The order of processing
these options is first C<only> (if present), then C<no> (if present).

Of course, you may always run Configure interactively and select only
the extensions you want.
If you want to build Perl without any extensions, you might try "-Donlyextensions=".
 
Old 08-26-2009, 02:09 PM   #7
corbis_demon
Member
 
Registered: Jun 2004
Location: India
Distribution: Slack 13
Posts: 497

Original Poster
Rep: Reputation: 35
Solved!! Thanks so much David1357. Using -Donlyextensions worked for me.
 
  


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
lfs-6.3 - chapter 6: binutils-2.17 - make error regarding libbfd-2.17.so :not found me-$-on Linux From Scratch 5 07-02-2009 03:49 PM
LFS 6.3, messed up somewhere prior to chapter 6.12 (gcc), how to restart chapter 6? Funkster Linux From Scratch 2 12-24-2008 07:30 AM
svn checkout -bash svn command not found Anauj0101 Linux - Newbie 6 04-20-2008 06:50 PM
LFS Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 01:31 AM
chapter 6.3 of LFS 6.1 Stamp Linux From Scratch 2 07-22-2005 08:10 AM


All times are GMT -5. The time now is 02:23 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