View Bug Details

IDProjectCategoryView StatusLast Update
0002867DCP-o-maticPackagingpublic2024-09-29 21:32
Reportermarkusk Assigned Tocarl  
PrioritynormalSeverityblockReproducibilityalways
Status resolvedResolutionfixed 
Platform64-bitOSLinuxOS VersionArch
Summary0002867: error: ‘boost::filesystem::copy_option’ has not been declared
Description

[ 4/125] Compiling src/atmos_asset.cc
[ 5/125] Compiling src/asset.cc
[ 6/125] Compiling src/reel_smpte_closed_caption_asset.cc
In file included from ../src/asset_reader.h:47,
from ../src/atmos_asset_reader.h:40,
from ../src/atmos_asset.h:46,
from ../src/atmos_asset.cc:40:
../src/filesystem.h:54:107: error: ‘boost::filesystem::copy_option’ has not been declared
54 | void copy_file(boost::filesystem::path const& from, boost::filesystem::path const& to, boost::filesystem::copy_option ec);
| ^~~

In file included from ../src/asset.cc:46:
../src/filesystem.h:54:107: error: ‘boost::filesystem::copy_option’ has not been declared
54 | void copy_file(boost::filesystem::path const& from, boost::filesystem::path const& to, boost::filesystem::copy_option ec);
| ^~~

Waf: Leaving directory `/tmp/makepkg-build-dir/libdcp/src/libdcp-1.8.108/build'
Build failed
-> task in 'libdcp-1.0' failed with exit status 1 (run with -v to display more information)
-> task in 'libdcp-1.0' failed with exit status 1 (run with -v to display more information)
==> ERROR: A failure occurred in build().
Aborting...

Steps To Reproduce

building on arch linux with new libboost

Current Arch libs during testing
boost 1.86.0-2
boost-libs 1.86.0-2
libcxml 0.17.6-1

TagsNo tags attached.
Branch
Estimated weeks required
Estimated work required

Activities

markusk

2024-09-20 21:51

reporter  

makepkg-output-libdcp-1.8.108.txt (3,650 bytes)   
==> Making package: libdcp 1.8.108-1 (Fri Sep 20 22:45:47 2024)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating libdcp-1.8.108 git repo...
==> Validating source files with sha256sums...
    libdcp-1.8.108 ... Passed
==> Extracting sources...
  -> Creating working copy of libdcp-1.8.108 git repo...
Cloning into 'libdcp-1.8.108'...
done.
Switched to a new branch 'makepkg'
==> Starting prepare()...
==> Starting build()...
/tmp/makepkg-build-dir/libdcp/src/libdcp-1.8.108/waf:101: DeprecationWarning: Python 3.14 will, by default, filter extracted tar archives and reject files or modify their metadata. Use the filter argument to control this behavior.
  for x in t: t.extract(x)
Setting top to                           : /tmp/makepkg-build-dir/libdcp/src/libdcp-1.8.108 
Setting out to                           : /tmp/makepkg-build-dir/libdcp/src/libdcp-1.8.108/build 
Checking for 'g++' (C++ compiler)        : /usr/lib/ccache/bin/g++ 
Checking for library dl                  : yes 
Checking for program 'pkg-config'        : /usr/bin/pkg-config 
Checking for 'openssl'                   : yes 
Checking for 'libxml++-2.6'              : yes 
Checking for 'xmlsec1'                   : yes 
Checking for ImageMagick/GraphicsMagick  : yes 
Checking for 'sndfile'                   : yes 
Checking for any version of libopenjp2   : yes 
Checking for numgbits in opj_cparameters_t : no 
Checking for libopenjp2 >= 2.5.0           : yes 
Checking for 'libasdcp-carl'               : yes 
Checking for 'libcxml'                     : yes 
Checking for 'xerces-c'                    : yes 
Checking for boost library >= 1.45         : yes 
Checking for boost filesystem library      : yes 
Checking for boost::filesystem::weakly_canonical : yes 
Checking for boost signals2 library              : yes 
Checking for boost datetime library              : yes 
'configure' finished successfully (1.416s)
Waf: Entering directory `/tmp/makepkg-build-dir/libdcp/src/libdcp-1.8.108/build'
Writing version information to src/version.cc
[  1/125] Compiling src/reel_smpte_subtitle_asset.cc
[  2/125] Compiling src/interop_load_font_node.cc
[  3/125] Compiling src/content_kind.cc
[  4/125] Compiling src/atmos_asset.cc
[  5/125] Compiling src/asset.cc
[  6/125] Compiling src/reel_smpte_closed_caption_asset.cc
In file included from ../src/asset_reader.h:47,
                 from ../src/atmos_asset_reader.h:40,
                 from ../src/atmos_asset.h:46,
                 from ../src/atmos_asset.cc:40:
