<?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>70448</bug_id>
          
          <creation_ts>2004-11-08 03:53 0000</creation_ts>
          <short_desc>gettext-0.14-1 failes on MacOSX</short_desc>
          <delta_ts>2005-04-03 12:03:36 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>PPC64</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>62085</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>bugzilla@dilken.de</reporter>
          <assigned_to>osx@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>bugzilla@dilken.de</who>
            <bug_when>2004-11-08 03:53:52 0000</bug_when>
            <thetext>gcc -c -DLOCALEDIR=\&quot;/usr/share/locale\&quot; -DLOCALE_ALIAS_PATH=\&quot;/usr/share/locale\&quot; -DLIBDIR=\&quot;/usr/lib\&quot; -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\&quot;/usr/lib\&quot; -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -I. -I. -I.. -O3 -pipe -mcpu=G5 -mtune=G5 -mpowerpc64 -funroll-loops -flat_namespace -undefined suppress ./loadmsgcat.c  -fno-common -DPIC -o .libs/loadmsgcat.o
 gcc -c -DLOCALEDIR=\&quot;/usr/share/locale\&quot; -DLOCALE_ALIAS_PATH=\&quot;/usr/share/locale\&quot; -DLIBDIR=\&quot;/usr/lib\&quot; -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\&quot;/usr/lib\&quot; -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -I. -I. -I.. -O3 -pipe -mcpu=G5 -mtune=G5 -mpowerpc64 -funroll-loops -flat_namespace -undefined suppress ./localealias.c  -fno-common -DPIC -o .libs/localealias.o
