← Back to team overview

hugin-devs team mailing list archive

[Bug 1023037] Re: Enblend fails to build with boost 1.50

 

I see this same problem on fedora f18 which has boost-1.50 (this is with
the fedora boost-devel, boost-system and boost-filesystem packages
installed amongst others):

   checking boost/filesystem.hpp usability... yes
   checking boost/filesystem.hpp presence... yes
   checking for boost/filesystem.hpp... yes
   configure: Boost "filesystem" header or library not found.  Using built-in support.

[snip]

   CXXFLAGS:                       -pthread -I/usr/include/OpenEXR   -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m32 -march=i686 -mtune=atom -fasynchrono
us-unwind-tables --param inline-unit-growth=60 -O2 -DNDEBUG -Wall
   LDFLAGS:                        -Wl,-z,relro 
   LIBS:                           -pthread -lIlmImf -lImath -lHalf -lIex -lIlmThread   -lvigraimpex -lxmi -llcms2 -ltiff -lpng -ljpeg -lz -lgsl -lgslcblas -lm 
   OPENGL_LIBS:                    -lGLEW -lGLU -lGL  -lm -lglut  -lSM -lICE -lXmu -lXi  -lGLU -lGL  -lm

..and later:

  g++    -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -I../include -I../src/layer_selection -pthread -I/usr/include/OpenEXR   -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables --param inline-unit-growth=60 -O2 -DNDEBUG -Wall   -Wl,-z,relro  -o enblend enblend-enblend.o enblend-gpu.o enblend-error_message.o enblend-filenameparse.o enblend-filespec.o enblend-self_test.o enblend-tiff_message.o layer_selection/liblayersel.a  -lGLEW -lGLU -lGL  -lm -lglut  -lSM -lICE -lXmu -lXi  -lGLU -lGL  -lm  -pthread -lIlmImf -lImath -lHalf -lIex -lIlmThread   -lvigraimpex -lxmi -llcms2 -ltiff -lpng -ljpeg -lz -lgsl -lgslcblas -lm 
enblend-enblend.o: In function `__static_initialization_and_destruction_0':
  /usr/include/boost/system/error_code.hpp:214: undefined reference to `boost::system::generic_category()'
  /usr/include/boost/system/error_code.hpp:215: undefined reference to `boost::system::generic_category()'
  /usr/include/boost/system/error_code.hpp:216: undefined reference to `boost::system::system_category()'

I'll try again with --with-boost-filesystem, but this seems to be a
genuine bug.

-- 
You received this bug notification because you are a member of Hugin
Developers, which is subscribed to Enblend.
https://bugs.launchpad.net/bugs/1023037

Title:
  Enblend fails to build with boost 1.50

Status in Enblend:
  Triaged

Bug description:
  Building enblend fails with the following error:

  g++   -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -I../include -DVIGRA_STATIC_LIB -D_THREAD_SAFE -I/opt/local/include/OpenEXR    --param inline-unit-growth=60 -O2 -DNDEBUG -Wall   -L/opt/local/lib -o enblend enblend-enblend.o enblend-gpu.o enblend-error_message.o enblend-filenameparse.o enblend-filespec.o enblend-self_test.o enblend-tiff_message.o vigra_impex/libvigra_impex.a   -L/opt/local/lib -lIlmImf -lz -lImath -lHalf -lIex -lIlmThread -lpthread   -lxmi -llcms -ltiff -lpng -ljpeg -lz 
  Undefined symbols for architecture x86_64:
    "boost::system::generic_category()", referenced from:
        global constructors keyed to commandin enblend-enblend.o
    "boost::system::system_category()", referenced from:
        global constructors keyed to commandin enblend-enblend.o
  ld: symbol(s) not found for architecture x86_64
  collect2: ld returned 1 exit status
  make[4]: *** [enblend] Error 1

  I can build enblend successfully when I switch back to boost 1.49.

To manage notifications about this bug go to:
https://bugs.launchpad.net/enblend/+bug/1023037/+subscriptions


References