Opened 11 years ago

Last modified 5 years ago

#39640 assigned defect

Duplicate symbol __gcry_mpih_add_1 when linking libgcrypt

Reported by: johanmattssonm (Johan Mattsson) Owned by: Schamschula (Marius Schamschula)
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: chrstphrchvz (Christopher Chavez)
Port: libgcrypt

Description (last modified by ci42)

Hi

I get an error when I try to install libgcrypt. Logfile is attached. Here is the failing step:

Making all in src
make[2]: Entering directory `/opt/birdfont/var/macports/build/_opt_birdfont_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libgcrypt/libgcrypt/work/libgcrypt-1.5.0/src'
/bin/sh ../libtool --tag=CC   --mode=link /Developer/usr/bin/clang -I/opt/birdfont/include -pipe -O2 -std=gnu89 -fheinous-gnu-extensions -arch i386 -Wall    -version-info 18:0:7 -L/opt/birdfont/lib -arch i386 -o libgcrypt.la -rpath /opt/birdfont/lib libgcrypt_la-visibility.lo libgcrypt_la-misc.lo libgcrypt_la-global.lo libgcrypt_la-sexp.lo libgcrypt_la-hwfeatures.lo libgcrypt_la-stdmem.lo libgcrypt_la-secmem.lo libgcrypt_la-missing-string.lo libgcrypt_la-module.lo libgcrypt_la-fips.lo libgcrypt_la-hmac256.lo libgcrypt_la-ath.lo  ../cipher/libcipher.la ../random/librandom.la ../mpi/libmpi.la ../compat/libcompat.la  -L/opt/birdfont/lib -lgpg-error 
libtool: link: rm -fr  .libs/libgcrypt.lax
libtool: link: (cd .libs/libgcrypt.lax/libcipher.a && ar x "/opt/birdfont/var/macports/build/_opt_birdfont_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libgcrypt/libgcrypt/work/libgcrypt-1.5.0/src/../cipher/.libs/libcipher.a")
libtool: link: (cd .libs/libgcrypt.lax/librandom.a && ar x "/opt/birdfont/var/macports/build/_opt_birdfont_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libgcrypt/libgcrypt/work/libgcrypt-1.5.0/src/../random/.libs/librandom.a")
libtool: link: (cd .libs/libgcrypt.lax/libmpi.a && ar x "/opt/birdfont/var/macports/build/_opt_birdfont_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libgcrypt/libgcrypt/work/libgcrypt-1.5.0/src/../mpi/.libs/libmpi.a")
libtool: link: (cd .libs/libgcrypt.lax/libcompat.a && ar x "/opt/birdfont/var/macports/build/_opt_birdfont_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libgcrypt/libgcrypt/work/libgcrypt-1.5.0/src/../compat/.libs/libcompat.a")
libtool: link: /Developer/usr/bin/clang -dynamiclib -Wl,-undefined -Wl,dynamic_lookup -o .libs/libgcrypt.11.dylib  .libs/libgcrypt_la-visibility.o .libs/libgcrypt_la-misc.o .libs/libgcrypt_la-global.o .libs/libgcrypt_la-sexp.o .libs/libgcrypt_la-hwfeatures.o .libs/libgcrypt_la-stdmem.o .libs/libgcrypt_la-secmem.o .libs/libgcrypt_la-missing-string.o .libs/libgcrypt_la-module.o .libs/libgcrypt_la-fips.o .libs/libgcrypt_la-hmac256.o .libs/libgcrypt_la-ath.o   .libs/libgcrypt.lax/libcipher.a/ac.o .libs/libgcrypt.lax/libcipher.a/arcfour.o .libs/libgcrypt.lax/libcipher.a/blowfish.o .libs/libgcrypt.lax/libcipher.a/camellia-glue.o .libs/libgcrypt.lax/libcipher.a/camellia.o .libs/libgcrypt.lax/libcipher.a/cast5.o .libs/libgcrypt.lax/libcipher.a/cipher.o .libs/libgcrypt.lax/libcipher.a/crc.o .libs/libgcrypt.lax/libcipher.a/des.o .libs/libgcrypt.lax/libcipher.a/dsa.o .libs/libgcrypt.lax/libcipher.a/ecc.o .libs/libgcrypt.lax/libcipher.a/elgamal.o .libs/libgcrypt.lax/libcipher.a/hash-common.o .libs/libgcrypt.lax/libcipher.a/hmac-tests.o .libs/libgcrypt.lax/libcipher.a/kdf.o .libs/libgcrypt.lax/libcipher.a/md.o .libs/libgcrypt.lax/libcipher.a/md4.o .libs/libgcrypt.lax/libcipher.a/md5.o .libs/libgcrypt.lax/libcipher.a/primegen.o .libs/libgcrypt.lax/libcipher.a/pubkey.o .libs/libgcrypt.lax/libcipher.a/rfc2268.o .libs/libgcrypt.lax/libcipher.a/rijndael.o .libs/libgcrypt.lax/libcipher.a/rmd160.o .libs/libgcrypt.lax/libcipher.a/rsa.o .libs/libgcrypt.lax/libcipher.a/seed.o .libs/libgcrypt.lax/libcipher.a/serpent.o .libs/libgcrypt.lax/libcipher.a/sha1.o .libs/libgcrypt.lax/libcipher.a/sha256.o .libs/libgcrypt.lax/libcipher.a/sha512.o .libs/libgcrypt.lax/libcipher.a/tiger.o .libs/libgcrypt.lax/libcipher.a/twofish.o .libs/libgcrypt.lax/libcipher.a/whirlpool.o  .libs/libgcrypt.lax/librandom.a/random-csprng.o .libs/libgcrypt.lax/librandom.a/random-fips.o .libs/libgcrypt.lax/librandom.a/random.o .libs/libgcrypt.lax/librandom.a/rndhw.o .libs/libgcrypt.lax/librandom.a/rndlinux.o  .libs/libgcrypt.lax/libmpi.a/ec.o .libs/libgcrypt.lax/libmpi.a/mpi-add.o .libs/libgcrypt.lax/libmpi.a/mpi-bit.o .libs/libgcrypt.lax/libmpi.a/mpi-cmp.o .libs/libgcrypt.lax/libmpi.a/mpi-div.o .libs/libgcrypt.lax/libmpi.a/mpi-gcd.o .libs/libgcrypt.lax/libmpi.a/mpi-inline.o .libs/libgcrypt.lax/libmpi.a/mpi-inv.o .libs/libgcrypt.lax/libmpi.a/mpi-mod.o .libs/libgcrypt.lax/libmpi.a/mpi-mpow.o .libs/libgcrypt.lax/libmpi.a/mpi-mul.o .libs/libgcrypt.lax/libmpi.a/mpi-pow.o .libs/libgcrypt.lax/libmpi.a/mpi-scan.o .libs/libgcrypt.lax/libmpi.a/mpicoder.o .libs/libgcrypt.lax/libmpi.a/mpih-add1.o .libs/libgcrypt.lax/libmpi.a/mpih-div.o .libs/libgcrypt.lax/libmpi.a/mpih-lshift.o .libs/libgcrypt.lax/libmpi.a/mpih-mul.o .libs/libgcrypt.lax/libmpi.a/mpih-mul1.o .libs/libgcrypt.lax/libmpi.a/mpih-mul2.o .libs/libgcrypt.lax/libmpi.a/mpih-mul3.o .libs/libgcrypt.lax/libmpi.a/mpih-rshift.o .libs/libgcrypt.lax/libmpi.a/mpih-sub1.o .libs/libgcrypt.lax/libmpi.a/mpiutil.o  .libs/libgcrypt.lax/libcompat.a/compat.o   -L/opt/birdfont/lib /opt/birdfont/lib/libgpg-error.dylib  -arch i386 -arch i386   -install_name  /opt/birdfont/lib/libgcrypt.11.dylib -compatibility_version 19 -current_version 19.0 -Wl,-single_module
ld: duplicate symbol __gcry_mpih_add_1 in .libs/libgcrypt.lax/libmpi.a/mpi-add.o and .libs/libgcrypt.lax/libmpi.a/ec.o
make[2]: *** [libgcrypt.la] Error 1
make[2]: Leaving directory `/opt/birdfont/var/macports/build/_opt_birdfont_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libgcrypt/libgcrypt/work/libgcrypt-1.5.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/birdfont/var/macports/build/_opt_birdfont_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libgcrypt/libgcrypt/work/libgcrypt-1.5.0'
make: *** [all] Error 2
make: Leaving directory `/opt/birdfont/var/macports/build/_opt_birdfont_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libgcrypt/libgcrypt/work/libgcrypt-1.5.0'

Attachments (3)

main.log (11.5 KB) - added by johanmattssonm (Johan Mattsson) 11 years ago.
main.2.log (165.8 KB) - added by johanmattssonm (Johan Mattsson) 11 years ago.
build log
main3.log (113.6 KB) - added by johanmattssonm (Johan Mattsson) 10 years ago.

Download all attachments as: .zip

Change History (13)

Changed 11 years ago by johanmattssonm (Johan Mattsson)

Attachment: main.log added

comment:1 Changed 11 years ago by ci42

Description: modified (diff)
Owner: changed from macports-tickets@… to sfiera@…

This was not a clean attempt. Please try again:

$ sudo port clean libgcrypt
$ sudo port selfupdate
$ sudo port install libgcrypt

and attach the log file if it fails.

In the future please use WikiFormatting and Cc the maintainer.

Changed 11 years ago by johanmattssonm (Johan Mattsson)

Attachment: main.2.log added

build log

comment:2 Changed 11 years ago by johanmattssonm (Johan Mattsson)

Thank you for your time. I have made a clean attempt and get the same error. See the attached log.

comment:3 Changed 11 years ago by johanmattssonm (Johan Mattsson)

Hi

After many hours of searching for a solution did a simply try to run:

cd [work directory]
sudo ./configure --prefix=/opt/birdfont
sudo make
sudo make install
sudo port -f activate libgcrypt

That was the trick to get it running on 10.6.3. I am surprised that it works and I still don't have any idea on how to fix the package.

comment:4 Changed 10 years ago by dbevans (David B. Evans)

This report was for libgcrypt 1.5.0, current version is 1.6.1. Is there still an issue on SL?

Changed 10 years ago by johanmattssonm (Johan Mattsson)

Attachment: main3.log added

comment:5 in reply to:  4 Changed 10 years ago by johanmattssonm (Johan Mattsson)

This issue is solved in the latest version of libgcrypt, but I still get an error message. See the attached log file.

comment:6 Changed 10 years ago by mf2k (Frank Schima)

Owner: changed from sfiera@… to macports-tickets@…

sfiera has retired. See #44785.

comment:7 Changed 5 years ago by chrstphrchvz (Christopher Chavez)

libgcrypt has since become maintained by Schamschula: #44857

comment:8 Changed 5 years ago by chrstphrchvz (Christopher Chavez)

Cc: chrstphrchvz added

comment:9 Changed 5 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to Schamschula
Status: newassigned

comment:10 Changed 5 years ago by Schamschula (Marius Schamschula)

As of writing these lines, we are at libgcrypt 1.8.4.

Having built a number of versions, under several macOS releases over the years, I have never seen the issue.

Note: See TracTickets for help on using tickets.