Summary: | >=media-sound/ardour-2.8.12: fails to build with >=dev-libs/boost-1.50 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Diego Elio Pettenò (RETIRED) <flameeyes> |
Component: | New packages | Assignee: | Professional Audio Applications Maintainers <proaudio> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | chris, nativemad, rose |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://tinderboxlogs.s3.amazonaws.com/tbamd64.excelsior.flameeyes.eu/media-sound%3Aardour-2.8.12%3A20120709-152928.html | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 425188 |
Description
Diego Elio Pettenò (RETIRED)
![]() And now it fails for me with boost-1.52.0-r2: x86_64-pc-linux-gnu-g++ -o libs/surfaces/tranzport/general.os -c -O2 -pipe -Woverloaded-virtual -DUSE_RUBBERBAND -DGTK_NEW_TOOLTIP_API -DPACKAGE=\"ardour_tranzport\" -DLIBSIGC_DISABLE_DEPRECATED -DDATA_DIR=\"/usr/share\" -DCONFIG_DIR=\"/etc\" -DLOCALEDIR=\"/usr/share/locale\" -march=native -O2 -pipe -Wall -DHAVE_LIBLO -DPROGRAM_NAME=\"Ardour\" -D_REENTRANT -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D__STDC_FORMAT_MACROS -Ilibs -DENABLE_NLS -D_REENTRANT -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -pthread -fPIC -Ilibs/pbd -I/usr/include/glib-2.0 -Ilibs/surfaces/control_protocol -Ilibs/midi++2 -Ilibs/ardour -I/usr/include/glibmm-2.4 -I/usr/lib64/glib-2.0/include -Ilibs/surfaces/tranzport -I/usr/include/sigc++-2.0 -I/usr/include/libxml2 -I/usr/lib64/sigc++-2.0/include -I/usr/lib64/glibmm-2.4/include libs/surfaces/tranzport/general.cc gtk2_ardour/add_route_dialog.o: In function `_GLOBAL__sub_I__ZN14AddRouteDialogC2Ev': add_route_dialog.cc:(.text.startup+0x23): undefined reference to `boost::system::generic_category()' add_route_dialog.cc:(.text.startup+0x2f): undefined reference to `boost::system::generic_category()' add_route_dialog.cc:(.text.startup+0x3b): undefined reference to `boost::system::system_category()' ... x11.cc:(.text.startup+0x118): undefined reference to `boost::system::generic_category()' x11.cc:(.text.startup+0x124): undefined reference to `boost::system::generic_category()' x11.cc:(.text.startup+0x130): undefined reference to `boost::system::system_category()' collect2: ld returned 1 exit status scons: *** [gtk2_ardour/ardour-2.8.12] Error 1 *** Bug 444131 has been marked as a duplicate of this bug. *** I got ardour-2.8.14 to compile with boost-1.52.0-r3 with just linking libboost-filesystem and removing the "tc-export CC CXX" line. Of course QA complains now about LDFLAGS! As I don't know SConstruct enough, I'm not sure how to really fix it. Maybe someone else knows it better? --- /home/mad/ardour-2.8.14/SConstruct 2012-11-21 00:30:54.000000000 +0100 +++ SConstruct 2012-11-21 17:34:02.000000000 +0100 @@ -955,7 +961,9 @@ # FLAC .... # -# boost (we don't link against boost, just use some header files) +# boost (we need to link against boost with >=1.50. header files alone will not work anymore) + +env.Append(LIBS=['boost_filesystem']) libraries['boost'] = LibraryInfo () prep_libcheck(env, libraries['boost']) Okok, it works for me with the patch above in comment 3 and --no-as-needed. append-ldflags $(no-as-needed) Should I apply that to the ebuild as a temporary workaround? -Honestly I don't know how much it takes to get realy comfortable with SConstructor to fix it properly... Don't ever try to use --no-as-needed. Just use boost_system instead of boost_filesystem to add to the library since that's the place where the symbol is defined. (In reply to comment #5) > Don't ever try to use --no-as-needed. Hehe, thought I get slapped for that! ;-) (In reply to comment #5) Cool, that worked. Thank you Diego! I applied it on ardour-2.8.14 within the tree (withount a revbump as it's fixing a compile issue for certain users) and am closing the bug therefore. There's another issue, but it doesn't belong to that bug... * QA Notice: command not found: * * /var/tmp/portage/media-sound/ardour-2.8.14/temp/environment: line 2483: FREESOUND=0: command not found |