Hello, I wasn't able to compile gnupg-1.4.2 on OSX 10.4. emerge -pv gnupg [ebuild N ] app-crypt/gnupg-1.4.2-r1 -X +bzip2 (-caps) -curl -ecc +idea -ldap +nls +readline (-selinux) -smartcard -usb +zlib 0 kB emerge info: Portage 2.0.51.22-r2 (default-darwin/macos/10.4, gcc-4.0.0, libsystem-7.1-r0, 8.2.0 Power Macintosh) ================================================================= System uname: 8.2.0 Power Macintosh powerpc macos-20041118 distcc 2.0.1-zeroconf powerpc-apple-darwin7.0 (protocol 1) (default port 3632) [disabled] dev-lang/python: [Not Present] sys-apps/sandbox: [Not Present] sys-devel/autoconf: [Not Present] sys-devel/automake: [Not Present] sys-devel/binutils: [Not Present] sys-devel/libtool: [Not Present] virtual/os-headers: 7.1 ACCEPT_KEYWORDS="ppc-macos ~ppc-macos" AUTOCLEAN="yes" CBUILD="powerpc-apple-darwin" CFLAGS="-O3 -pipe -mcpu=G4 -maltivec -mabi=altivec -fast -mpowerpc-gfxopt -mtune=7450 -mpowerpc -fPIC -faltivec -ftree-vectorize" CHOST="powerpc-apple-darwin" 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="-O3 -pipe -mcpu=G4 -maltivec -mabi=altivec -fast -mpowerpc-gfxopt -mtune=7450 -mpowerpc -fPIC -faltivec -ftree-vectorize" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache collision-protect distlocks sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="ppc bash-completion bzip2 emboss idea ipv6 javascript libwww nls png ppc-macos readline slang ssl tetex unicode zlib userland_Darwin kernel_Darwin elibc_Darwin" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY ERROR LOG: then mv -f ".deps/shmtest.Tpo" ".deps/shmtest.Po"; else rm -f ".deps/shmtest.Tpo"; exit 1; fi gcc -O3 -pipe -mcpu=G4 -maltivec -mabi=altivec -fast -mpowerpc-gfxopt -mtune=7450 -mpowerpc -fPIC -faltivec -ftree-vectorize -Wall -Wno-pointer-sign -o bftest bftest.o ../cipher/libcipher.a ../mpi/libmpi.a ../util/libutil.a /usr/lib/libiconv.dylib /usr/lib/libintl.dylib /usr/lib/libiconv.dylib /usr/lib/libc.dylib /usr/bin/ld: multiple definitions of symbol _g10_opt_homedir bftest.o definition of _g10_opt_homedir in section (__DATA,__common) ../cipher/libcipher.a(cipher.o) definition of _g10_opt_homedir in section (__DATA,__common) /usr/bin/ld: multiple definitions of symbol _g10_opt_verbose bftest.o definition of _g10_opt_verbose in section (__DATA,__common) ../cipher/libcipher.a(cipher.o) definition of _g10_opt_verbose in section (__DATA,__common) /usr/bin/ld: multiple definitions of symbol _g10c_debug_mode bftest.o definition of _g10c_debug_mode in section (__DATA,__common) ../cipher/libcipher.a(cipher.o) definition of _g10c_debug_mode in section (__DATA,__common) /usr/bin/ld: multiple definitions of symbol _iobuf_debug_mode bftest.o definition of _iobuf_debug_mode in section (__DATA,__common) ../cipher/libcipher.a(cipher.o) definition of _iobuf_debug_mode in section (__DATA,__common) /usr/bin/ld: multiple definitions of symbol _memory_debug_mode bftest.o definition of _memory_debug_mode in section (__DATA,__common) ../cipher/libcipher.a(cipher.o) definition of _memory_debug_mode in section (__DATA,__common) /usr/bin/ld: multiple definitions of symbol _memory_stat_debug_mode bftest.o definition of _memory_stat_debug_mode in section (__DATA,__common) ../cipher/libcipher.a(cipher.o) definition of _memory_stat_debug_mode in section (__DATA,__common) /usr/bin/ld: multiple definitions of symbol _mpi_debug_mode bftest.o definition of _mpi_debug_mode in section (__DATA,__common) ../cipher/libcipher.a(cipher.o) definition of _mpi_debug_mode in section (__DATA,__common) ../cipher/libcipher.a(des.o) definition of _iobuf_debug_mode in section (__DATA,__common) ../cipher/libcipher.a(des.o) definition of _memory_debug_mode in section (__DATA,__common) ../cipher/libcipher.a(des.o) definition of _memory_stat_debug_mode in section (__DATA,__common) ../cipher/libcipher.a(des.o) definition of _mpi_debug_mode in section (__DATA,__common) ../cipher/libcipher.a(twofish.o) definition of _iobuf_debug_mode in section (__DATA,__common) ../cipher/libcipher.a(twofish.o) definition of _memory_debug_mode in section (__DATA,__common) ../cipher/libcipher.a(twofish.o) definition of _memory_stat_debug_mode in section (__DATA,__common) ../cipher/libcipher.a(twofish.o) definition of _mpi_debug_mode in section (__DATA,__common) ../cipher/libcipher.a(blowfish.o) definition of _iobuf_debug_mode in section (__DATA,__common) ../cipher/libcipher.a(blowfish.o) definition of _memory_debug_mode in section (__DATA,__common) ../cipher/libcipher.a(blowfish.o) definition of _memory_stat_debug_mode in section (__DATA,__common) ../cipher/libcipher.a(blowfish.o) definition of _mpi_debug_mode in section (__DATA,__common) ../cipher/libcipher.a(cast5.o) definition of _iobuf_debug_mode in section (__DATA,__common) ../cipher/libcipher.a(cast5.o) definition of _memory_debug_mode in section (__DATA,__common) ../cipher/libcipher.a(cast5.o) definition of _memory_stat_debug_mode in section (__DATA,__common) ../cipher/libcipher.a(cast5.o) definition of _mpi_debug_mode in section (__DATA,__common) ../cipher/libcipher.a(rijndael.o) definition of _iobuf_debug_mode in section (__DATA,__common) ../cipher/libcipher.a(rijndael.o) definition of _memory_debug_mode in section (__DATA,__common) ../cipher/libcipher.a(rijndael.o) definition of _memory_stat_debug_mode in section (__DATA,__common) ../cipher/libcipher.a(rijndael.o) definition of _mpi_debug_mode in section (__DATA,__common) ../cipher/libcipher.a(random.o) definition of _iobuf_debug_mode in section (__DATA,__common) ../cipher/libcipher.a(random.o) definition of _memory_debug_mode in section (__DATA,__common) ../cipher/libcipher.a(random.o) definition of _memory_stat_debug_mode in section (__DATA,__common) ../cipher/libcipher.a(random.o) definition of _mpi_debug_mode in section (__DATA,__common) ../cipher/libcipher.a(rndlinux.o) definition of _iobuf_debug_mode in section (__DATA,__common) ../cipher/libcipher.a(rndlinux.o) definition of _memory_debug_mode in section (__DATA,__common) ../cipher/libcipher.a(rndlinux.o) definition of _memory_stat_debug_mode in section (__DATA,__common) ../cipher/libcipher.a(rndlinux.o) definition of _mpi_debug_mode in section (__DATA,__common) ../cipher/libcipher.a(rmd160.o) definition of _g10_opt_homedir in section (__DATA,__common) ../cipher/libcipher.a(rmd160.o) definition of _g10_opt_verbose in section (__DATA,__common) ../cipher/libcipher.a(rmd160.o) definition of _g10c_debug_mode in section (__DATA,__common) ../cipher/libcipher.a(rmd160.o) definition of _iobuf_debug_mode in section (__DATA,__common) ../cipher/libcipher.a(rmd160.o) definition of _memory_debug_mode in section (__DATA,__common) ../cipher/libcipher.a(rmd160.o) definition of _memory_stat_debug_mode in section (__DATA,__common) ../cipher/libcipher.a(rmd160.o) definition of _mpi_debug_mode in section (__DATA,__common) /usr/bin/ld: warning multiple definitions of symbol _locale_charset /usr/lib/libintl.dylib(localcharset.o) definition of _locale_charset /usr/lib/libiconv.dylib(localcharset.o) definition of _locale_charset/usr/bin/ld: warning suggest use of -bind_at_load, as lazy binding may result in errors or different symbols being used symbol _locale_charset used from dynamic library /usr/lib/libintl.dylib(localcharset.o) not from earlier dynamic library /usr/lib/libiconv.2.dylib(localcharset.o) collect2: ld returned 1 exit status make[2]: *** [bftest] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 !!! ERROR: app-crypt/gnupg-1.4.2-r1 failed. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Which version of gettext do you have installed, and with which use flags? emerge -pv gettext
Doesn't look like it has anything todo with gettext. try ditching the -fPIC flag.
(In reply to comment #2) > Doesn't look like it has anything todo with gettext. try ditching the -fPIC flag. Hello, I tried to ditch -fPIC flag, and it hasn't helped [ebuild U ] sys-devel/gettext-0.14.4 [0.14.1-r1] (-doc) -emacs +nls 6,869 k
did you re-emerge gettext without the -fPIC flag then try again? Alternatively, if you are going to try using the -fPIC flag on Darwin/OS X, you always need to add -fno-common as well, this prevents it from using the same symbol from multiple libs like its doing below.
Hi I tried both - without -fPIC - I wasn't event able to compile gettext with -fno-common I was able to compile gettext, but again not gnupg. BTW. I have read some stuff in man gcc, and there is statement: "-fPIC is the default on Darwin and Mac OS X."...
Have you tried scaling back your CFLAGS to something relatively harmless such as "-O2 -pipe"? It compiles fine on my machine with the CFLAGS I am using: CFLAGS="-O3 -fgcse-sm -funroll-loops -fstrict-aliasing -fsched-interblock -falign-loops=16 -falign- jumps=16 -falign-functions=16 -falign-jumps-max-skip=15 -falign-loops-max-skip=15 -ffast-math - freorder-blocks -freorder-blocks-and-partition -finline-floor -mpowerpc-gpopt -force_cpusubtype_ALL -mcpu=7450 -fPIC -pipe -maltivec" It looks long, but all those additional options are part of -fast -- I just needed to get rid of a few of them.
I just emerged 1.4.2-r1 without any problem ?!?
My only suggestion is to try to upgrade world before upgrading gnupg and then retry. We unfortunately cannot reproduce this bug. After you've done that, sudo rm -rf /var/tmp/portage/gnupg-{version}. Then re-emerge gnupg with -fno-common as kito suggested.