LinuxQuestions.org
Review your favorite Linux distribution.
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 07-01-2011, 05:12 PM   #1
FormatC
LQ Newbie
 
Registered: Jun 2009
Distribution: linuxslackware
Posts: 28

Rep: Reputation: 3
LFS 6.8 - Problem configuring perl-5.12.3


I've been stuck trying to configure perl-5.12.3 over the past few days. At first, I thought I had just done something wrong, so I started over. But after two or three times starting over, I am realizing that it's the configuration of perl that is problematic.

I did some searching, but I couldn't find anything that worked. I've tried using the options -Dprefix=/tools -Dstatic_ext='IO Fcntl POSIX' and answer the questions manually, but that solution didn't apply in my case. I also tried the -Dnoextensions=GDBM option, but running configure still fails.

The error goes as follows:
Code:
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.
Any insight on how I can get this to work is greatly appreciated.
 
Old 07-01-2011, 05:56 PM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Did you install the patch 1st
 
Old 07-01-2011, 06:42 PM   #3
FormatC
LQ Newbie
 
Registered: Jun 2009
Distribution: linuxslackware
Posts: 28

Original Poster
Rep: Reputation: 3
Sure did. The patch returns no errors.
 
Old 07-01-2011, 06:51 PM   #4
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
My guess is that you've done something wrong when you created the user lfs or not set up the environment correctly. The configure script shouldn't be finding the gdbm library on your host computer. Of course, the ld from your new toolchain can't find it in /tools so the linking fails. The question is, what did you do wrong that led Configure to look at the stuff on your host system?
 
Old 07-01-2011, 07:44 PM   #5
FormatC
LQ Newbie
 
Registered: Jun 2009
Distribution: linuxslackware
Posts: 28

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by Andrew Benton View Post
My guess is that you've done something wrong when you created the user lfs or not set up the environment correctly. The configure script shouldn't be finding the gdbm library on your host computer. Of course, the ld from your new toolchain can't find it in /tools so the linking fails. The question is, what did you do wrong that led Configure to look at the stuff on your host system?
I think this is the problem. When I was configuring the gcc-whatever, I saw the name of my OS scrolling along, so it is picking up things from the host machine. I'll start over again, I guess, and make sure the environment is correct.

Thanks
 
Old 07-03-2011, 06:17 AM   #6
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Maybe I was wrong. It seems that you're not the first to encounter this error. This thread found a workaround that might work for you.
 
Old 07-05-2011, 10:30 AM   #7
FormatC
LQ Newbie
 
Registered: Jun 2009
Distribution: linuxslackware
Posts: 28

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by Andrew Benton View Post
Maybe I was wrong. It seems that you're not the first to encounter this error. This thread found a workaround that might work for you.
I have tried this workaround before making this thread, but to no avail. Upon trying again over the weekend, I did notice that when applying the patch, there was an error:

Code:
patch ended unexpectedly
**** malformed patch at line 31
I looked at the patch, but it was only 30 lines long. Should I try to get another patch? I didn't do anything to the patch itself, but I don't know if this is normal or not.

Out of frustration, I decided to try some different things. I tried running configure without the "-des" flag, and it made me answer tons of questions, only to fail. Then I tried without the "-des" flag and with the workaround you gave in the link above, and answered tons of questions to the best of my ability, and then it failed again. I decided to try it once more, and it worked. I followed the instructions that it gave until the end. Then I picked back up with the book, and finally made it past perl.

I don't think that I can reproduce what I did. So at the end of the chapter, I backed up all the package builds so I wouldn't have to go through that again. I don't know if it's helping, though. Somewhere in the middle of the night, when I really should have been in bed, something went wrong in Chapter 6 when I didn't get the correct output for the sanity checks. This wasn't all that alarming, as it has happened many times to me in the first few runs of Chapter 5. But I can't help but wonder if it had anything to do with the way I installed perl...

Last edited by FormatC; 07-05-2011 at 10:34 AM.
 
  


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
[SOLVED] perl make test error lfs 6.5 aahiqmir Linux From Scratch 2 04-07-2010 08:22 AM
Configuring grub to boot -Last step in LFS chaoswings Linux From Scratch 2 08-31-2008 02:19 PM
problems configuring glibc-2.3.4-20040701 for LFS build dimaash Linux From Scratch 1 07-17-2005 10:00 AM
how important is perl in LFS {O_o} Linux From Scratch 2 07-09-2004 10:50 AM
Error compiling Perl (making LFS system 3.3)... MatMan5959 Linux - Software 0 06-02-2002 05:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

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