Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 629778 - x11-libs/gtk+-2.24.31-r1: compilation fails, because incorectly patched source within ebuild
Summary: x11-libs/gtk+-2.24.31-r1: compilation fails, because incorectly patched sourc...
Status: RESOLVED TEST-REQUEST
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:
: 659294 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-09-03 15:31 UTC by David Heidelberg (okias)
Modified: 2021-05-01 02:41 UTC (History)
7 users (show)

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


Attachments
build_log.txt (build.info,581.57 KB, text/plain)
2017-09-03 15:31 UTC, David Heidelberg (okias)
Details
emerge_info.txt (emerge_info.txt,5.38 KB, text/plain)
2017-09-05 18:38 UTC, David Heidelberg (okias)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Heidelberg (okias) 2017-09-03 15:31:36 UTC
Created attachment 492142 [details]
build_log.txt

# emerge -av1 gtk+:2

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  NS    ] x11-libs/gtk+-2.24.31-r1:2::gentoo [3.22.19:3::gnome-next] USE="introspection (-aqua) -cups -examples {-test} -vim-syntax -xinerama" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  N     ] x11-themes/gtk-engines-adwaita-3.22.3::gentoo  ABI_X86="(64) -32 (-x32)" 0 KiB

Total: 2 packages (1 new, 1 in new slot), Size of downloads: 0 KiB
Comment 1 Jonas Stein gentoo-dev 2017-09-05 11:06:48 UTC
Thank you for the report. You can compress logfiles next time:
https://wiki.gentoo.org/wiki/Bugzilla/Bug_report_guide#Report_a_build-time_bug_.28emerge_failed.29
Comment 2 David Heidelberg (okias) 2017-09-05 18:38:43 UTC
Created attachment 492686 [details]
emerge_info.txt

