Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 43100 - baselayout-1.8.6.13 compilation failed while bootstraping
Summary: baselayout-1.8.6.13 compilation failed while bootstraping
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: x86 All
: Highest major (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 44200 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-02-27 06:54 UTC by Nicolas Boichat
Modified: 2005-08-21 10:57 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to baselayout-1.8.6.13-r1 (baselayout-1.8.6.13-r1-crypt.patch,380 bytes, patch)
2004-03-13 09:00 UTC, Nicolas Boichat
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Boichat 2004-02-27 06:54:38 UTC
I booted from the basic LiveCD, and followed the install instructions. Arrived on point 6.c (to build the system from scratch), I ran :
# scripts/bootstrap.sh

Make returned an error while compiling baselayout-1.8.6.13, more precisely sysvinit-2.84. I rerun `make` on /var/tmp/portage/baselayout-1.8.6.13/work/sysvinit-2.84/src, which returned the same error message :

...
cc -Wall -march=pentium3 -O3 -pipe -fomit-frame-pointer -funroll-loops -D_GNU_SOURCE   -c -o sulogin.o sulogin.c
sulogin.c: In function `main':
sulogin.c:347: warning: `p' might be used uninitialized in this function
cc -s  -o sulogin sulogin.o
sulogin.o(.text+0x9d8): In function `main':
: undefined reference to `crypt'
collect2: ld returned 1 exit status
make: *** [sulogin] Error 1

The reason of this is in the Makefile of that directory, on line 31 :

ifneq ($(wildcard /usr/lib/libcrypt.a),)
LCRYPT          = -lcrypt
endif

On my system (stage1-x86-20030910.tar.bz2), /usr/lib/libcrypt.so is present, but not /usr/lib/libcrypt.a.

So I simply executed :
# touch /usr/lib/libcrypt.a
, and everything went fine.

Thanks for correcting this problem.
Comment 1 Nicolas Boichat 2004-03-13 09:00:26 UTC
Created attachment 27288 [details, diff]
Patch to baselayout-1.8.6.13-r1

Allow cc to use -lcrypt flag if /usr/lib/libcrypt.so OR /usr/lib/libcrypt.a
exists.
Comment 2 Aron Griffis (RETIRED) gentoo-dev 2004-05-05 20:35:46 UTC
*** Bug 44200 has been marked as a duplicate of this bug. ***
Comment 3 Aron Griffis (RETIRED) gentoo-dev 2004-05-05 20:44:52 UTC
I'm guessing this is fixed in 2004.1 since I haven't heard any more about it.  Just touching the file isn't sufficient because you shouldn't link programs in /sbin to shared objects in /usr/lib...!

Please re-open if this is still an issue, and provide output of "emerge --info"
Comment 4 Nicolas Boichat 2004-05-06 07:35:39 UTC
I don't think it is fixed, as /usr/lib/libcrypt.a is not in the stage1 of 2004.1.

Here is my emerge --info, but it is probably not in the exact state as it was when I installed the system.

Next time I install a Gentoo system I'll try to reproduce this problem.

----

Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.4-gentoo-r1)
=================================================================
System uname: 2.6.4-gentoo-r1 i686 Pentium III (Katmai)
Gentoo Base System version 1.4.10
distcc[4574] (dcc_trace_version) distcc 2.12.1 i686-pc-linux-gnu; built Mar 28 2004 16:09:27 [disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer -funroll-loops"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer -funroll-loops"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://sunsite.cnlab-switch.ch/mirror/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X apm arts avi berkdb crypt encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 imlib jpeg libg++ libwww mad mikmod motif mozilla mpeg mysql ncurses nls pam pdflib perl png python readline samba sdl slang spell ssl svga tcpd truetype wxwindows x86 xml2 xmms xv zlib"
Comment 5 Aron Griffis (RETIRED) gentoo-dev 2004-05-06 09:23:53 UTC
Ok, re-opening, need to investigate this further
Comment 6 SpanKY gentoo-dev 2004-10-03 02:32:22 UTC
stage1 tarballs have all static libraries deleted from them because of catalyst
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2005-08-11 06:38:36 UTC
This does not seem to be much relevant after 1 1/2 years. 
Comment 8 Nicolas Boichat 2005-08-11 06:46:11 UTC
I think you should close this bug (it seems I can't close it myself), I've never
been able to reproduce it...
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2005-08-21 10:57:26 UTC
Closing per reporter request.