Hello guys, I have some problems with compiling gettext on my mac. There is snap of the end of compilation process: gcc -dynamiclib -o .libs/libintl.2.3.0.dylib .libs/bindtextdom.o .libs/dcgettext.o .libs/dgettext.o .libs/gettext.o .libs/finddomain.o .libs/loadmsgcat.o .libs/localealias.o .libs/textdomain.o .libs/l10nflist.o .libs/explodename.o .libs/dcigettext.o .libs/dcngettext.o .libs/dngettext.o .libs/ngettext.o .libs/plural.o .libs/plural-exp.o .libs/localcharset.o .libs/relocatable.o .libs/localename.o .libs/log.o .libs/osdep.o .libs/intl-compat.o -L/usr/lib /usr/lib/libiconv.dylib -lc -mcpu=7450 -mtune=7450 -mpowerpc -install_name /usr/lib/libintl.2.dylib -compatibility_version 6 -current_version 6.0 ld: warning multiple definitions of symbol _locale_charset .libs/localcharset.o definition of _locale_charset in section (__TEXT,__text) /usr/lib/libiconv.dylib(localcharset.o) definition of _locale_charset ld: .libs/bindtextdom.o has local relocation entries in non-writable section (__TEXT,__text) /usr/bin/libtool: internal link edit command failed AND SNAP OF EMERGE INFO: jablicko root # emerge info !!! 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-r3 (default-darwin/macos/10.3, gcc-3.3, libsystem-7.1-r0, 7.6.0 Power Macintosh) ================================================================= System uname: 7.6.0 Power Macintosh powerpc macos-20041118 distcc 2.0.1-zeroconf powerpc-apple-darwin7.0 (protocol 1) (default port 3632) [disabled] Autoconf: Automake: Binutils: Headers: sys-libs/libsystem-7.1 Libtools: ACCEPT_KEYWORDS="ppc-macos" AUTOCLEAN="yes" CFLAGS="-pipe -fast -mcpu=7450 -mtune=7450 -mpowerpc" CHOST="powerpc-apple-darwin" COMPILER="" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-pipe -fast -mcpu=7450 -mtune=7450 -mpowerpc" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache collision-protect distlocks" GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="ipv6 ncurses nls ppc-macos ssl" Can you advise me what to do? I newly installed gentoo on my powerbook, and I cannot install almost anything... ]-; Reproducible: Always Steps to Reproduce: 1. 2. 3.
I'm having problems with gettext compiling as well. There is a bit more to the error message that might be helpfull: ld: warning can't open dynamic library: /usr/lib/libgettextlib-0.12.1.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2) ld: Undefined symbols: _error _error_print_progname _gnu_basename _maybe_print_progname _program_name _set_program_name _error referenced from libgettextsrc-0.12 expected to be defined in /usr/lib/libgettextlib-0.12.1.dylib _error_at_line referenced from libgettextsrc-0.12 expected to be defined in /usr/lib/libgettextlib-0.12.1.dylib _error_message_count referenced from libgettextsrc-0.12 expected to be defined in /usr/lib/libgettextlib-0.12.1.dylib _error_with_progname referenced from libgettextsrc-0.12 expected to be defined in /usr/lib/libgettextlib-0.12.1.dylib _uc_width referenced from libgettextsrc-0.12 expected to be defined in /usr/lib/libgettextlib-0.12.1.dylib _xrealloc referenced from libgettextsrc-0.12 expected to be defined in /usr/lib/libgettextlib-0.12.1.dylib _xstrdup referenced from libgettextsrc-0.12 expected to be defined in /usr/lib/libgettextlib-0.12.1.dylib _gnu_basename referenced from libgettextsrc-0.12 expected to be defined in /usr/lib/libgettextlib-0.12.1.dylib _program_name referenced from libgettextsrc-0.12 expected to be defined in /usr/lib/libgettextlib-0.12.1.dylib _xmalloc referenced from libgettextsrc-0.12 expected to be defined in /usr/lib/libgettextlib-0.12.1.dylib _delete_hash referenced from libgettextsrc-0.12 expected to be defined in /usr/lib/libgettextlib-0.12.1.dylib _find_entry referenced from libgettextsrc-0.12 expected to be defined in /usr/lib/libgettextlib-0.12.1.dylib _fstrcmp referenced from libgettextsrc-0.12 expected to be defined in /usr/lib/libgettextlib-0.12.1.dylib _init_hash referenced from libgettextsrc-0.12 expected to be defined in /usr/lib/libgettextlib-0.12.1.dylib _insert_entry referenced from libgettextsrc-0.12 expected to be defined in /usr/lib/libgettextlib-0.12.1.dylib _multiline_warning referenced from libgettextsrc-0.12 expected to be defined in /usr/lib/libgettextlib-0.12.1.dylib _xasprintf referenced from libgettextsrc-0.12 expected to be defined in /usr/lib/libgettextlib-0.12.1.dylib _concatenated_pathname referenced from libgettextsrc-0.12 expected to be defined in /usr/lib/libgettextlib-0.12.1.dylib make[4]: *** [msgcmp] Error 1 make[4]: *** Waiting for unfinished jobs.... gcc -dynamiclib -o .libs/libgettextpo.0.0.0.dylib .libs/gettext-po.o -L/usr/lib /usr/lib/libc.dylib /usr/lib/libiconv.dylib /var/tmp/portage/gettext-0.12.1-r2/work/gettext-0.12.1/gettext-tools/lib/.libs/libgettextlib.dylib ./.libs/libgettextsrc.dylib ../lib/.libs/libgettextlib.dylib -lc -mtune=7450 -mpowerpc -install_name /usr/lib/libgettextpo.0.dylib -compatibility_version 1 -current_version 1.0 (cd .libs && rm -f libgettextpo.0.dylib && ln -s libgettextpo.0.0.0.dylib libgettextpo.0.dylib) (cd .libs && rm -f libgettextpo.dylib && ln -s libgettextpo.0.0.0.dylib libgettextpo.dylib) ar cru .libs/libgettextpo.a gettext-po.o ranlib .libs/libgettextpo.a creating libgettextpo.la (cd .libs && rm -f libgettextpo.la && ln -s ../libgettextpo.la libgettextpo.la) make[3]: *** [all] Error 2 make[2]: *** [all-recursive] Error 1 make[1]: *** [all] Error 2 make: *** [all-recursive] Error 1 My emerge info in case it'll help: !!! 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-r3 (default-macos-10.3, gcc-3.3, libsystem-7.1-r0, 7.7.0 Power Macintosh) ================================================================= System uname: 7.7.0 Power Macintosh powerpc macos-20041118 distcc 2.0.1-zeroconf powerpc-apple-darwin7.0 (protocol 1) (default port 3632) [disabled] Autoconf: sys-devel/autoconf-2.13,sys-devel/autoconf-2.57,sys-devel/autoconf-2.59-r6 Automake: sys-devel/automake-1.4_p6,sys-devel/automake-1.5,sys-devel/automake-1.6.3,sys-devel/automake-1.7.9,sys-devel/automake-1.8.5-r2,sys-devel/automake-1.9.4 Binutils: Headers: Libtools: ACCEPT_KEYWORDS="ppc-macos ~ppc-macos" AUTOCLEAN="yes" CFLAGS="-O2 -mtune=7450 -mpowerpc -pipe" CHOST="powerpc-apple-darwin" COMPILER="" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O2 -mtune=7450 -mpowerpc -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache collision-protect distlocks" GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="macos perl"
Make sure you're using the new cascading profile... /etc/make.profile should be a symlink for /usr/portage/profiles/default-darwin/macos/10.3
Ok.. so I went into the ebuild working directory and copied libgettextlib-0.12.1.dylib to /usr/lib and if failed out with a different error this time. I'll post this error at the bottom of this post. The wierd thing is I don't understand why it is trying to reference the the library it just finished building in it's apparent final resting place after the build is finished....
Btw.. I am using the new simulink profile...
Try changing your CFLAGS to something more conservative, such as -02 -pipe, and see if that fixes the problem. It currently works on all of my MacOSX machines with the following CFLAGS: -fast -fPIC -mcpu=7450 -pipe
Ok, I was grasping at straws, so I decided to compile gettext with the old profile link (/usr/portage/profile/default-macos/ppc/10.3) and sure enough it worked. I've tried to lock down what the difference between to the two is and the only thing I could find that seamed to make sense was that the old profile has the arch set to ppc while the new one sets it to macos. Problem is changing the new profile arch to ppc still doesn't correctly compile gettext. So my question then is this... I am suppose to be using the /usr/portage/profile/default-macos-10.3 profile right?
I'm sorry to spam this bug report... but I found out what the problem is.. The old profile has USE="ppc-macos" while the new one has and empty default USE flag. After adding ppc-macos to my use flags gettext compiles with the new profile. Hope this helps the original bug poster... Now it's on to glib:)
Great. Closing this bug then.