Article View: alt.os.linux.slackware
Article #228Re: Help with gcc
From: HateLinux
Date: Wed, 29 Aug 2001 01:09
Date: Wed, 29 Aug 2001 01:09
82 lines
4752 bytes
4752 bytes
On Sat, 25 Aug 2001 18:10:35 +1200, in uk.comp.os.linux you wrote:
>Have you tried doing the *book* version of LFS yet?
>
>Packages here:
>http://linuxfromscratch.org/download/packages.shtml
>
>books here:
>ftp://ftp.linuxfromscratch.org/lfs-book/3.0-pre4/
>
>Has been heavily tested & is known to work :)
OK , I downloaded it. Deleted all my old lfs files , made a new file
system , set it up EXACTLY as in this new book. Sad to see over three
weeks work down the drain. I reinstalled zipslack, so I would not get
any bad files.
The very first compile(static bash) does not work:
root@darkstar:/mnt/lfs/usr/src/bash-2.05# ./configure
--enable-static-link --prefix=/mnt/lfs/usr --bindir=/mnt/lfs/bin
--with-curses
root@darkstar:/mnt/lfs/usr/src/bash-2.05# make
gcc -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"i686"'
-DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"i686-pc-linux-gnu"'
-DCONF_VENDOR='"pc"' -DSHELL -DHAVE_CONFIG_H
-D_FILE_OFFSET_BITS=64 -I. -I. -I./include -I./lib
-I/mnt/lfs/usr/include -g
-O2 -D_FILE_OFFSET_BITS=64 -o mksyntax ./mksyntax.c
In file included from /usr/include/errno.h:36,
from ./mksyntax.c:27:
/usr/include/bits/errno.h:25: linux/errno.h: No such file or directory
In file included from /usr/include/bits/posix1_lim.h:126,
from /usr/include/limits.h:144,
from
/usr/lib/gcc-lib/i386-slackware-linux/2.95.3/include/limits.h:117,
from
/usr/lib/gcc-lib/i386-slackware-linux/2.95.3/include/syslimits.h:7,
from
/usr/lib/gcc-lib/i386-slackware-linux/2.95.3/include/limits.h:11,
from /usr/include/sys/param.h:22,
from ./mksyntax.c:346:
/usr/include/bits/local_lim.h:36: linux/limits.h: No such file or
directory
In file included from ./mksyntax.c:346:
/usr/include/sys/param.h:23: linux/limits.h: No such file or directory
/usr/include/sys/param.h:24: linux/param.h: No such file or directory
make: *** [mksyntax] Error 1
root@darkstar:/mnt/lfs/usr/src/bash-2.05#
So I switched to redhat , and tried to compile it from there(I deleted
the /mnt/lfs/usr/src/bash-2.05 folder and re-untarred it, re
configured it to be safe.)
gcc -L./builtins -L./lib/readline -L./lib/readline -L./lib/glob
-L./lib/tilde -L./lib/malloc -L./lib/sh -static -static -rdynamic -g
-O2 -o bash shell.o eval.o y.tab.o general.o make_cmd.o print_cmd.o
dispose_cmd.o execute_cmd.o variables.o copy_cmd.o error.o expr.o
flags.o jobs.o subst.o hashcmd.o hashlib.o mailcheck.o trap.o input.o
unwind_prot.o pathexp.o sig.o test.o version.o alias.o array.o
braces.o bracecomp.o bashhist.o bashline.o siglist.o list.o
stringlib.o locale.o findcmd.o redir.o pcomplete.o pcomplib.o syntax.o
xmalloc.o -lbuiltins -lsh -lreadline -lhistory -lcurses -lglob -ltilde
-lmalloc
/usr/bin/ld: cannot find -lcurses
collect2: ld returned 1 exit status
make: *** [bash] Error 1
21:36:25
/mnt/lfs/usr/src/bash-2.05
root#> rpm -ivh /mnt/cdrom/RedHat/RPMS/ncurses*
package ncurses-5.1-2 is already installed
package ncurses-devel-5.1-2 is already installed
package ncurses4-5.0-2 is already installed
root#> rpm -ivh /mnt/cdrom/RedHat/RPMS/slang-*
package slang-1.4.1-5 is already installed
package slang-devel-1.4.1-5 is already installed
>
>The LFS mailing lists are helpful, so is the IRC channel, but if your question has already been answered, you might just get told to search the mailing list.
I grepped through the 100Mb of text. There was no help there.
Technical Details
Message-ID:
<3b8f3ff9.770159@news.newsguy.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.mathworks.com!pln-e!spln!dex!extra.newsguy.com!newsp.newsguy.com!enews3References:
<3b83b78c.96998@news.newsguy.com> <87y9ob4ryr.fsf@amaterasu.srvr.nix> <3b870ce7.70199@news.newsguy.com> <3B87415B.9F9D0739@xtra.co.nz>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,e6c1ce1266b4fc63 X-Google-Attributes: gid11318c,public X-Google-Thread: f906c,e6c1ce1266b4fc63 X-Google-Attributes: gidf906c,public X-Google-Thread: f9b51,e6c1ce1266b4fc63 X-Google-Attributes: gidf9b51,public X-Google-Thread: 10d8ad,e6c1ce1266b4fc63 X-Google-Attributes: gid10d8ad,public X-Google-ArrivalTime: 2001-08-28 18:35:17 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.mathworks.com!pln-e!spln!dex!extra.newsguy.com!newsp.newsguy.com!enews3 From: 2b@home (HateLinux) Newsgroups: alt.os.linux.slackware,gnu.gcc.help,uk.comp.os.linux,comp.os.linux.setup Subject: Re: Help with gcc Date: Wed, 29 Aug 2001 01:09:38 GMT Organization: http://extra.newsguy.com Lines: 83 Message-ID: <3b8f3ff9.770159@news.newsguy.com> References: <3b83b78c.96998@news.newsguy.com> <87y9ob4ryr.fsf@amaterasu.srvr.nix> <3b870ce7.70199@news.newsguy.com> <3B87415B.9F9D0739@xtra.co.nz> NNTP-Posting-Host: p-964.newsdawg.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Newsreader: Forte Agent 1.5/32.452