Summary: | gettext-0.14-1 failes on MacOSX | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Roman Dilken <bugzilla> |
Component: | New packages | Assignee: | osx porters <osx> |
Status: | VERIFIED FIXED | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | PPC64 | ||
OS: | All | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 62085 |
Description
Roman Dilken
2004-11-08 03:53:52 UTC
why do you have -undefined suppressed and -flat_namespace permanently in your CFLAGS? I would also recommend taking out USE="ppc" when using macos. I changed the things you meant and now the following error occurs: make[3]: Nothing to be done for `all'. Making all in intl make[3]: Nothing to be done for `all'. Making all in lib make[3]: Nothing to be done for `all'. 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'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. There is the same result when I turn off nls-useflag. 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="-ppc" (I think this is because ppc is enabled by ARCH). linking /usr/lib/libintl.2.dylib to /usr/lib/libintl.3.dylib for providing version 3 and setting darwintoolize in the ebuild worked. Should be fixed in CVS. However, revdep-rebuild doesn't work on Mac OS X.(It calls qpkg internally, and several other things broken in that application) Closing out bugs that've been resolved for a while now... 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 "fixed"? *Edit* I think I just realized what the problem really is! The ebuild contains this bit of code: <snippet> if use ppc-macos; then rm -f ${D}/usr/lib/charset.alias if [ -e "${ROOT}"/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 </snippet> The problem is that "cp -a" is not valid with the OS X version of cp. In order to fix this problem, we would need to use instead "cp -pPR". No option "-d" is available, but the symoblic links will be copied correctly using "cp -pPR"! Maybe we should look into other ebuilds where "cp -a" is used too? 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! |