Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 367863 - media-video/dvdstyler fails because of underlinking
Summary: media-video/dvdstyler fails because of underlinking
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL: https://sourceforge.net/tracker/?func...
Whiteboard:
Keywords:
: 395205 (view as bug list)
Depends on:
Blocks: underlinking
  Show dependency tree
 
Reported: 2011-05-18 01:17 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2011-12-26 13:58 UTC (History)
1 user (show)

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


Attachments
Build log (dvdstyler-1.8.1:20110517-195720.log,74.88 KB, text/plain)
2011-05-18 01:17 UTC, Diego Elio Pettenò (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2011-05-18 01:17:39 UTC
Created attachment 273765 [details]
Build log

Hello there!

You're getting this bug because the package in Summary failed to build in my tinderbox using the gold link editor from binutils. Before closing the bug as INVALID let me explain why this is still important!

The gold link editor does not support underlinking of shared objects, which is something I have described in my blog post:

http://blog.flameeyes.eu/2010/11/26/it-s-not-all-gold-that-shines-why-underlinking-is-a-bad-thing

Even the basic link editor (ld.bfd) has an option to support this but it is a heck to enable and get passed, so linking with gold is simply quicker.

Fixing underlinking provides optimized --as-needed builds (because the "softer" version no longer need to recover libraries that are underlinked), so it is a Good Thing To Do.

Thank you very much for the attention!
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2011-12-22 20:55:40 UTC
*** Bug 395205 has been marked as a duplicate of this bug. ***
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2011-12-22 21:26:49 UTC
Should be worked around in dvdstyler-2.1 in Portage, but I've reported this to upstream for more proper fix:

https://sourceforge.net/tracker/?func=detail&aid=3464090&group_id=92301&atid=600266
Comment 3 Attila Tóth 2011-12-26 13:58:25 UTC
(In reply to comment #2)
> Should be worked around in dvdstyler-2.1 in Portage, but I've reported this to
> upstream for more proper fix:
> 
> https://sourceforge.net/tracker/?func=detail&aid=3464090&group_id=92301&atid=600266

The latest dvdstyler-2.1 still dies.
I see the sed line (sed -i -e 's:@LIBS@:& -ljpeg:' wxVillaLib/Makefile.in || die #367863) in the ebuild, and -ljpeg gets correctly added to the respective Makefile.in. Therefore -ljpeg also shows up in Makefile.
However the compilation dies at the src level. I suspect -ljpeg should be there in src/ for the final linking.

i686-pc-linux-gnu-g++ -O2 -march=i686 -mtune=athlon-mp -pipe  -fno-strict-aliasing  -I/usr/lib/wx/include/gtk2-unicode-rel ease-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread  -DGNOME2       -DHAVE_LIBUDEV - DDATADIR=\"/usr/share/dvdstyler\" -I.. -O2 -march=i686 -mtune=athlon-mp -pipe  -fno-strict-aliasing  -I/usr/lib/wx/include /gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread  -DGNOME2        -DHAVE_LIBUDEV -DDATADIR=\"/usr/share/dvdstyler\"  -Wl,-O1 -Wl,--as-needed -o dvdstyler Config.o Languages.o Utils.o DVDA ction.o TextSub.o Pgc.o Titleset.o DVD.o dvdvml.o dvdvmy.o Cache.o mediaenc.o mediaenc_ffmpeg.o mediatrc_ffmpeg.o mediactr l_ffmpeg.o Palette3D.o MenuObject.o MenuPalettes.o Menu.o Slideshow.o MPEG.o About.o MessageDlg.o SettingsDlg.o NewProject Dlg.o WelcomeDlg.o DVDPropDlg.o TemplateDlg.o MenuPropDlg.o MenuObjectPropDlg.o MenuEditor.o VobListBox.o AudioPropDlg.o V ideoPropDlg.o SubtitlePropDlg.o CellPropDlg.o ChaptersDlg.o TitlePropDlg.o TitlesetManager.o BurnDlg.o ProgressDlg.o DirCt rl.o StatusBar.o MainWin.o dvdstyler.o ../wxVillaLib/libwxvilla.a -pthread -Wl,-O1 -Wl,--as-needed  -lwx_gtk2u_html-2.8 -l wx_gtk2u_core-2.8 -lwx_baseu_net-2.8 -lwx_gtk2u_adv-2.8 -lwx_gtk2u_media-2.8 -lwx_gtk2u_core-2.8 -lwx_baseu-2.8 -lwx_gtk2u _html-2.8   -lwxsvg   -pthread -lgnomeui-2 -lSM -lICE -lbonoboui-2 -lgnomevfs-2 -lgnomecanvas-2 -lgnome-2 -lpopt -lbonobo- 2 -lbonobo-activation -lORBit-2 -lart_lgpl_2 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1 .0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgconf-2 -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lrt - lglib-2.0    -lexif   -lavformat -lavcodec -lavutil -lswscale -lavfilter   -lfontconfig   -ludev
/usr/lib/gcc/i686-pc-linux-gnu/4.5.3/../../../../i686-pc-linux-gnu/bin/ld: ../wxVillaLib/libwxvilla.a(imagjpg.o): undefine d reference to symbol 'jpeg_start_decompress@@LIBJPEG_8.0'
/usr/lib/gcc/i686-pc-linux-gnu/4.5.3/../../../../i686-pc-linux-gnu/bin/ld: note: 'jpeg_start_decompress@@LIBJPEG_8.0' is d efined in DSO /usr/lib/libjpeg.so.8 so try adding it to the linker command line
/usr/lib/libjpeg.so.8: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[2]: *** [dvdstyler] Error 1
make[2]: Leaving directory `/var/tmp/portage/media-video/dvdstyler-2.1/work/DVDStyler-2.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-video/dvdstyler-2.1/work/DVDStyler-2.1/src'
make: *** [all-recursive] Error 1

Regards:
Dw.