Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 25899 - On installation (emerge system): error: sys-apps/base-layout-1.8.6.8-r1 failed Function src_compile, Line 110, Exitcode 2 problem compiling sysvinit
Summary: On installation (emerge system): error: sys-apps/base-layout-1.8.6.8-r1 faile...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High blocker
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-04 12:57 UTC by Michael Kesler
Modified: 2003-08-06 21:15 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Kesler 2003-08-04 12:57:31 UTC
On 'emerge system' it gets to 'gcc -o sulogin sulogin.o' and generates these 
errors:

sulogin.o(.text+0x8d4): In function `main':
: undefined reference to `crypt'
collect2: ld returned 1 exit status
make: *** [sulogin] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: sys-apps/baselayout-1.8.6.8-r1 failed.
!!! Function src_compile, Line 110, Exitcode 2
!!! problem compiling sysvinit.

I have tried adding "crypt" to the use field of /etc/make.conf but it still 
produces the same error.  Presently, there is nothing in my /etc/make.conf's 
USE field.  Settings as follows:

CHOST="i686-pc-linux-gnu"
CFLAGS="-mcpu=k6-2 -03 -pipe"
CXXFLAGS="${CFLAGS}"

Reproducible: Always
Steps to Reproduce:
1. Clean install
2. configure /etc/make.conf
3. Bootstrap
4. emerge system

Actual Results:  
sulogin.o(.text+0x8d4): In function `main':
: undefined reference to `crypt'
collect2: ld returned 1 exit status
make: *** [sulogin] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: sys-apps/baselayout-1.8.6.8-r1 failed.
!!! Function src_compile, Line 110, Exitcode 2
!!! problem compiling sysvinit.


Expected Results:  
compiled sysvinit and continued with the emerge

!!! No gcc found. You probably need to 'source /etc/profile' to update
!!! the environment of this terminal and possibly other terminals also.

Portage 2.0.48-r5 (default-x86-1.4, [unavailable], glibc-2.3.1-r4)
=================================================================
system uname: 2.4.20-xfs-r2 i586 AMD-K6(tm) 3D processor
GENTOO_MIRRORS="http://gentoo.oregonstate.edu 
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /user/kde/2/share/conf
ig /usr/kde/3/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 oss 3dnow apm arts avi berkdb cups encode foomaticdb gdbm gif gpm gtk 
imlib java jpeg kde gnome libg++ libwww mad mikmod mmx motif mpeg ncurses nls 
oggvorbis opengl pam pdflib png python qt quicktime readline sdl slang spell 
ssl svga tcpd truetype X xml2 xmms xv zlib crypt"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-mcpu=k6-2 -03 -pipe"
CXXFLAGS="-mcpu=k6-2 -03 -pipe"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2003-08-04 14:13:52 UTC
try i586 instead of k6-2
Comment 2 SpanKY gentoo-dev 2003-08-04 15:37:36 UTC
thats a linker error not compiler 
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2003-08-04 21:38:20 UTC
Yes, but CHOST should still be fixed - K6 is a i586, and NOT a i686.

Can you remember if baselayout merged before or *AFTER* glibc ?  If it did
so before glibc, then that could be the reason.  If it did merge after, then
please retry with fixed CHOST - you never know what could have broken with
it set wrong.
Comment 4 Michael Kesler 2003-08-06 16:24:38 UTC
Changing to i586 seemed to work.  Thanks for the help!  I forgot that the K6-2 was a 586 and not a 686.
Comment 5 Martin Schlemmer (RETIRED) gentoo-dev 2003-08-06 21:15:01 UTC
Closing.