Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1796025 - python-kadmin fails to build with gcc 10: multiple definition of various symbols
Summary: python-kadmin fails to build with gcc 10: multiple definition of various symbols
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-kadmin
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Gwyn Ciesla
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F32FTBFS PYTHON39 GCC10
TreeView+ depends on / blocked
 
Reported: 2020-01-29 12:38 UTC by Miro Hrončok
Modified: 2020-01-29 15:43 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-01-29 15:43:05 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Miro Hrončok 2020-01-29 12:38:53 UTC
python-kadmin fails to build with gcc 10:

gcc -pthread -shared -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -g -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -g -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection build/temp.linux-x86_64-3.9/src/PyKAdminCommon.o build/temp.linux-x86_64-3.9/src/PyKAdminErrors.o build/temp.linux-x86_64-3.9/src/PyKAdminIterator.o build/temp.linux-x86_64-3.9/src/PyKAdminObject.o build/temp.linux-x86_64-3.9/src/PyKAdminPolicyObject.o build/temp.linux-x86_64-3.9/src/PyKAdminPrincipalObject.o build/temp.linux-x86_64-3.9/src/PyKAdminXDR.o build/temp.linux-x86_64-3.9/src/getdate.o build/temp.linux-x86_64-3.9/src/kadmin.o -L/usr/lib64 -lkrb5 -lkadm5clnt -lkdb5 -o build/lib.linux-x86_64-3.9/kadmin.cpython-39-x86_64-linux-gnu.so
/usr/bin/ld: build/temp.linux-x86_64-3.9/src/PyKAdminIterator.o:/builddir/build/BUILD/python-kadmin-94e50ed0a788d9ff9e4b47a35a65ca22c69b703a/src/PyKAdminObject.h:34: multiple definition of `PyKAdminObject_Type'; build/temp.linux-x86_64-3.9/src/PyKAdminCommon.o:/builddir/build/BUILD/python-kadmin-94e50ed0a788d9ff9e4b47a35a65ca22c69b703a/src/PyKAdminObject.h:34: first defined here
/usr/bin/ld: build/temp.linux-x86_64-3.9/src/PyKAdminObject.o:/builddir/build/BUILD/python-kadmin-94e50ed0a788d9ff9e4b47a35a65ca22c69b703a/src/PyKAdminObject.h:34: multiple definition of `PyKAdminObject_Type'; build/temp.linux-x86_64-3.9/src/PyKAdminCommon.o:/builddir/build/BUILD/python-kadmin-94e50ed0a788d9ff9e4b47a35a65ca22c69b703a/src/PyKAdminObject.h:34: first defined here
/usr/bin/ld: build/temp.linux-x86_64-3.9/src/PyKAdminObject.o:/builddir/build/BUILD/python-kadmin-94e50ed0a788d9ff9e4b47a35a65ca22c69b703a/src/PyKAdminPolicyObject.h:23: multiple definition of `PyKAdminPolicyObject_Type'; build/temp.linux-x86_64-3.9/src/PyKAdminIterator.o:/builddir/build/BUILD/python-kadmin-94e50ed0a788d9ff9e4b47a35a65ca22c69b703a/src/PyKAdminPolicyObject.h:23: first defined here
/usr/bin/ld: build/temp.linux-x86_64-3.9/src/PyKAdminObject.o:/builddir/build/BUILD/python-kadmin-94e50ed0a788d9ff9e4b47a35a65ca22c69b703a/src/PyKAdminPrincipalObject.h:24: multiple definition of `PyKAdminPrincipalObject_Type'; build/temp.linux-x86_64-3.9/src/PyKAdminIterator.o:/builddir/build/BUILD/python-kadmin-94e50ed0a788d9ff9e4b47a35a65ca22c69b703a/src/PyKAdminPrincipalObject.h:24: first defined here
/usr/bin/ld: build/temp.linux-x86_64-3.9/src/PyKAdminObject.o:/builddir/build/BUILD/python-kadmin-94e50ed0a788d9ff9e4b47a35a65ca22c69b703a/src/PyKAdminIterator.h:24: multiple definition of `PyKAdminIterator_Type'; build/temp.linux-x86_64-3.9/src/PyKAdminIterator.o:/builddir/build/BUILD/python-kadmin-94e50ed0a788d9ff9e4b47a35a65ca22c69b703a/src/PyKAdminIterator.h:24: first defined here
/usr/bin/ld: build/temp.linux-x86_64-3.9/src/PyKAdminPolicyObject.o:/builddir/build/BUILD/python-kadmin-94e50ed0a788d9ff9e4b47a35a65ca22c69b703a/src/PyKAdminPolicyObject.h:23: multiple definition of `PyKAdminPolicyObject_Type'; build/temp.linux-x86_64-3.9/src/PyKAdminIterator.o:/builddir/build/BUILD/python-kadmin-94e50ed0a788d9ff9e4b47a35a65ca22c69b703a/src/PyKAdminPolicyObject.h:23: first defined here
/usr/bin/ld: build/temp.linux-x86_64-3.9/src/PyKAdminPolicyObject.o:/builddir/build/BUILD/python-kadmin-94e50ed0a788d9ff9e4b47a35a65ca22c69b703a/src/PyKAdminPrincipalObject.h:24: multiple definition of `PyKAdminPrincipalObject_Type'; build/temp.linux-x86_64-3.9/src/PyKAdminIterator.o:/builddir/build/BUILD/python-kadmin-94e50ed0a788d9ff9e4b47a35a65ca22c69b703a/src/PyKAdminPrincipalObject.h:24: first defined here
/usr/bin/ld: build/temp.linux-x86_64-3.9/src/PyKAdminPolicyObject.o:/builddir/build/BUILD/python-kadmin-94e50ed0a788d9ff9e4b47a35a65ca22c69b703a/src/PyKAdminIterator.h:24: multiple definition of `PyKAdminIterator_Type'; build/temp.linux-x86_64-3.9/src/PyKAdminIterator.o:/builddir/build/BUILD/python-kadmin-94e50ed0a788d9ff9e4b47a35a65ca22c69b703a/src/PyKAdminIterator.h:24: first defined here
/usr/bin/ld: build/temp.linux-x86_64-3.9/src/PyKAdminPolicyObject.o:/builddir/build/BUILD/python-kadmin-94e50ed0a788d9ff9e4b47a35a65ca22c69b703a/src/PyKAdminObject.h:34: multiple definition of `PyKAdminObject_Type'; build/temp.linux-x86_64-3.9/src/PyKAdminCommon.o:/builddir/build/BUILD/python-kadmin-94e50ed0a788d9ff9e4b47a35a65ca22c69b703a/src/PyKAdminObject.h:34: first defined here
/usr/bin/ld: build/temp.linux-x86_64-3.9/src/PyKAdminPrincipalObject.o:/builddir/build/BUILD/python-kadmin-94e50ed0a788d9ff9e4b47a35a65ca22c69b703a/src/PyKAdminPolicyObject.h:23: multiple definition of `PyKAdminPolicyObject_Type'; build/temp.linux-x86_64-3.9/src/PyKAdminIterator.o:/builddir/build/BUILD/python-kadmin-94e50ed0a788d9ff9e4b47a35a65ca22c69b703a/src/PyKAdminPolicyObject.h:23: first defined here
/usr/bin/ld: build/temp.linux-x86_64-3.9/src/PyKAdminPrincipalObject.o:/builddir/build/BUILD/python-kadmin-94e50ed0a788d9ff9e4b47a35a65ca22c69b703a/src/PyKAdminPrincipalObject.h:24: multiple definition of `PyKAdminPrincipalObject_Type'; build/temp.linux-x86_64-3.9/src/PyKAdminIterator.o:/builddir/build/BUILD/python-kadmin-94e50ed0a788d9ff9e4b47a35a65ca22c69b703a/src/PyKAdminPrincipalObject.h:24: first defined here
/usr/bin/ld: build/temp.linux-x86_64-3.9/src/PyKAdminPrincipalObject.o:/builddir/build/BUILD/python-kadmin-94e50ed0a788d9ff9e4b47a35a65ca22c69b703a/src/PyKAdminIterator.h:24: multiple definition of `PyKAdminIterator_Type'; build/temp.linux-x86_64-3.9/src/PyKAdminIterator.o:/builddir/build/BUILD/python-kadmin-94e50ed0a788d9ff9e4b47a35a65ca22c69b703a/src/PyKAdminIterator.h:24: first defined here
/usr/bin/ld: build/temp.linux-x86_64-3.9/src/PyKAdminPrincipalObject.o:/builddir/build/BUILD/python-kadmin-94e50ed0a788d9ff9e4b47a35a65ca22c69b703a/src/PyKAdminObject.h:34: multiple definition of `PyKAdminObject_Type'; build/temp.linux-x86_64-3.9/src/PyKAdminCommon.o:/builddir/build/BUILD/python-kadmin-94e50ed0a788d9ff9e4b47a35a65ca22c69b703a/src/PyKAdminObject.h:34: first defined here
/usr/bin/ld: build/temp.linux-x86_64-3.9/src/kadmin.o:/builddir/build/BUILD/python-kadmin-94e50ed0a788d9ff9e4b47a35a65ca22c69b703a/src/PyKAdminObject.h:34: multiple definition of `PyKAdminObject_Type'; build/temp.linux-x86_64-3.9/src/PyKAdminCommon.o:/builddir/build/BUILD/python-kadmin-94e50ed0a788d9ff9e4b47a35a65ca22c69b703a/src/PyKAdminObject.h:34: first defined here
/usr/bin/ld: build/temp.linux-x86_64-3.9/src/kadmin.o:/builddir/build/BUILD/python-kadmin-94e50ed0a788d9ff9e4b47a35a65ca22c69b703a/src/PyKAdminPrincipalObject.h:24: multiple definition of `PyKAdminPrincipalObject_Type'; build/temp.linux-x86_64-3.9/src/PyKAdminIterator.o:/builddir/build/BUILD/python-kadmin-94e50ed0a788d9ff9e4b47a35a65ca22c69b703a/src/PyKAdminPrincipalObject.h:24: first defined here
/usr/bin/ld: build/temp.linux-x86_64-3.9/src/kadmin.o:/builddir/build/BUILD/python-kadmin-94e50ed0a788d9ff9e4b47a35a65ca22c69b703a/src/PyKAdminPolicyObject.h:23: multiple definition of `PyKAdminPolicyObject_Type'; build/temp.linux-x86_64-3.9/src/PyKAdminIterator.o:/builddir/build/BUILD/python-kadmin-94e50ed0a788d9ff9e4b47a35a65ca22c69b703a/src/PyKAdminPolicyObject.h:23: first defined here
/usr/bin/ld: build/temp.linux-x86_64-3.9/src/kadmin.o:/builddir/build/BUILD/python-kadmin-94e50ed0a788d9ff9e4b47a35a65ca22c69b703a/src/PyKAdminIterator.h:24: multiple definition of `PyKAdminIterator_Type'; build/temp.linux-x86_64-3.9/src/PyKAdminIterator.o:/builddir/build/BUILD/python-kadmin-94e50ed0a788d9ff9e4b47a35a65ca22c69b703a/src/PyKAdminIterator.h:24: first defined here
collect2: error: ld returned 1 exit status


This blocks the Python 3.9 rebuild of the package.

See https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/RYVPP45PMWPXYBBDKXO3CI7YGL7CDQG6/ and https://gcc.gnu.org/gcc-10/porting_to.html#common for more information about the failure.


Note You need to log in before you can comment on or make changes to this bug.