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