localealias.c:33:24: stdio_ext.h: No such file or directory
localealias.c: In function `read_alias_file&apos;:
localealias.c:240: error: `FSETLOCKING_BYCALLER&apos; undeclared (first use in this function)
localealias.c:240: error: (Each undeclared identifier is reported only once
localealias.c:240: error: for each function it appears in.)
make[3]: *** [localealias.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
 gcc -c -DLOCALEDIR=\&quot;/usr/share/locale\&quot; -DLOCALE_ALIAS_PATH=\&quot;/usr/share/locale\&quot; -DLIBDIR=\&quot;/usr/lib\&quot; -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\&quot;/usr/lib\&quot; -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -I. -I. -I.. -O3 -pipe -mcpu=G5 -mtune=G5 -mpowerpc64 -funroll-loops -flat_namespace -undefined suppress ./loadmsgcat.c -o loadmsgcat.o &gt;/dev/null 2&gt;&amp;1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1



Reproducible: Always
Steps to Reproduce:
1.
2.
3.




!!! Relying on the shell to locate gcc, this may break
!!! DISTCC, installing gcc-config and setting your current gcc
!!! profile will fix this
Portage 2.0.51-r2 (default-macos/ppc/10.3, gcc-3.3, libsystem-7.1-r0, 7.5.0
Power Macintosh)
=================================================================
System uname: 7.5.0 Power Macintosh powerpc
macos-20040726
distcc 2.0.1-zeroconf powerpc-apple-darwin7.0 (protocol 1) (default port 3632)
[disabled]
Autoconf: sys-devel/autoconf-2.57,sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.6.3,sys-devel/automake-1.8.5-r1
Binutils: 
Headers:  
Libtools: 
ACCEPT_KEYWORDS=&quot;ppc-macos ~ppc-macos&quot;
AUTOCLEAN=&quot;yes&quot;
CFLAGS=&quot;-O3 -pipe  -mcpu=G5 -mtune=G5 -mpowerpc64 -funroll-loops -flat_namespace
-undefined suppress&quot;
CHOST=&quot;powerpc-apple-darwin&quot;
COMPILER=&quot;&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/env.d&quot;
CXXFLAGS=&quot;-O3 -pipe  -mcpu=G5 -mtune=G5 -mpowerpc64 -funroll-loops
-flat_namespace -undefined suppress&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoaddcvs ccache collision-protect cvs distlocks keepwork&quot;
GENTOO_MIRRORS=&quot;http://gentoo.osuosl.org/&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;ppc X berkdb debug gif hbci jpeg justify makecheck multilib nls nptl ofx
ppc-macos quotes recode ssl threads tiff unicode usb&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kito@gentoo.org</who>
            <bug_when>2004-11-08 08:41:23 0000</bug_when>
            <thetext>why do you have -undefined suppressed and -flat_namespace permanently in your CFLAGS? I would also recommend taking out USE=&quot;ppc&quot; when using macos. </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>bugzilla@dilken.de</who>
            <bug_when>2004-11-09 03:14:05 0000</bug_when>
            <thetext>I changed the things you meant and now the following error occurs:


make[3]: Nothing to be done for `all&apos;.
Making all in intl
make[3]: Nothing to be done for `all&apos;.
Making all in lib
make[3]: Nothing to be done for `all&apos;.
Making all in libuniname
/bin/sh ../libtool --mode=link gcc  -O3 -pipe -mcpu=G5 -mtune=G5 -mpowerpc64 -funroll-loops   -o test-names  test-names.o libuniname.a ../lib/libgettextlib.la 
mkdir .libs
gcc -O3 -pipe -mcpu=G5 -mtune=G5 -mpowerpc64 -funroll-loops -o .libs/test-names test-names.o  libuniname.a ../lib/.libs/libgettextlib.dylib
ld: warning can&apos;t open dynamic library: /usr/lib/libintl.3.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2)
ld: Undefined symbols:


_libintl_gettext referenced from libgettextlib-0.14 expected to be defined in /usr/lib/libintl.3.dylib
make[3]: *** [test-names] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1

!!! ERROR: sys-devel/gettext-0.14.1 failed.
!!! Function src_compile, Line 45, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>bugzilla@dilken.de</who>
            <bug_when>2004-11-09 05:16:25 0000</bug_when>
            <thetext>There is the same result when I turn off nls-useflag.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>usata@gentoo.org</who>
            <bug_when>2004-11-09 19:46:06 0000</bug_when>
            <thetext>I noticed that ppc USE flag is set because 
ARCH is set to ppc in our stacked profile. 
(The same applies for non-stacked profile. 
Non-stacked profile sets macos USE flag 
because ARCH is set to macos) What we
can do for it? We cannot disable ppc USE
flag by USE=&quot;-ppc&quot; (I think this is because
ppc is enabled by ARCH).</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>bugzilla@dilken.de</who>
            <bug_when>2004-11-10 07:02:28 0000</bug_when>
            <thetext>linking /usr/lib/libintl.2.dylib to /usr/lib/libintl.3.dylib for providing version 3 and setting darwintoolize in the ebuild worked.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>usata@gentoo.org</who>
            <bug_when>2004-11-10 20:11:28 0000</bug_when>
            <thetext>Should be fixed in CVS. However, revdep-rebuild doesn&apos;t
work on Mac OS X.(It calls qpkg internally, and several
other things broken in that application)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gongloo@gentoo.org</who>
            <bug_when>2005-02-06 13:33:28 0000</bug_when>
            <thetext>Closing out bugs that&apos;ve been resolved for a while now... </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gentoo@kjosmoen.com</who>
            <bug_when>2005-04-02 21:11:12 0000</bug_when>
            <thetext>I just did an emerge world and installed gettext 0.14.1. The result was that the file /usr/lib/libintl.2.dylib was empty, and I had to manually link it to /usr/lib/libintl.3.dylib in order to get portage working properly again. Is this bug really considered &quot;fixed&quot;?

*Edit*
I think I just realized what the problem really is! The ebuild contains this bit of code:
&lt;snippet&gt;
        if use ppc-macos; then
                rm -f ${D}/usr/lib/charset.alias
                if [ -e &quot;${ROOT}&quot;/usr/$(get_libdir)/libintl.2.dylib ] ; then
                        cp -a ${ROOT}/usr/$(get_libdir)/libintl.2.dylib ${D}/usr/$(get_libdir)/
                        touch ${D}/usr/$(get_libdir)/libintl.2.dylib
                fi
&lt;/snippet&gt;

The problem is that &quot;cp -a&quot; is not valid with the OS X version of cp. In order to fix this problem, we would need to use instead &quot;cp -pPR&quot;.  No option &quot;-d&quot; is available, but the symoblic links will be copied correctly using &quot;cp -pPR&quot;!

Maybe we should look into other ebuilds where &quot;cp -a&quot; is used too?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>j4rg0n@gentoo.org</who>
            <bug_when>2005-04-03 12:03:36 0000</bug_when>
            <thetext>Good eye! Fixed in CVS. Thanks!! I will grep the portage tree for cp -a in ppc-macos keyworded
packages. If you find any, please file a bug. Thanks!</thetext>
          </long_desc>
      
    </bug>

</bugzilla>