@jstein thx
Comment 3 David Heidelberg (okias) 2017-09-05 18:48:18 UTC
It ends with:
libtool: link:  x86_64-pc-linux-gnu-gcc -shared  -fPIC -DPIC  .libs/gtkquery.o .libs/gtksearchengine.o .libs/gtksearchenginesimple.o .libs/fnmatch.o .libs/gtkaboutdialog.o .libs/gtkaccelgroup.o .libs/gtkaccellabel.o .libs/gtkaccelmap.o .libs/gtkaccessible.o .libs/gtkaction.o .libs/gtkactiongroup.o .libs/gtkactivatable.o .libs/gtkadjustment.o .libs/gtkalignment.o .libs/gtkarrow.o .libs/gtkaspectframe.o .libs/gtkassistant.o .libs/gtkbbox.o .libs/gtkbin.o .libs/gtkbindings.o .libs/gtkbox.o .libs/gtkbuildable.o .libs/gtkbuilder.o .libs/gtkbuilderparser.o .libs/gtkbutton.o .libs/gtkcalendar.o .libs/gtkcelleditable.o .libs/gtkcelllayout.o .libs/gtkcellrenderer.o .libs/gtkcellrendereraccel.o .libs/gtkcellrenderercombo.o .libs/gtkcellrendererpixbuf.o .libs/gtkcellrendererprogress.o .libs/gtkcellrendererspin.o .libs/gtkcellrendererspinner.o .libs/gtkcellrenderertext.o .libs/gtkcellrenderertoggle.o .libs/gtkcellview.o .libs/gtkcheckbutton.o .libs/gtkcheckmenuitem.o .libs/gtkcolorbutton.o .libs/gtkcolorsel.o .libs/gtkcolorseldialog.o .libs/gtkcombobox.o .libs/gtkcomboboxentry.o .libs/gtkcomboboxtext.o .libs/gtkcontainer.o .libs/gtkdialog.o .libs/gtkdrawingarea.o .libs/gtkeditable.o .libs/gtkentry.o .libs/gtkentrybuffer.o .libs/gtkentrycompletion.o .libs/gtkeventbox.o .libs/gtkexpander.o .libs/gtkfilechooser.o .libs/gtkfilechooserbutton.o .libs/gtkfilechooserdefault.o .libs/gtkfilechooserdialog.o .libs/gtkfilechooserembed.o .libs/gtkfilechooserentry.o .libs/gtkfilechoosersettings.o .libs/gtkfilechooserutils.o .libs/gtkfilechooserwidget.o .libs/gtkfilefilter.o .libs/gtkfilesystem.o .libs/gtkfilesystemmodel.o .libs/gtkfixed.o .libs/gtkfontbutton.o .libs/gtkfontsel.o .libs/gtkframe.o .libs/gtkgc.o .libs/gtkhandlebox.o .libs/gtkhbbox.o .libs/gtkhbox.o .libs/gtkhpaned.o .libs/gtkhruler.o .libs/gtkhscale.o .libs/gtkhscrollbar.o .libs/gtkhseparator.o .libs/gtkhsv.o .libs/gtkiconcache.o .libs/gtkiconcachevalidator.o .libs/gtkiconfactory.o .libs/gtkicontheme.o .libs/gtkiconview.o .libs/gtkimage.o .libs/gtkimagemenuitem.o .libs/gtkimcontext.o .libs/gtkimcontextsimple.o .libs/gtkimmodule.o .libs/gtkimmulticontext.o .libs/gtkinfobar.o .libs/gtkinputdialog.o .libs/gtkinvisible.o .libs/gtkitem.o .libs/gtkkeyhash.o .libs/gtklabel.o .libs/gtklayout.o .libs/gtklinkbutton.o .libs/gtkliststore.o .libs/gtkmain.o .libs/gtkmarshal.o .libs/gtkmarshalers.o .libs/gtkmenu.o .libs/gtkmenubar.o .libs/gtkmenuitem.o .libs/gtkmenushell.o .libs/gtkmenutoolbutton.o .libs/gtkmessagedialog.o .libs/gtkmisc.o .libs/gtkmnemonichash.o .libs/gtkmodules.o .libs/gtkmountoperation.o .libs/gtknotebook.o .libs/gtkobject.o .libs/gtkoffscreenwindow.o .libs/gtkorientable.o .libs/gtkpagesetup.o .libs/gtkpaned.o .libs/gtkpango.o .libs/gtkpapersize.o .libs/gtkpathbar.o .libs/gtkplug.o .libs/gtkprintcontext.o .libs/gtkprintoperation.o .libs/gtkprintoperationpreview.o .libs/gtkprintsettings.o .libs/gtkprintutils.o .libs/gtkprogressbar.o .libs/gtkradioaction.o .libs/gtkradiobutton.o .libs/gtkradiomenuitem.o .libs/gtkradiotoolbutton.o .libs/gtkrange.o .libs/gtkrbtree.o .libs/gtkrc.o .libs/gtkrecentaction.o .libs/gtkrecentchooserdefault.o .libs/gtkrecentchooserdialog.o .libs/gtkrecentchoosermenu.o .libs/gtkrecentchooserwidget.o .libs/gtkrecentchooserutils.o .libs/gtkrecentchooser.o .libs/gtkrecentfilter.o .libs/gtkrecentmanager.o .libs/gtkruler.o .libs/gtkscale.o .libs/gtkscalebutton.o .libs/gtkscrollbar.o .libs/gtkscrolledwindow.o .libs/gtkselection.o .libs/gtkseparator.o .libs/gtkseparatormenuitem.o .libs/gtkseparatortoolitem.o .libs/gtksettings.o .libs/gtksizegroup.o .libs/gtkshow.o .libs/gtksocket.o .libs/gtkspinbutton.o .libs/gtkspinner.o .libs/gtkstatusbar.o .libs/gtkstatusicon.o .libs/gtkstock.o .libs/gtkstyle.o .libs/gtktable.o .libs/gtktearoffmenuitem.o .libs/gtktestutils.o .libs/gtktextbtree.o .libs/gtktextbuffer.o .libs/gtktextbufferrichtext.o .libs/gtktextbufferserialize.o .libs/gtktextchild.o .libs/gtktextdisplay.o .libs/gtktextiter.o .libs/gtktextlayout.o .libs/gtktextmark.o .libs/gtktextsegment.o .libs/gtktexttag.o .libs/gtktexttagtable.o .libs/gtktexttypes.o .libs/gtktextutil.o .libs/gtktextview.o .libs/gtkthemes.o .libs/gtktoggleaction.o .libs/gtktogglebutton.o .libs/gtktoggletoolbutton.o .libs/gtktoolbar.o .libs/gtktoolbutton.o .libs/gtktoolitem.o .libs/gtktoolitemgroup.o .libs/gtktoolpalette.o .libs/gtktoolshell.o .libs/gtktooltip.o .libs/gtktreedatalist.o .libs/gtktreednd.o .libs/gtktreemodel.o .libs/gtktreemodelfilter.o .libs/gtktreemodelsort.o .libs/gtktreeselection.o .libs/gtktreesortable.o .libs/gtktreestore.o .libs/gtktreeview.o .libs/gtktreeviewcolumn.o .libs/gtktypebuiltins.o .libs/gtktypeutils.o .libs/gtkuimanager.o .libs/gtkvbbox.o .libs/gtkvbox.o .libs/gtkvolumebutton.o .libs/gtkviewport.o .libs/gtkvpaned.o .libs/gtkvruler.o .libs/gtkvscale.o .libs/gtkvscrollbar.o .libs/gtkvseparator.o .libs/gtkwidget.o .libs/gtkwindow-decorate.o .libs/gtkwindow.o .libs/gtkclipboard.o .libs/gtkdnd.o .libs/gtktext.o .libs/gtktree.o .libs/gtktreeitem.o .libs/gtkclist.o .libs/gtkcombo.o .libs/gtkctree.o .libs/gtkcurve.o .libs/gtkfilesel.o .libs/gtkgamma.o .libs/gtkitemfactory.o .libs/gtklist.o .libs/gtklistitem.o .libs/gtkoldeditable.o .libs/gtkoptionmenu.o .libs/gtkpixmap.o .libs/gtkpreview.o .libs/gtkprogress.o .libs/gtksignal.o .libs/gtktipsquery.o .libs/gtktooltips.o .libs/gtkcustompaperunixdialog.o .libs/gtkpagesetupunixdialog.o .libs/gtkprinter.o .libs/gtkprinteroption.o .libs/gtkprinteroptionset.o .libs/gtkprinteroptionwidget.o .libs/gtkprintjob.o .libs/gtkprintoperation-unix.o .libs/gtkprintunixdialog.o .libs/gtkprintbackend.o .libs/gtksearchenginebeagle.o .libs/gtksearchenginetracker.o .libs/gtkplug-x11.o .libs/gtksocket-x11.o .libs/gtkxembed.o .libs/gtktrayicon-x11.o .libs/gtkmountoperation-x11.o   -Wl,-rpath -Wl,/var/tmp/portage/x11-libs/gtk+-2.24.31-r1/work/gtk+-2.24.31-abi_x86_64.amd64/gdk/.libs -Wl,--as-needed ../gdk/.libs/libgdk-x11-2.0.so -lXrender -lXi -lXrandr -lXcursor -lXext -lgmodule-2.0 -lpangocairo-1.0 -lX11 -lXcomposite -lXdamage -lXfixes -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype -lm  -march=native -O2 -Wl,-O1 -Wl,--export-dynamic -pthread   -pthread -Wl,-soname -Wl,libgtk-x11-2.0.so.0 -Wl,-version-script -Wl,.libs/libgtk-x11-2.0.ver -o .libs/libgtk-x11-2.0.so.0.2400.31
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: error: .libs/gtkmarshalers.o: multiple definition of 'g_cclosure_marshal_VOID__BOOLEAN'
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/gtkmarshal.o: previous definition here
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: error: .libs/gtkmarshalers.o: multiple definition of 'g_cclosure_marshal_VOID__BOXED'
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/gtkmarshal.o: previous definition here
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: error: .libs/gtkmarshalers.o: multiple definition of 'g_cclosure_marshal_VOID__ENUM'
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/gtkmarshal.o: previous definition here
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: error: .libs/gtkmarshalers.o: multiple definition of 'g_cclosure_marshal_VOID(int0_t)'
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/gtkmarshal.o: previous definition here
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: error: .libs/gtkmarshalers.o: multiple definition of 'g_cclosure_marshal_VOID__OBJECT'
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/gtkmarshal.o: previous definition here
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: error: .libs/gtkmarshalers.o: multiple definition of 'g_cclosure_marshal_VOID__POINTER'
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/gtkmarshal.o: previous definition here
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: error: .libs/gtkmarshalers.o: multiple definition of 'g_cclosure_marshal_VOID__STRING'
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/gtkmarshal.o: previous definition here
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: error: .libs/gtkmarshalers.o: multiple definition of 'g_cclosure_marshal_VOID(int13_t &&) volatile'
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/gtkmarshal.o: previous definition here
collect2: error: ld returned 1 exit status