../src/filesystem.h:54:107: error: ‘boost::filesystem::copy_option’ has not been declared
   54 | void copy_file(boost::filesystem::path const& from, boost::filesystem::path const& to, boost::filesystem::copy_option ec);
      |                                                                                                           ^~~~~~~~~~~

In file included from ../src/asset.cc:46:
../src/filesystem.h:54:107: error: ‘boost::filesystem::copy_option’ has not been declared
   54 | void copy_file(boost::filesystem::path const& from, boost::filesystem::path const& to, boost::filesystem::copy_option ec);
      |                                                                                                           ^~~~~~~~~~~

Waf: Leaving directory `/tmp/makepkg-build-dir/libdcp/src/libdcp-1.8.108/build'
Build failed
 -> task in 'libdcp-1.0' failed with exit status 1 (run with -v to display more information)
 -> task in 'libdcp-1.0' failed with exit status 1 (run with -v to display more information)
==> ERROR: A failure occurred in build().
    Aborting...

carl

2024-09-23 10:55

administrator   ~0006538

Should be fixed in libdcp 6fba38bd59450e167e664153a31f41e97a500ffc

carl

2024-09-24 00:26

administrator   ~0006541

Sorry, I made a mess of that, should be OK now (needs a DCP-o-matic update also - I'll make a release in the next couple of days).

bradel

2024-09-29 15:16

reporter   ~0006547

Hi Carl,

unfortunately there is still some kind of boost issue (see attached log)

[111/125] Linking build/src/libdcp-1.0.so
../examples/read_dcp.cc: In function ‘int main()’:
../examples/read_dcp.cc:85:49: error: ‘class boost::filesystem::path’ has no member named ‘leaf’
85 | std::cout << "\t" << i->file()->leaf().string() << "\n";
| ^~~~

libdcp-1.8.110-1-x86_64-build.log (11,841 bytes)   
/tmp/libdcp/src/libdcp-1.8.110/waf:101: DeprecationWarning: Python 3.14 will, by default, filter extracted tar archives and reject files or modify their metadata. Use the filter argument to control this behavior.
  for x in t: t.extract(x)
Setting top to                           : /tmp/libdcp/src/libdcp-1.8.110 
Setting out to                           : /tmp/libdcp/src/libdcp-1.8.110/build 
Checking for 'g++' (C++ compiler)        : /usr/bin/g++ 
Checking for library dl                  : yes 
Checking for program 'pkg-config'        : /usr/bin/pkg-config 
Checking for 'openssl'                   : yes 
Checking for 'libxml++-2.6'              : yes 
Checking for 'xmlsec1'                   : yes 
Checking for ImageMagick/GraphicsMagick  : yes 
Checking for 'sndfile'                   : yes 
Checking for any version of libopenjp2   : yes 
Checking for numgbits in opj_cparameters_t : no 
Checking for libopenjp2 >= 2.5.0           : yes 
Checking for 'libasdcp-carl'               : yes 
Checking for 'libcxml'                     : yes 
Checking for 'xerces-c'                    : yes 
Checking for boost library >= 1.45         : yes 
Checking for boost filesystem library      : yes 
Checking for boost::filesystem::weakly_canonical : yes 
Checking for boost::filesystem::copy_options     : yes 
Checking for boost::filesystem::replace_extension : yes 
Checking for boost datetime library               : yes 
'configure' finished successfully (5.123s)
Waf: Entering directory `/tmp/libdcp/src/libdcp-1.8.110/build'
Writing version information to src/version.cc
[  1/125] Compiling src/reel_smpte_subtitle_asset.cc
[  2/125] Compiling src/interop_load_font_node.cc
[  3/125] Compiling src/content_kind.cc
[  4/125] Compiling src/atmos_asset.cc
[  5/125] Compiling src/asset.cc
[  6/125] Compiling src/reel_smpte_closed_caption_asset.cc
[  7/125] Compiling src/reel_markers_asset.cc
[  8/125] Compiling src/identity_transfer_function.cc
[  9/125] Compiling src/reel_picture_asset.cc
[ 10/125] Compiling src/reel_mono_picture_asset.cc
[ 11/125] Compiling src/h_align.cc
[ 12/125] Compiling src/combine.cc
[ 13/125] Compiling src/reel_interop_subtitle_asset.cc
[ 14/125] Compiling src/reel_interop_closed_caption_asset.cc
[ 15/125] Compiling src/gamma_transfer_function.cc
[ 16/125] Compiling src/reel_file_asset.cc
[ 17/125] Compiling src/reel_closed_caption_asset.cc
[ 18/125] Compiling src/colour_conversion.cc
[ 19/125] Compiling src/reel_atmos_asset.cc
[ 20/125] Compiling src/openjpeg_image.cc
[ 21/125] Compiling src/mono_picture_frame.cc
[ 22/125] Compiling src/key.cc
[ 23/125] Compiling src/smpte_subtitle_asset.cc
[ 24/125] Compiling src/data.cc
[ 25/125] Compiling src/j2k_transcode.cc
[ 26/125] Compiling src/reel_stereo_picture_asset.cc
[ 27/125] Compiling src/subtitle_image.cc
[ 28/125] Compiling src/ruby.cc
[ 29/125] Compiling src/stereo_picture_frame.cc
[ 30/125] Compiling src/modified_gamma_transfer_function.cc
[ 31/125] Compiling src/sound_asset_writer.cc
[ 32/125] Compiling src/dcp_time.cc
[ 33/125] Compiling src/language_tag.cc
[ 34/125] Compiling src/search.cc
[ 35/125] Compiling src/ref.cc
[ 36/125] Compiling src/locale_convert.cc
[ 37/125] Compiling src/s_gamut3_transfer_function.cc
[ 38/125] Compiling src/stereo_picture_asset.cc
[ 39/125] Compiling src/bitstream.cc
[ 40/125] Compiling src/transfer_function.cc
[ 41/125] Compiling src/atmos_asset_writer.cc
[ 42/125] Compiling src/subtitle_asset.cc
[ 43/125] Compiling src/mono_picture_asset_writer.cc
[ 44/125] Compiling src/smpte_load_font_node.cc
[ 45/125] Compiling src/decrypted_kdm_key.cc
[ 46/125] Compiling src/subtitle_string.cc
[ 47/125] Compiling src/font_asset.cc
[ 48/125] Compiling src/certificate_chain.cc
[ 49/125] Compiling src/local_time.cc
[ 50/125] Compiling src/mxf.cc
In file included from /usr/include/libasdcp-carl/asdcp/Metadata.h:35,
                 from ../src/sound_asset_writer.cc:51:
