<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>220379</bug_id>
          
          <creation_ts>2008-05-05 15:10 0000</creation_ts>
          <short_desc>Failure when bootstrapping coreutils on Mac OS X 10.5</short_desc>
          <delta_ts>2008-05-05 15:12:22 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo/Alt</product>
          <component>Prefix Support</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>OS X</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>s.cloherty@ieee.org</reporter>
          <assigned_to>alt@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>s.cloherty@ieee.org</who>
            <bug_when>2008-05-05 15:10:21 0000</bug_when>
            <thetext>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 &quot;.deps/date.Tpo&quot; -c -
o date.o date.c; \
        then mv -f &quot;.deps/date.Tpo&quot; &quot;.deps/date.Po&quot;; else rm -f &quot;.deps/date.Tpo&quot;
; 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:
  &quot;_rpl_putenv$UNIX2003&quot;, 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=&quot;$HOME/Gentoo&quot;
   export PATH=&quot;$EPREFIX/usr/bin:$EPREFIX/bin:$EPREFIX/tmp/usr/bin:$EPREFIX/tmp/bin:$PATH&quot;
2. ./bootstrap-prefix.sh $EPREFIX tree  &lt;-- 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=: &amp;&amp; backupdir=&quot;.am$$&quot; &amp;&amp; \
	am__cwd=`pwd` &amp;&amp; cd . &amp;&amp; \
	rm -rf $backupdir &amp;&amp; mkdir $backupdir &amp;&amp; \
	if (/bin/sh /Library/Gentoo/tmp/var/tmp/findutils-4.4.0/findutils-4.4.0/build-aux/missing --run makeinfo --version) &gt;/dev/null 2&gt;&amp;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 &amp;&amp; \
	cd &quot;$am__cwd&quot;; \
	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 . &amp;&amp; \
	  $restore $backupdir/* `echo &quot;./find.info&quot; | sed &apos;s|[^/]*$||&apos;`; \
	fi; \
	rm -rf $backupdir; exit $rc
find.texi:10: @include `../locate/dblocation.texi&apos;: 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&apos; due to errors; use --force to preserve.
make[1]: *** [find.info] Error 1
make: *** [install-recursive] Error 1</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>grobian@gentoo.org</who>
            <bug_when>2008-05-05 15:12:22 0000</bug_when>
            <thetext>you&apos;re right, I missed a &apos;6&apos;

use

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


thanks!</thetext>
          </long_desc>
      
    </bug>

</bugzilla>