Any idea? I tried GCC 5.2, tried disabling ld.gold, what should I try next to make this pass?
Comment 4 David Heidelberg (okias) 2017-09-19 09:31:47 UTC
any ideas?
Comment 5 David Heidelberg (okias) 2017-09-23 10:16:27 UTC
ok, related to incorrect solution of UPSTREAM bug #662109 in gtk+:2 ebuild .

Commenting removal of marshallers in src_prepare() solved compilation issue.

Can we try find different solution?

Thank you guys
Comment 6 David Heidelberg (okias) 2017-10-18 14:26:14 UTC
small reminder of existing bug
Comment 7 Vadim 2018-01-12 15:29:51 UTC
For me commenting removal of marshallers in src_prepare() also solved compilation issue.
Comment 8 David Heidelberg (okias) 2018-02-28 21:40:33 UTC
Remainder. Issue is still valid.
Comment 9 Mart Raudsepp gentoo-dev 2018-02-28 21:43:13 UTC
Am I understanding wrong that this is still only an issue if a dev-libs/glib not found in the main tree is upgraded to?
Otherwise was planning to look at this together with 2.24.32 bump
Comment 10 Dennis Schridde 2018-03-14 06:51:13 UTC
(In reply to Mart Raudsepp from comment #9)
> Am I understanding wrong that this is still only an issue if a dev-libs/glib
> not found in the main tree is upgraded to?
> Otherwise was planning to look at this together with 2.24.32 bump

I upgraded to dev-libs/glib-2.54.3 (version bump bug #639016, in order to version bump bug #646252, in order to fix bug #640916) in my local overlay and then ran into an issue where gtk_marshal_BOOLEAN__POINTER and others were redefined when compiling x11-libs/gtk+-2.24.32 (which I version bumped, because I ran into gtk_marshal_... undefined errors upon linking x11-libs/gtk+-2.24.31-r1, which I hoped would be fixed by a version bump).

Why would this issue only occur when bumping glib in an overlay, but now when bumping it in the main tree?  Is that some eclass dependency issue?
Comment 11 Dennis Schridde 2018-03-14 06:54:49 UTC
(In reply to Dennis Schridde from comment #10)
> were redefined when compiling x11-libs/gtk+-2.24.32 (which I version bumped,

[...] were redefined when compiling x11-libs/gtk+-2.24.32 (bug #648916, [...]
Comment 12 Pacho Ramos gentoo-dev 2018-06-27 09:58:20 UTC
*** Bug 659294 has been marked as a duplicate of this bug. ***
Comment 13 Matt Turner gentoo-dev 2021-05-01 02:41:14 UTC
Is this still a problem?