/usr/include/libasdcp-carl/asdcp/MXF.h:161:28: warning: ‘virtual Kumu::Result_t ASDCP::MXF::Partition::WriteToFile(Kumu::FileWriter&, ASDCP::UL&)’ was hidden [-Woverloaded-virtual=]
  161 |           virtual Result_t WriteToFile(Kumu::FileWriter& Writer, UL& PartitionLabel);
      |                            ^~~~~~~~~~~
/usr/include/libasdcp-carl/asdcp/MXF.h:435:28: note:   by ‘virtual Kumu::Result_t ASDCP::MXF::OP1aHeader::WriteToFile(Kumu::FileWriter&, ui32_t)’
  435 |           virtual Result_t WriteToFile(Kumu::FileWriter& Writer, ui32_t HeaderLength = 16384);
      |                            ^~~~~~~~~~~
/usr/include/libasdcp-carl/asdcp/MXF.h:161:28: warning: ‘virtual Kumu::Result_t ASDCP::MXF::Partition::WriteToFile(Kumu::FileWriter&, ASDCP::UL&)’ was hidden [-Woverloaded-virtual=]
  161 |           virtual Result_t WriteToFile(Kumu::FileWriter& Writer, UL& PartitionLabel);
      |                            ^~~~~~~~~~~
/usr/include/libasdcp-carl/asdcp/MXF.h:471:28: note:   by ‘virtual Kumu::Result_t ASDCP::MXF::OPAtomIndexFooter::WriteToFile(Kumu::FileWriter&, ui64_t)’
  471 |           virtual Result_t WriteToFile(Kumu::FileWriter& Writer, ui64_t duration);
      |                            ^~~~~~~~~~~

