Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 727514 - dev-python/nautilus-python-1.2.3: src/nautilus-python.h:76: multiple definition of `_PyNautilusOperationHandle_Type'
Summary: dev-python/nautilus-python-1.2.3: src/nautilus-python.h:76: multiple definiti...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: -fno-common
  Show dependency tree
 
Reported: 2020-06-08 08:57 UTC by Kobboi
Modified: 2020-08-27 15:43 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,22.69 KB, text/plain)
2020-06-08 08:59 UTC, Kobboi
Details
Fix compiling with gcc10 (nautilus-python-1.2.3-fix-gcc10-compiling.diff,5.41 KB, patch)
2020-08-21 16:53 UTC, tuxuser360
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kobboi 2020-06-08 08:57:41 UTC
[ebuild     U  ] dev-python/nautilus-python-1.2.3::gentoo [1.2.2-r1::gentoo] PYTHON_SINGLE_TARGET="python3_7%* -python2_7* -python3_6% -python3_8%" 264 KiB

libtool: link: x86_64-pc-linux-gnu-gcc -shared  -fPIC -DPIC  .libs/nautilus-python.o .libs/nautilus-python-object.o   -Wl,--as-needed -lnautilus-extension -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lpython3.7m -lcrypt -lpthread -ldl -lutil -lm  -O2 -march=x86-64 -g -ggdb -Wl,-O1   -Wl,-soname -Wl,libnautilus-python.so -o .libs/libnautilus-python.so
/usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/nautilus-python-object.o:/var/tmp/portage/dev-python/nautilus-python-1.2.3/work/nautilus-python-1.2.3/src/nautilus-python.h:76: multiple definition of `_PyNautilusOperationHandle_Type'; .libs/nautilus-python.o:/var/tmp/portage/dev-python/nautilus-python-1.2.3/work/nautilus-python-1.2.3/src/nautilus-python.h:76: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/nautilus-python-object.o:/usr/include/pygobject-3.0/pygobject.h:230: multiple definition of `_PyGObject_API'; .libs/nautilus-python.o:/usr/include/pygobject-3.0/pygobject.h:230: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/nautilus-python-object.o:/var/tmp/portage/dev-python/nautilus-python-1.2.3/work/nautilus-python-1.2.3/src/nautilus-python.h:70: multiple definition of `_PyNautilusPropertyPage_Type'; .libs/nautilus-python.o:/var/tmp/portage/dev-python/nautilus-python-1.2.3/work/nautilus-python-1.2.3/src/nautilus-python.h:70: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/nautilus-python-object.o:/var/tmp/portage/dev-python/nautilus-python-1.2.3/work/nautilus-python-1.2.3/src/nautilus-python.h:64: multiple definition of `_PyNautilusMenuItem_Type'; .libs/nautilus-python.o:/var/tmp/portage/dev-python/nautilus-python-1.2.3/work/nautilus-python-1.2.3/src/nautilus-python.h:64: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/nautilus-python-object.o:/var/tmp/portage/dev-python/nautilus-python-1.2.3/work/nautilus-python-1.2.3/src/nautilus-python.h:49: multiple definition of `_PyNautilusColumn_Type'; .libs/nautilus-python.o:/var/tmp/portage/dev-python/nautilus-python-1.2.3/work/nautilus-python-1.2.3/src/nautilus-python.h:49: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/nautilus-python-object.o:/var/tmp/portage/dev-python/nautilus-python-1.2.3/work/nautilus-python-1.2.3/src/nautilus-python.h:46: multiple definition of `_PyGtkWidget_Type'; .libs/nautilus-python.o:/var/tmp/portage/dev-python/nautilus-python-1.2.3/work/nautilus-python-1.2.3/src/nautilus-python.h:46: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/nautilus-python-object.o:/var/tmp/portage/dev-python/nautilus-python-1.2.3/work/nautilus-python-1.2.3/src/nautilus-python.h:73: multiple definition of `_PyNautilusPropertyPageProvider_Type'; .libs/nautilus-python.o:/var/tmp/portage/dev-python/nautilus-python-1.2.3/work/nautilus-python-1.2.3/src/nautilus-python.h:73: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/nautilus-python-object.o:/var/tmp/portage/dev-python/nautilus-python-1.2.3/work/nautilus-python-1.2.3/src/nautilus-python.h:58: multiple definition of `_PyNautilusLocationWidgetProvider_Type'; .libs/nautilus-python.o:/var/tmp/portage/dev-python/nautilus-python-1.2.3/work/nautilus-python-1.2.3/src/nautilus-python.h:58: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/nautilus-python-object.o:/var/tmp/portage/dev-python/nautilus-python-1.2.3/work/nautilus-python-1.2.3/src/nautilus-python.h:67: multiple definition of `_PyNautilusMenuProvider_Type'; .libs/nautilus-python.o:/var/tmp/portage/dev-python/nautilus-python-1.2.3/work/nautilus-python-1.2.3/src/nautilus-python.h:67: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/nautilus-python-object.o:/var/tmp/portage/dev-python/nautilus-python-1.2.3/work/nautilus-python-1.2.3/src/nautilus-python.h:52: multiple definition of `_PyNautilusColumnProvider_Type'; .libs/nautilus-python.o:/var/tmp/portage/dev-python/nautilus-python-1.2.3/work/nautilus-python-1.2.3/src/nautilus-python.h:52: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/nautilus-python-object.o:/var/tmp/portage/dev-python/nautilus-python-1.2.3/work/nautilus-python-1.2.3/src/nautilus-python.h:55: multiple definition of `_PyNautilusInfoProvider_Type'; .libs/nautilus-python.o:/var/tmp/portage/dev-python/nautilus-python-1.2.3/work/nautilus-python-1.2.3/src/nautilus-python.h:55: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/nautilus-python-object.o:/var/tmp/portage/dev-python/nautilus-python-1.2.3/work/nautilus-python-1.2.3/src/nautilus-python.h:61: multiple definition of `_PyNautilusMenu_Type'; .libs/nautilus-python.o:/var/tmp/portage/dev-python/nautilus-python-1.2.3/work/nautilus-python-1.2.3/src/nautilus-python.h:61: first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:450: libnautilus-python.la] Error 1
make[2]: Leaving directory '/var/tmp/portage/dev-python/nautilus-python-1.2.3/work/nautilus-python-1.2.3/src'
make[1]: *** [Makefile:490: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/dev-python/nautilus-python-1.2.3/work/nautilus-python-1.2.3'
make: *** [Makefile:397: all] Error 2

Reproducible: Always
Comment 1 Kobboi 2020-06-08 08:59:05 UTC
Created attachment 643928 [details]
build.log
Comment 2 jonas.licht 2020-06-08 09:58:37 UTC
I think this belongs to this upstream bug: https://gitlab.gnome.org/GNOME/nautilus-python/-/issues/10
Comment 3 tuxuser360 2020-08-21 16:53:45 UTC
Created attachment 655974 [details, diff]
Fix compiling with gcc10

Not yet merged patch by Andreas Henriksson (@andhe)

https://gitlab.gnome.org/GNOME/nautilus-python/-/merge_requests/7
Comment 4 Larry the Git Cow gentoo-dev 2020-08-27 15:43:50 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=03a33031108b8245b2828cda7e8a3a231feaabec

commit 03a33031108b8245b2828cda7e8a3a231feaabec
Author:     Alexandru-Sever Horin <alex.sever.h@gmail.com>
AuthorDate: 2020-06-09 15:59:58 +0000
Commit:     Conrad Kostecki <conikost@gentoo.org>
CommitDate: 2020-08-27 15:36:45 +0000

    dev-python/nautilus-python: fix compilation with GCC10
    
    Fixed compilation with GCC10.
    
    Closes: https://bugs.gentoo.org/727514
    Closes: https://github.com/gentoo/gentoo/pull/16137
    Signed-off-by: Alexandru-Sever Horin <alex.sever.h@gmail.com>
    Signed-off-by: Conrad Kostecki <conikost@gentoo.org>

 .../nautilus-python-1.2.3-gcc10-fnocommon.patch    | 147 +++++++++++++++++++++
 .../nautilus-python/nautilus-python-1.2.3.ebuild   |   3 +
 2 files changed, 150 insertions(+)