Skip to content
Snippets Groups Projects
  1. Feb 01, 2022
  2. Jan 26, 2022
  3. Jan 13, 2022
  4. Jan 10, 2022
  5. Jan 02, 2022
    • Tomáš Pecka's avatar
      cmake: Link alib2cli with CMAKE_DL_LIBS · 30422956
      Tomáš Pecka authored and Tomáš Pecka's avatar Tomáš Pecka committed
      OpenSuse Leap package builds fail with undefined reference to dlclose
      and dlopen. The -ldl link flag is missing (see the error below).
      Let's fix that by adding the ${CMAKE_DL_LIBS} link target [1] to
      alib2cli.
      
       /usr/lib64/gcc/x86_64-suse-linux/11/../../../../x86_64-suse-linux/bin/ld: CMakeFiles/alib2cli.dir/src/common/LibraryLoader.cpp.o: in function `cli::LibraryLoader::Library::unload()':
       /build/pkg/build/pkgs/opensuse-leap-15.3/algorithms-library-snapshot-0.0.0.r1277.gf2a2ccf62-1/rpmbuild/BUILD/algorithms-library-v0.0.0.r1277.gf2a2ccf62/alib2cli/src/common/LibraryLoader.h:44: undefined reference to `dlclose'
       /usr/lib64/gcc/x86_64-suse-linux/11/../../../../x86_64-suse-linux/bin/ld: /build/pkg/build/pkgs/opensuse-leap-15.3/algorithms-library-snapshot-0.0.0.r1277.gf2a2ccf62-1/rpmbuild/BUILD/algorithms-library-v0.0.0.r1277.gf2a2ccf62/alib2cli/src/common/LibraryLoader.h:44: undefined reference to `dlclose'
       /usr/lib64/gcc/x86_64-suse-linux/11/../../../../x86_64-suse-linux/bin/ld: CMakeFiles/alib2cli.dir/src/common/LibraryLoader.cpp.o: in function `cli::LibraryLoader::Library::load()':
       /build/pkg/build/pkgs/opensuse-leap-15.3/algorithms-library-snapshot-0.0.0.r1277.gf2a2ccf62-1/rpmbuild/BUILD/algorithms-library-v0.0.0.r1277.gf2a2ccf62/alib2cli/src/common/LibraryLoader.h:37: undefined reference to `dlopen'
       /usr/lib64/gcc/x86_64-suse-linux/11/../../../../x86_64-suse-linux/bin/ld: /build/pkg/build/pkgs/opensuse-leap-15.3/algorithms-library-snapshot-0.0.0.r1277.gf2a2ccf62-1/rpmbuild/BUILD/algorithms-library-v0.0.0.r1277.gf2a2ccf62/alib2cli/src/common/LibraryLoader.h:39: undefined reference to `dlerror'
       collect2: error: ld returned 1 exit status
       make[2]: *** [alib2cli/CMakeFiles/alib2cli.dir/build.make:500: alib2cli/libalib2cli.so.0.0.0] Error 1
       make[1]: *** [CMakeFiles/Makefile2:1017: alib2cli/CMakeFiles/alib2cli.dir/all] Error 2
       make[1]: *** Waiting for unfinished jobs....
       make: *** [Makefile:150: all] Error 2
      
      [1] https://cmake.org/cmake/help/latest/variable/CMAKE_DL_LIBS.html
      30422956
  6. Dec 20, 2021
  7. Dec 03, 2021
  8. Nov 27, 2021
  9. Nov 26, 2021
  10. Nov 23, 2021
  11. Nov 21, 2021
  12. Nov 20, 2021
    • Tomáš Pecka's avatar
      abstraction: Use optional<string> instead of string for docs in registry · 2b471285
      Tomáš Pecka authored
      While working on webui, I have noticed that exports from
      automata-library contain for many algorithms documentation set to
      string "Documentation not available.". I traced the problem back to this
      project.
      
      I do not think "Documentation not available" is itself a valid
      documentation of an algorithm so I decided to replace the std::string
      that is supposed to hold documentation of an overload with an
      std::optional<std::string>. The semantics should now be clearer.
      2b471285
  13. Oct 15, 2021
  14. May 11, 2021
  15. Mar 25, 2021
  16. Mar 19, 2021
  17. Mar 08, 2021
  18. Jan 30, 2021
Loading