Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 220379 - Failure when bootstrapping coreutils on Mac OS X 10.5
Summary: Failure when bootstrapping coreutils on Mac OS X 10.5
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: x86 OS X
: High normal (vote)
Assignee: Gentoo non-Linux Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-05 15:10 UTC by Shaun Cloherty
Modified: 2008-05-05 15:12 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 Shaun Cloherty 2008-05-05 15:10:21 UTC
Executing:

  ./bootstrap-prefix.sh $EPREFIX/tmp coreutils

when bootstrapping prefix-portage on Mac OS X 10.5 fails with:

gcc -std=gnu99  -O2 -pipe  -Wl,-search_paths_first -L/Library/Gentoo/usr/lib -L/
Library/Gentoo/lib -o basename  basename.o ../lib/libcoreutils.a  ../lib/libcore
utils.a 
if gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I..  -I.. -I. -I../lib -I../lib -I/Li
brary/Gentoo/usr/include  -O2 -pipe -MT date.o -MD -MP -MF ".deps/date.Tpo" -c -
o date.o date.c; \
        then mv -f ".deps/date.Tpo" ".deps/date.Po"; else rm -f ".deps/date.Tpo"
; exit 1; fi
gcc -std=gnu99  -O2 -pipe  -Wl,-search_paths_first -L/Library/Gentoo/usr/lib -L/
Library/Gentoo/lib -o date  date.o ../lib/libcoreutils.a  ../lib/libcoreutils.a 
 
Undefined symbols:
  "_rpl_putenv$UNIX2003", referenced from:
      _main in date.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[3]: *** [date] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


Reproducible: Always

Steps to Reproduce:
1. export EPREFIX="$HOME/Gentoo"
   export PATH="$EPREFIX/usr/bin:$EPREFIX/bin:$EPREFIX/tmp/usr/bin:$EPREFIX/tmp/bin:$PATH"
2. ./bootstrap-prefix.sh $EPREFIX tree  <-- fetched prefix-portage-2.2.00.10181.tar.bz2
3. ./bootstrap-prefix.sh $EPREFIX/tmp wget
   ./bootstrap-prefix.sh $EPREFIX/tmp sed
   ./bootstrap-prefix.sh $EPREFIX/tmp python
   ./bootstrap-prefix.sh $EPREFIX/tmp coreutils

Actual Results:  
The linker complains about symbol(s) not being found.

Expected Results:  
Installation of coreutils to $EPREFIX/tmp.

Attempting to continue without coreutils results in failure of:

  ./bootstrap-prefix.sh $EPREFIX/tmp findutils

with

Making install in doc
restore=: && backupdir=".am$$" && \
	am__cwd=`pwd` && cd . && \
	rm -rf $backupdir && mkdir $backupdir && \
	if (/bin/sh /Library/Gentoo/tmp/var/tmp/findutils-4.4.0/findutils-4.4.0/build-aux/missing --run makeinfo --version) >/dev/null 2>&1; then \
	  for f in find.info find.info-[0-9] find.info-[0-9][0-9] find.i[0-9] find.i[0-9][0-9]; do \
	    if test -f $f; then mv $f $backupdir; restore=mv; else :; fi; \
	  done; \
	else :; fi && \
	cd "$am__cwd"; \
	if /bin/sh /Library/Gentoo/tmp/var/tmp/findutils-4.4.0/findutils-4.4.0/build-aux/missing --run makeinfo   -I . \
	 -o find.info find.texi; \
	then \
	  rc=0; \
	  cd .; \
	else \
	  rc=$?; \
	  cd . && \
	  $restore $backupdir/* `echo "./find.info" | sed 's|[^/]*$||'`; \
	fi; \
	rm -rf $backupdir; exit $rc
find.texi:10: @include `../locate/dblocation.texi': No such file or directory.
find.texi:554: warning: undefined flag: LOCATE_DB.
find.texi:2681: warning: undefined flag: LOCATE_DB.
find.texi:2683: warning: undefined flag: LOCATE_DB.
find.texi:3160: warning: undefined flag: LOCATE_DB.
find.texi:3346: warning: undefined flag: LOCATE_DB.
find.texi:5230: warning: undefined flag: LOCATE_DB.
find.texi:5238: warning: undefined flag: LOCATE_DB.
makeinfo: Removing output file `find.info' due to errors; use --force to preserve.
make[1]: *** [find.info] Error 1
make: *** [install-recursive] Error 1
Comment 1 Fabian Groffen gentoo-dev 2008-05-05 15:12:22 UTC
you're right, I missed a '6'

use

 ./bootstrap-prefix.sh $EPREFIX/tmp coreutils6


thanks!