Skip to content

Multiple "error: patch failed" on C++ project #47

@mike-myers-tob

Description

@mike-myers-tob

I ran it-depends with the osquery repo:

> /Users/mmyers/Library/Python/3.9/bin/it-depends ~/Projects/Engineering/osquery/osquery/src/
2021-07-15 18:28:36 [info     ] Getting dependencies for cmake repo /Users/mmyers/Projects/Engineering/osquery/osquery/src
2021-07-15 18:29:01 [error    ] Error running cmake:
Running with trace output on.
Running with expanded trace output on.
Trace will be written to /var/folders/31/wdx_2hsx1ls13d1_sqfdrldh0000gn/T/tmp9sa11sma/output
HEAD is now at 3eacae5 Merge branch 'develop'
HEAD is now at 2fe3bd99 Merge pull request #1433 from dsacre/fix-clang-warnings
HEAD is now at cecee5030 Version 0.13.0
HEAD is now at 1595e53e Bump version to 4.0.2
-- Configuring done
error: patch failed: libyara/include/yara/compiler.h:273
error: libyara/include/yara/compiler.h: patch does not apply
error: patch failed: libyara/include/yara/strutils.h:74
error: libyara/include/yara/strutils.h: patch does not apply
error: patch failed: libyara/lexer.c:2160
error: libyara/lexer.c: patch does not apply
error: patch failed: libyara/modules/pe/pe.c:605
error: libyara/modules/pe/pe.c: patch does not apply
error: patch failed: libyara/strutils.c:31
error: libyara/strutils.c: patch does not apply
CMake Error at libraries/cmake/source/librdkafka/CMakeLists.txt:23 (add_library):
  Cannot find source file:
    /Users/mmyers/Projects/Engineering/osquery/osquery/src/libraries/cmake/source/librdkafka/src/src/rdkafka_ssl.c
  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .h .hh .h++
  .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .ispc
Call Stack (most recent call first):
  libraries/cmake/source/librdkafka/CMakeLists.txt:9 (generateLibrdkafka)
  libraries/cmake/source/librdkafka/CMakeLists.txt:219 (librdkafkaMain)
CMake Error at libraries/cmake/source/librdkafka/CMakeLists.txt:23 (add_library):
  No SOURCES given to target: thirdparty_librdkafka_c
Call Stack (most recent call first):
  libraries/cmake/source/librdkafka/CMakeLists.txt:9 (generateLibrdkafka)
  libraries/cmake/source/librdkafka/CMakeLists.txt:219 (librdkafkaMain)
CMake Generate step failed.  Build files cannot be regenerated correctly.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingquestionFurther information is requested

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions