LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 09-12-2008, 08:39 AM   #1
just.srad
Member
 
Registered: Apr 2008
Location: Singapore
Distribution: Slackware 14.0
Posts: 153

Rep: Reputation: 15
Error encountered for the stage 5.13. Ncurses-5.6


While executing the following command:

Code:
./configure --prefix=/tools --with-shared \
--without-debug --without-ada --enable-overwrite

i got this error as shown below
Code:
configure: error: Cannot link with GPM library

Here is the output of the command.
Code:
lfs:/mnt/lfs/sources/ncurses-5.6$ ./configure --prefix=/tools --with-shared --without-debug --without-ada --enable-overwrite
checking for egrep... grep -E
Configuring NCURSES 5.6 ABI 5 (Fri Sep 12 09:12:01 GMT 2008)
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
Configuring for linux-gnu
checking for prefix... /tools
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix... 
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking version of gcc... 4.1.2
checking how to run the C preprocessor... gcc -E
checking whether gcc needs -traditional... no
checking whether gcc understands -c and -o together... yes
checking for POSIXized ISC... no
checking for gcc option to accept ANSI C... -DCC_HAS_PROTOS
checking for ldconfig... /sbin/ldconfig
checking if you want to ensure bool is consistent with C++... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for g++... /usr/bin/g++
checking version of g++... 4.1.2
checking if you want to build C++ binding and demo... yes
checking if you want to build with Ada95... no
checking if you want to build programs such as tic... yes
checking if you wish to install curses.h... yes
checking for mawk... no
checking for gawk... gawk
checking for egrep... (cached) grep -E
checking for a BSD compatible install... /usr/bin/install -c
checking for tdlint... no
checking for lint... no
checking for alint... no
checking whether ln -s works... yes
checking whether make sets ${MAKE}... yes
checking if filesystem supports mixed-case filenames... yes
checking for ctags... no
checking for etags... no
checking for makeflags variable... 
checking for long file names... yes
checking if filesystem supports mixed-case filenames... (cached) yes
checking for ranlib... ranlib
checking for ld... ld
checking for ar... ar
checking for archiver options (symbol AR_OPTS)... rv
checking if you have specified an install-prefix... 
checking if you want to build libraries with libtool... no
checking if you want to build shared libraries... yes
checking if you want to build static libraries... yes
checking if you want to build debug libraries... no
checking if you want to build profiling libraries... no
checking for specified models...  shared normal
checking for default model... shared
checking if you want to build a separate terminfo library... no
checking if you want to link with the GPM mouse library... maybe
checking for gpm.h... yes
checking for Gpm_Open in -lgpm... no
configure: error: Cannot link with GPM library
Appreciate if anyone here could give some hints as to overcome this error.
Thanks.. =)
 
Old 09-12-2008, 09:48 AM   #2
FLLinux
Member
 
Registered: Jul 2004
Location: USA
Distribution: Fedora 9, LFS 6.3, Unbuntu 8.04, Slax 6.0.7
Posts: 145

Rep: Reputation: 15
I have to add the option --with-gpm=no so it will configure it without that library. and everything worked fine.
 
Old 09-12-2008, 06:30 PM   #3
just.srad
Member
 
Registered: Apr 2008
Location: Singapore
Distribution: Slackware 14.0
Posts: 153

Original Poster
Rep: Reputation: 15
Thanks man...appreciate your help. I'll try it in the late morning.

One more question, not sure you could help to clear my doubt.

At the initial stage, we were told to create a Build directory for Binutils-2.17 - Pass 1 and GCC-4.1.2 - Pass 1.
Somehow i couldn't understand the instruction, so i just compile them in $LFS/sources and after i had done what needed
to be done, i just deleted the sources directory away and recreate again for the next package to be compiled.

So the question is, will the absence of the two build directories affect the rest of the installation of LFS?

If it does, then i think i'll redo it from scratch again.. and that will be my 4th time .

Thanks.

Justin
 
Old 09-12-2008, 06:50 PM   #4
FLLinux
Member
 
Registered: Jul 2004
Location: USA
Distribution: Fedora 9, LFS 6.3, Unbuntu 8.04, Slax 6.0.7
Posts: 145

Rep: Reputation: 15
No when you run the second pass of the binutils and the glibc you will recreate the directory anyway.

What they want you to there is to create a second directory to build the tool in. so you source directory would look like

Source
----Binutils-2.17
----Binutils-build

Then when you are done compiling you can just delete the build directory and keep the 2.17 for the second pass. The way you did it shouldn't cause any trouble.

Took me a few runs through the first part of the book to get it right as well.
 
Old 09-12-2008, 09:38 PM   #5
just.srad
Member
 
Registered: Apr 2008
Location: Singapore
Distribution: Slackware 14.0
Posts: 153

Original Poster
Rep: Reputation: 15
okay, got it! Let me try it again later on. Will post it here again once .. i manage to get it up successfully.

Thanks FLLinux . =)
 
Old 09-13-2008, 08:03 AM   #6
just.srad
Member
 
Registered: Apr 2008
Location: Singapore
Distribution: Slackware 14.0
Posts: 153

Original Poster
Rep: Reputation: 15
erh... actually i had switched off my pc already.. i tried to continue from where
i stopped.. by setting up the initial environment and entered all the previous symbolic links
as stated in "5.4. GCC-4.1.2 - Pass 1" and "5.7 Adjusting the Toolchain".

I did execute the "./configure.... " with the option as suggested by you and therefore it ends without error.
However, i did encounter error when i executed the "make install".

I didn't record the error message though.

Does this mean i need to start from scratch again?

Thanks.
 
Old 09-13-2008, 08:50 AM   #7
FLLinux
Member
 
Registered: Jul 2004
Location: USA
Distribution: Fedora 9, LFS 6.3, Unbuntu 8.04, Slax 6.0.7
Posts: 145

Rep: Reputation: 15
If you could post the error that would be great.

I don't think you would need to start over, just might what to check that you got all the links and directories setup correctly.
 
Old 09-18-2008, 08:35 AM   #8
just.srad
Member
 
Registered: Apr 2008
Location: Singapore
Distribution: Slackware 14.0
Posts: 153

Original Poster
Rep: Reputation: 15
FLLinux, thanks for your support.

Actually i re-do from scratch again, took about 2 days and just completed this afternoon.

Fast bootup.. but still can't be of any use yet...

And i need to sort out some minor issues before i could continue
with the BLFS.
 
  


Reply



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
The following error was encountered: invalid url rahulkrish85 Linux - Newbie 1 12-09-2007 03:30 AM
Error encountered using partimage in ubuntu lawrence_lee_lee Linux - Software 0 06-10-2007 12:42 PM
403 Forbidden error was encountered pilot11 Linux - Newbie 7 10-18-2006 11:28 AM
Additionally, a 500 Internal Server Error error was encountered while trying to use a ukrainet Linux - General 10 06-24-2005 02:23 AM
Error encountered in LFS v6.0 Ch. 4 .bash_profile mbreslin1954 Linux From Scratch 2 04-19-2005 09:54 AM

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

All times are GMT -5. The time now is 01:39 AM.

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