[ 51/125] Compiling src/types.cc
[ 52/125] Compiling src/sound_asset.cc
[ 53/125] Compiling src/util.cc
[ 54/125] Compiling src/object.cc
[ 55/125] Compiling src/utc_offset.cc
[ 56/125] Compiling src/dcp.cc
[ 57/125] Compiling src/verify.cc
[ 58/125] Compiling src/version.cc
[ 59/125] Compiling src/sound_frame.cc
[ 60/125] Compiling src/array_data.cc
[ 61/125] Compiling src/asset_factory.cc
[ 62/125] Compiling src/fsk.cc
[ 63/125] Compiling src/reel_asset.cc
[ 64/125] Compiling src/name_format.cc
[ 65/125] Compiling src/metadata.cc
[ 66/125] Compiling src/certificate.cc
[ 67/125] Compiling src/exceptions.cc
[ 68/125] Compiling src/stereo_picture_asset_writer.cc
[ 69/125] Compiling src/picture_asset.cc
[ 70/125] Compiling src/picture_asset_writer.cc
[ 71/125] Compiling src/v_align.cc
[ 72/125] Compiling src/asset_map.cc
[ 73/125] Compiling src/pkl.cc
[ 74/125] Compiling src/file.cc
In file included from /usr/include/libasdcp-carl/asdcp/Metadata.h:35,
                 from ../src/sound_asset.cc:54:
/usr/include/libasdcp-carl/asdcp/MXF.h:161:28: warning: ‘virtual Kumu::Result_t ASDCP::MXF::Partition::WriteToFile(Kumu::FileWriter&, ASDCP::UL&)’ was hidden [-Woverloaded-virtual=]
  161 |           virtual Result_t WriteToFile(Kumu::FileWriter& Writer, UL& PartitionLabel);
      |                            ^~~~~~~~~~~
/usr/include/libasdcp-carl/asdcp/MXF.h:435:28: note:   by ‘virtual Kumu::Result_t ASDCP::MXF::OP1aHeader::WriteToFile(Kumu::FileWriter&, ui32_t)’
  435 |           virtual Result_t WriteToFile(Kumu::FileWriter& Writer, ui32_t HeaderLength = 16384);
      |                            ^~~~~~~~~~~
/usr/include/libasdcp-carl/asdcp/MXF.h:161:28: warning: ‘virtual Kumu::Result_t ASDCP::MXF::Partition::WriteToFile(Kumu::FileWriter&, ASDCP::UL&)’ was hidden [-Woverloaded-virtual=]
  161 |           virtual Result_t WriteToFile(Kumu::FileWriter& Writer, UL& PartitionLabel);
      |                            ^~~~~~~~~~~
/usr/include/libasdcp-carl/asdcp/MXF.h:471:28: note:   by ‘virtual Kumu::Result_t ASDCP::MXF::OPAtomIndexFooter::WriteToFile(Kumu::FileWriter&, ui64_t)’
  471 |           virtual Result_t WriteToFile(Kumu::FileWriter& Writer, ui64_t duration);
      |                            ^~~~~~~~~~~

[ 75/125] Compiling src/rating.cc
[ 76/125] Compiling src/chromaticity.cc
[ 77/125] Compiling src/filesystem.cc
[ 78/125] Compiling src/raw_convert.cc
[ 79/125] Compiling src/reel.cc
[ 80/125] Compiling src/reel_sound_asset.cc
[ 81/125] Compiling src/interop_subtitle_asset.cc
[ 82/125] Compiling src/reel_subtitle_asset.cc
[ 83/125] Compiling src/cpl.cc
[ 84/125] Compiling src/rgb_xyz.cc
[ 85/125] Compiling src/subtitle.cc
[ 86/125] Compiling src/asset_writer.cc
[ 87/125] Compiling src/encrypted_kdm.cc
[ 88/125] Compiling src/mono_picture_asset.cc
[ 89/125] Compiling src/subtitle_asset_internal.cc
[ 90/125] Compiling src/verify_j2k.cc
[ 91/125] Compiling src/decrypted_kdm.cc
[ 92/125] Compiling src/subtitle_standard.cc
[ 93/125] Compiling tools/common.cc
[ 94/125] Compiling tools/dcpdiff.cc
[ 95/125] Compiling tools/common.cc
[ 96/125] Compiling tools/dcpinfo.cc
[ 97/125] Compiling tools/common.cc
[ 98/125] Compiling tools/dcpverify.cc
[ 99/125] Compiling tools/dcpdumpsub.cc
[100/125] Compiling tools/dcpdecryptmxf.cc
[101/125] Compiling tools/dcpkdm.cc
[102/125] Compiling tools/dcpthumb.cc
[103/125] Compiling tools/dcprecover.cc
[104/125] Compiling tools/dcpdumpimage.cc
[105/125] Compiling examples/make_dcp.cc
[106/125] Compiling examples/read_dcp.cc
[107/125] Compiling examples/make_kdm.cc
[108/125] Compiling benchmark/rgb_to_xyz.cc
In file included from /usr/include/libasdcp-carl/asdcp/Metadata.h:35,
                 from ../src/cpl.cc:60:
