Jump to content

Troubles with Linux from Scratch and compiling bash


Recommended Posts

Hi

I've just started my Linux from scratch install (lfs4.1). I've made the file system everything, now to start compiling a basic system. I configure, as the instructions say and then make, refuses to compile, the error is below [error 1]. My host system is MDK9.1. The instructions are at http://www.au.linuxfromscratch.org/view/4....ter05/bash.html

 

Also is there a way i can copy & paste from Eterm? I had to write the below by hand.

Thanks

 

James

 

[ERROR 1]

GNU bash, version 2.05a.0(4)-release (i686-pc-linux-gnu)



rm -f shell.o

gcc -s  -DPROGRAM='"bash"' DCONF_HOSTTYPE='"i686"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"i686-pc-linux-gnu"' -DCONF_VENDOR='"pc"' -DSHELL -DHAVE_CONFIG_H  -I. -I./include -I./lib -g -02 -c shell.c

In file included from shell.h:41,

                     from shell.c:48:

externs.h:163: conflicting types for 'gethostname'

/usr/include/unistd.h:752: previous declaration of 'gethostname'

externs.h:196: conflicting types for 'strncasecmp'

/usr/include/string.h:292: previous declaration of 'strncasecmp'

make: *** [shell.o] Error 1

Link to comment
Share on other sites

copy and paste;

http://www.mandrakeusers.org/viewtopic.php?t=969

 

I can't believe you're attempting LFS without cp and pst :shock: ...that's insane :shock: You'll save yourself a lot of time and leave less room for error by copying from the instructions to Eterm :) .

 

Because of the complexity and steps in getting to the point you're at, it's hard to say what the prob is. If I took a guess I'd say the environment isn't set properly.

 

How much more output was there other than what you posted?

Have you followed instructions to a T?

Have you joined the mailing list? I ask because there's a lot of good experieced LFS'ers that can answer most questions. Whether they will is another story :roll:

Link to comment
Share on other sites

I haven't quite followed instructions perfecly, i made the partition with DiskDrake. And the partition is setup correctly, mounted at /lfs. I copied everything from the output of the compiler except

 

GNU bash, version 2.05a.0(4)-release (i686-pc-linux-gnu)

 

which had stars around it for decoration.

 

*******************************************************

* *

* GNU bash, version 2.05a.0(4)-release (i686-pc-linux-gnu) *

* *

*******************************************************

 

Thans for the copy -> past link. I'm exwindoze user and Ctrl-C Ctrl-V didn't work. No surprise.

 

I set the environment properly too.

 

ok i'll join LFS mailing list

Link to comment
Share on other sites

Is it mounted at /lfs b4 or after you chroot? From within ML9.1 when you run;

echo $LFS

do you get

/mnt/lfs

 

I wasn't really implying that lfs questions aren't welcome here, just that if you think about it, it's not exactly another rpm-based distro, slackware, or like a host of other distros that very many have tried or use. It's kinda out there on its own, so to speak....you know?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...