[gnutls-devel] GnuTLS | Building with nettle 3.9.1 does not work due to duplicated symbols (#1537)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Sat Mar 30 09:51:39 CET 2024



Ross Nicholson created an issue: https://gitlab.com/gnutls/gnutls/-/issues/1537



## Description of problem:

The following duplicate symbol error occurs when building with nettle 3.9.1

```
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -Wl,-search_paths_first -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/lib -arch arm64 -mmacosx-version-min=11.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk -stdlib=libc++ -liconv -Wl,-dynamic,-search_paths_first -I/Users/phunkyfish/kodi-repos/xbmc-addon-inputstream/tools/depends/target/binary-addons/macosx14.4_arm64-target-debug/build/depends/include -L/Users/phunkyfish/kodi-repos/xbmc-addon-inputstream/tools/depends/target/binary-addons/macosx14.4_arm64-target-debug/build/depends/lib -framework Security -framework CoreFoundation -o /var/folders/1s/929h1v2s24gdjnhwsw58_4mr0000gn/T//ffconf.ia6Ft8JX/test /var/folders/1s/929h1v2s24gdjnhwsw58_4mr0000gn/T//ffconf.ia6Ft8JX/test.o -lgnutls -lgmp -lhogweed -lgmp -lnettle -lz
clang: warning: argument unused during compilation: '-stdlib=libc++' [-Wunused-command-line-argument]
ld: warning: ignoring duplicate libraries: '-lgmp'
duplicate symbol '_nettle_rsa_compute_root_tr' in:
    /Users/phunkyfish/kodi-repos/xbmc-addon-inputstream/tools/depends/target/binary-addons/macosx14.4_arm64-target-debug/build/depends/lib/libhogweed.a[23](rsa-sign-tr.o)
    /Users/phunkyfish/kodi-repos/xbmc-addon-inputstream/tools/depends/target/binary-addons/macosx14.4_arm64-target-debug/build/depends/lib/libgnutls.a[392](rsa-sign-tr.o)
ld: 1 duplicate symbols
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ERROR: gnutls not found using pkg-config
```

Need to patch out the offending function: https://github.com/xbmc/inputstream.ffmpegdirect/pull/286/commits/1c36487a3474204b1d6049526a94eab35a115ca7

## Version of gnutls used: 3.8.4


## Distributor of gnutls (e.g., Ubuntu, Fedora, RHEL)

N/A - building inputstream.ffmpegdirect for Kodi

## How reproducible:

Steps to Reproduce:

 * Build HEAD for ffmpegdirect

## Actual results:

Duplicate symbol error

## Expected results:

No duplicated symbol error.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/issues/1537
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20240330/7b70c6dc/attachment-0001.html>


More information about the Gnutls-devel mailing list