/usr/include/libasdcp-carl/asdcp/MXF.h:161:28: warning: ‘virtual Kumu::Result_t ASDCP::MXF::Partition::WriteToFile(Kumu::FileWriter&, ASDCP::UL&)’ was hidden [-Woverloaded-virtual=]
  161 |           virtual Result_t WriteToFile(Kumu::FileWriter& Writer, UL& PartitionLabel);
      |                            ^~~~~~~~~~~
/usr/include/libasdcp-carl/asdcp/MXF.h:435:28: note:   by ‘virtual Kumu::Result_t ASDCP::MXF::OP1aHeader::WriteToFile(Kumu::FileWriter&, ui32_t)’
  435 |           virtual Result_t WriteToFile(Kumu::FileWriter& Writer, ui32_t HeaderLength = 16384);
      |                            ^~~~~~~~~~~
/usr/include/libasdcp-carl/asdcp/MXF.h:161:28: warning: ‘virtual Kumu::Result_t ASDCP::MXF::Partition::WriteToFile(Kumu::FileWriter&, ASDCP::UL&)’ was hidden [-Woverloaded-virtual=]
  161 |           virtual Result_t WriteToFile(Kumu::FileWriter& Writer, UL& PartitionLabel);
      |                            ^~~~~~~~~~~
/usr/include/libasdcp-carl/asdcp/MXF.h:471:28: note:   by ‘virtual Kumu::Result_t ASDCP::MXF::OPAtomIndexFooter::WriteToFile(Kumu::FileWriter&, ui64_t)’
  471 |           virtual Result_t WriteToFile(Kumu::FileWriter& Writer, ui64_t duration);
      |                            ^~~~~~~~~~~

[109/125] Compiling benchmark/j2k_transcode.cc
In file included from /usr/include/boost/smart_ptr/detail/requires_cxx11.hpp:9,
                 from /usr/include/boost/smart_ptr/intrusive_ptr.hpp:16,
                 from /usr/include/boost/filesystem/exception.hpp:20,
                 from /usr/include/boost/filesystem.hpp:17,
                 from /usr/include/libasdcp-carl/asdcp/KM_fileio.h:37,
                 from /usr/include/libasdcp-carl/asdcp/AS_DCP.h:88,
                 from ../src/key.h:46,
                 from ../src/decrypted_kdm.h:44,
                 from ../src/verify.h:44,
                 from ../tools/common.h:20,
                 from ../tools/dcpdiff.cc:35:
/usr/include/boost/bind.hpp:36:1: note: ‘#pragma message: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated. Please use <boost/bind/bind.hpp> + using namespace boost::placeholders, or define BOOST_BIND_GLOBAL_PLACEHOLDERS to retain the current behavior.’
   36 | BOOST_PRAGMA_MESSAGE(
      | ^~~~~~~~~~~~~~~~~~~~

[110/125] Compiling libdcp-1.0.pc.in
[111/125] Linking build/src/libdcp-1.0.so
../examples/read_dcp.cc: In function ‘int main()’:
../examples/read_dcp.cc:85:49: error: ‘class boost::filesystem::path’ has no member named ‘leaf’
   85 |                 std::cout << "\t" << i->file()->leaf().string() << "\n";
      |                                                 ^~~~

Waf: Leaving directory `/tmp/libdcp/src/libdcp-1.8.110/build'
Build failed
 -> task in 'read_dcp' failed with exit status 1 (run with -v to display more information)
==> ERROR:(B A failure occurred in build().(B
    Aborting...(B

carl

2024-09-29 21:11

administrator   ~0006551

I'll look at this but a quick workaround would be to add --disable-examples to the libdcp configure line.

bradel

2024-09-29 21:32

reporter   ~0006552

Thanks using --disable-examples and --disable-dumpimage worked

Bug History

Date Modified Username Field Change
2024-09-20 21:51 markusk New Bug
2024-09-20 21:51 markusk File Added: makepkg-output-libdcp-1.8.108.txt
2024-09-21 11:20 carl Assigned To => carl
2024-09-21 11:20 carl Status new => confirmed
2024-09-23 10:55 carl Note Added: 0006538
2024-09-23 10:56 carl Status confirmed => resolved
2024-09-23 10:56 carl Resolution open => fixed
2024-09-24 00:26 carl Note Added: 0006541
2024-09-29 15:16 bradel Note Added: 0006547
2024-09-29 15:16 bradel File Added: libdcp-1.8.110-1-x86_64-build.log
2024-09-29 21:11 carl Note Added: 0006551
2024-09-29 21:32 bradel Note Added: 0006552