thewh1teagle / rookie

Load cookies from your web browsers
https://crates.io/crates/rookie
MIT License
207 stars 18 forks source link

[Bug]: libesedb problem. rookie doesn't work when cargo build error appears #54

Closed Dssall2 closed 3 weeks ago

Dssall2 commented 1 month ago

What happened?

As I described I just created a new project there I added rookie and then during compilation an error appears and on mac it is not present. I tested and found out that the problem is in libesedb-sys and not in rookie, but still because it uses this library the error appears.

First of all I would like to understand if I am the only one with this error, because after googling I didn't find anyone with the same error.

If this problem is only me, does it mean that I am not building or creating the project correctly?

Can you please tell me why I have this error and why other people don't have it?

Thanks in advance

Steps to reproduce

  1. created a new project on RustRover

  2. wrote cargo add rookie in the terminal, and also inserted the base script that was shown on the github page.

  3. wrote cargo build or cargo build --release

And then at the libesedb-sys compilation point everything crashes and there is a huge text that basically says there is a memory problem in the libesedb-sys library.

What browsers are you seeing the problem on?

No response

Relevant log output

cargo:warning=   64 |         (type *) memory_allocate( sizeof( type ) )
  cargo:warning=      |         ^
  cargo:warning=libesedb-20230824\libfwnt\libfwnt_security_descriptor.c:72:40: note: in expansion of macro 'memory_allocate_structure'
  cargo:warning=   72 |         internal_security_descriptor = memory_allocate_structure(
  cargo:warning=      |                                        ^~~~~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=libesedb-20230824\libfwnt\libfwnt_security_descriptor.c:86:13: error: implicit declaration of function 'memory_set' [-Wimplicit-function-declaration]
  cargo:warning=   86 |         if( memory_set(
  cargo:warning=      |             ^~~~~~~~~~
  cargo:warning=libesedb-20230824\libfwnt\libfwnt_security_descriptor.c:89:65: warning: comparison between pointer and integer
  cargo:warning=   89 |              sizeof( libfwnt_internal_security_descriptor_t ) ) == NULL )
  cargo:warning=      |                                                                 ^~
  cargo:warning=libesedb-20230824\libfwnt\libfwnt_security_descriptor.c:107:17: error: implicit declaration of function 'memory_free' [-Wimplicit-function-declaration]
  cargo:warning=  107 |                 memory_free(
  cargo:warning=      |                 ^~~~~~~~~~~
  cargo:warning=In file included from libesedb-20230824\libfwnt\libfwnt_security_descriptor.c:24:
  libesedb-20230824\libfwnt\libfwnt_security_descriptor.c: In function 'libfwnt_security_descriptor_initialize':
  C:\Users\User\RustroverProjects\untitled\target\debug\build\libesedb-sys-d3a11df0d7bfcdbb\out\libesedb-20230824\common/memory.h:64:18: error: implicit declaration of function 'memory_allocate' [-Wimplicit-function-declaration]
     64 |         (type *) memory_allocate( sizeof( type ) )
        |                  ^~~~~~~~~~~~~~~
  libesedb-20230824\libfwnt\libfwnt_security_descriptor.c:72:40: note: in expansion of macro 'memory_allocate_structure'
     72 |         internal_security_descriptor = memory_allocate_structure(
        |                                        ^~~~~~~~~~~~~~~~~~~~~~~~~
  C:\Users\User\RustroverProjects\untitled\target\debug\build\libesedb-sys-d3a11df0d7bfcdbb\out\libesedb-20230824\common/memory.h:64:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
     64 |         (type *) memory_allocate( sizeof( type ) )
        |         ^
  libesedb-20230824\libfwnt\libfwnt_security_descriptor.c:72:40: note: in expansion of macro 'memory_allocate_structure'
     72 |         internal_security_descriptor = memory_allocate_structure(
        |                                        ^~~~~~~~~~~~~~~~~~~~~~~~~
  libesedb-20230824\libfwnt\libfwnt_security_descriptor.c:86:13: error: implicit declaration of function 'memory_set' [-Wimplicit-function-declaration]
     86 |         if( memory_set(
        |             ^~~~~~~~~~
  libesedb-20230824\libfwnt\libfwnt_security_descriptor.c:89:65: warning: comparison between pointer and integer
     89 |              sizeof( libfwnt_internal_security_descriptor_t ) ) == NULL )
        |                                                                 ^~
  libesedb-20230824\libfwnt\libfwnt_security_descriptor.c:107:17: error: implicit declaration of function 'memory_free' [-Wimplicit-function-declaration]
    107 |                 memory_free(
        |                 ^~~~~~~~~~~

  exit code: 0
  exit code: 0
  exit code: 1
  cargo:warning=ToolExecError: Command "gcc.exe" "-O0" "-ffunction-sections" "-fdata-sections" "-gdwarf-2" "-fno-omit-frame-pointer" "-m64" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\incl
ude" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\common" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\li
bbfio" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libcdata" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824
\\libcerror" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libcfile" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20
230824\\libclocale" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libcnotify" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\li
besedb-20230824\\libcpath" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libcsplit" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\o
ut\\libesedb-20230824\\libcthreads" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libesedb" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7b
fcdbb\\out\\libesedb-20230824\\libfcache" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libfdata" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11
df0d7bfcdbb\\out\\libesedb-20230824\\libfdatetime" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libfguid" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-
sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libfmapi" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libfvalue" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\lib
esedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libfwnt" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libmapidb" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build
\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libuna" "-Wall" "-Wextra" "-DHAVE_LOCAL_LIBBFIO=1" "-DHAVE_LOCAL_LIBCDATA=1" "-DHAVE_LOCAL_LIBCERROR=1" "-DHAVE_LOCAL_LIBCFILE=1" "-DHAVE_LOCAL_LIBCLOCALE=1" "-DHAVE_LOCAL_LIBCNOTIFY=1" "-DHAVE_LOCAL_LIBCPATH=1" "-DH
AVE_LOCAL_LIBCSPLIT=1" "-DHAVE_LOCAL_LIBCTHREADS=1" "-DHAVE_LOCAL_LIBFCACHE=1" "-DHAVE_LOCAL_LIBFDATA=1" "-DHAVE_LOCAL_LIBFDATETIME=1" "-DHAVE_LOCAL_LIBFGUID=1" "-DHAVE_LOCAL_LIBFMAPI=1" "-DHAVE_LOCAL_LIBFVALUE=1" "-DHAVE_LOCAL_LIBFWNT=1" "-DHAVE_LOCAL_LIBMAPIDB=1" "-DHAVE
_LOCAL_LIBUNA=1" "-o" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\f5bb0495af722a3e-libfwnt_security_descriptor.o" "-c" "libesedb-20230824\\libfwnt\\libfwnt_security_descriptor.c" with args gcc.exe did not execute successfully (status code exit code: 1).cargo:warning=In file included from libesedb-20230824\libfwnt\libfwnt_security_identifier.c:24:
  cargo:warning=libesedb-20230824\libfwnt\libfwnt_security_identifier.c: In function 'libfwnt_security_identifier_initialize':
  cargo:warning=C:\Users\User\RustroverProjects\untitled\target\debug\build\libesedb-sys-d3a11df0d7bfcdbb\out\libesedb-20230824\common/memory.h:64:18: error: implicit declaration of function 'memory_allocate' [-Wimplicit-function-declaration]
  cargo:warning=   64 |         (type *) memory_allocate( sizeof( type ) )
  cargo:warning=      |                  ^~~~~~~~~~~~~~~
  cargo:warning=libesedb-20230824\libfwnt\libfwnt_security_identifier.c:65:40: note: in expansion of macro 'memory_allocate_structure'
  cargo:warning=   65 |         internal_security_identifier = memory_allocate_structure(
  cargo:warning=      |                                        ^~~~~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=C:\Users\User\RustroverProjects\untitled\target\debug\build\libesedb-sys-d3a11df0d7bfcdbb\out\libesedb-20230824\common/memory.h:64:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  cargo:warning=   64 |         (type *) memory_allocate( sizeof( type ) )
  cargo:warning=      |         ^
  cargo:warning=libesedb-20230824\libfwnt\libfwnt_security_identifier.c:65:40: note: in expansion of macro 'memory_allocate_structure'
  cargo:warning=   65 |         internal_security_identifier = memory_allocate_structure(
  cargo:warning=      |                                        ^~~~~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=libesedb-20230824\libfwnt\libfwnt_security_identifier.c:79:13: error: implicit declaration of function 'memory_set' [-Wimplicit-function-declaration]
  cargo:warning=   79 |         if( memory_set(
  cargo:warning=      |             ^~~~~~~~~~
  cargo:warning=libesedb-20230824\libfwnt\libfwnt_security_identifier.c:82:65: warning: comparison between pointer and integer
  cargo:warning=   82 |              sizeof( libfwnt_internal_security_identifier_t ) ) == NULL )
  cargo:warning=      |                                                                 ^~
  cargo:warning=libesedb-20230824\libfwnt\libfwnt_security_identifier.c:100:17: error: implicit declaration of function 'memory_free' [-Wimplicit-function-declaration]
  cargo:warning=  100 |                 memory_free(
  cargo:warning=      |                 ^~~~~~~~~~~
  cargo:warning=In file included from libesedb-20230824\libfwnt\libfwnt_security_identifier.c:24:
  libesedb-20230824\libfwnt\libfwnt_security_identifier.c: In function 'libfwnt_security_identifier_initialize':
  C:\Users\User\RustroverProjects\untitled\target\debug\build\libesedb-sys-d3a11df0d7bfcdbb\out\libesedb-20230824\common/memory.h:64:18: error: implicit declaration of function 'memory_allocate' [-Wimplicit-function-declaration]
     64 |         (type *) memory_allocate( sizeof( type ) )
        |                  ^~~~~~~~~~~~~~~
  libesedb-20230824\libfwnt\libfwnt_security_identifier.c:65:40: note: in expansion of macro 'memory_allocate_structure'
     65 |         internal_security_identifier = memory_allocate_structure(
        |                                        ^~~~~~~~~~~~~~~~~~~~~~~~~
  C:\Users\User\RustroverProjects\untitled\target\debug\build\libesedb-sys-d3a11df0d7bfcdbb\out\libesedb-20230824\common/memory.h:64:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
     64 |         (type *) memory_allocate( sizeof( type ) )
        |         ^
  libesedb-20230824\libfwnt\libfwnt_security_identifier.c:65:40: note: in expansion of macro 'memory_allocate_structure'
     65 |         internal_security_identifier = memory_allocate_structure(
        |                                        ^~~~~~~~~~~~~~~~~~~~~~~~~
  libesedb-20230824\libfwnt\libfwnt_security_identifier.c:79:13: error: implicit declaration of function 'memory_set' [-Wimplicit-function-declaration]
     79 |         if( memory_set(
        |             ^~~~~~~~~~
  libesedb-20230824\libfwnt\libfwnt_security_identifier.c:82:65: warning: comparison between pointer and integer
     82 |              sizeof( libfwnt_internal_security_identifier_t ) ) == NULL )
        |                                                                 ^~
  libesedb-20230824\libfwnt\libfwnt_security_identifier.c:100:17: error: implicit declaration of function 'memory_free' [-Wimplicit-function-declaration]
    100 |                 memory_free(
        |                 ^~~~~~~~~~~

  exit code: 1
  cargo:warning=ToolExecError: Command "gcc.exe" "-O0" "-ffunction-sections" "-fdata-sections" "-gdwarf-2" "-fno-omit-frame-pointer" "-m64" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\incl
ude" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\common" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\li
bbfio" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libcdata" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824
\\libcerror" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libcfile" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20
230824\\libclocale" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libcnotify" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\li
besedb-20230824\\libcpath" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libcsplit" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\o
ut\\libesedb-20230824\\libcthreads" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libesedb" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7b
fcdbb\\out\\libesedb-20230824\\libfcache" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libfdata" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11
df0d7bfcdbb\\out\\libesedb-20230824\\libfdatetime" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libfguid" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-
sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libfmapi" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libfvalue" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\lib
esedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libfwnt" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libmapidb" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build
\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libuna" "-Wall" "-Wextra" "-DHAVE_LOCAL_LIBBFIO=1" "-DHAVE_LOCAL_LIBCDATA=1" "-DHAVE_LOCAL_LIBCERROR=1" "-DHAVE_LOCAL_LIBCFILE=1" "-DHAVE_LOCAL_LIBCLOCALE=1" "-DHAVE_LOCAL_LIBCNOTIFY=1" "-DHAVE_LOCAL_LIBCPATH=1" "-DH
AVE_LOCAL_LIBCSPLIT=1" "-DHAVE_LOCAL_LIBCTHREADS=1" "-DHAVE_LOCAL_LIBFCACHE=1" "-DHAVE_LOCAL_LIBFDATA=1" "-DHAVE_LOCAL_LIBFDATETIME=1" "-DHAVE_LOCAL_LIBFGUID=1" "-DHAVE_LOCAL_LIBFMAPI=1" "-DHAVE_LOCAL_LIBFVALUE=1" "-DHAVE_LOCAL_LIBFWNT=1" "-DHAVE_LOCAL_LIBMAPIDB=1" "-DHAVE
_LOCAL_LIBUNA=1" "-o" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\f5bb0495af722a3e-libfwnt_security_identifier.o" "-c" "libesedb-20230824\\libfwnt\\libfwnt_security_identifier.c" with args gcc.exe did not execute successfully (status code exit code: 1).cargo:warning=In file included from libesedb-20230824\libmapidb\libmapidb_database.c:24:
  cargo:warning=libesedb-20230824\libmapidb\libmapidb_database.c: In function 'libmapidb_database_initialize':
  cargo:warning=C:\Users\User\RustroverProjects\untitled\target\debug\build\libesedb-sys-d3a11df0d7bfcdbb\out\libesedb-20230824\common/memory.h:64:18: error: implicit declaration of function 'memory_allocate' [-Wimplicit-function-declaration]
  cargo:warning=   64 |         (type *) memory_allocate( sizeof( type ) )
  cargo:warning=      |                  ^~~~~~~~~~~~~~~
  cargo:warning=libesedb-20230824\libmapidb\libmapidb_database.c:65:29: note: in expansion of macro 'memory_allocate_structure'
  cargo:warning=   65 |         internal_database = memory_allocate_structure(
  cargo:warning=      |                             ^~~~~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=C:\Users\User\RustroverProjects\untitled\target\debug\build\libesedb-sys-d3a11df0d7bfcdbb\out\libesedb-20230824\common/memory.h:64:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  cargo:warning=   64 |         (type *) memory_allocate( sizeof( type ) )
  cargo:warning=      |         ^
  cargo:warning=libesedb-20230824\libmapidb\libmapidb_database.c:65:29: note: in expansion of macro 'memory_allocate_structure'
  cargo:warning=   65 |         internal_database = memory_allocate_structure(
  cargo:warning=      |                             ^~~~~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=libesedb-20230824\libmapidb\libmapidb_database.c:79:13: error: implicit declaration of function 'memory_set' [-Wimplicit-function-declaration]
  cargo:warning=   79 |         if( memory_set(
  cargo:warning=      |             ^~~~~~~~~~
  cargo:warning=libesedb-20230824\libmapidb\libmapidb_database.c:82:56: warning: comparison between pointer and integer
  cargo:warning=   82 |              sizeof( libmapidb_internal_database_t ) ) == NULL )
  cargo:warning=      |                                                        ^~
  cargo:warning=libesedb-20230824\libmapidb\libmapidb_database.c:100:17: error: implicit declaration of function 'memory_free' [-Wimplicit-function-declaration]
  cargo:warning=  100 |                 memory_free(
  cargo:warning=      |                 ^~~~~~~~~~~
  cargo:warning=In file included from libesedb-20230824\libmapidb\libmapidb_database.c:24:
  libesedb-20230824\libmapidb\libmapidb_database.c: In function 'libmapidb_database_initialize':
  C:\Users\User\RustroverProjects\untitled\target\debug\build\libesedb-sys-d3a11df0d7bfcdbb\out\libesedb-20230824\common/memory.h:64:18: error: implicit declaration of function 'memory_allocate' [-Wimplicit-function-declaration]
     64 |         (type *) memory_allocate( sizeof( type ) )
        |                  ^~~~~~~~~~~~~~~
  libesedb-20230824\libmapidb\libmapidb_database.c:65:29: note: in expansion of macro 'memory_allocate_structure'
     65 |         internal_database = memory_allocate_structure(
        |                             ^~~~~~~~~~~~~~~~~~~~~~~~~
  C:\Users\User\RustroverProjects\untitled\target\debug\build\libesedb-sys-d3a11df0d7bfcdbb\out\libesedb-20230824\common/memory.h:64:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
     64 |         (type *) memory_allocate( sizeof( type ) )
        |         ^
  libesedb-20230824\libmapidb\libmapidb_database.c:65:29: note: in expansion of macro 'memory_allocate_structure'
     65 |         internal_database = memory_allocate_structure(
        |                             ^~~~~~~~~~~~~~~~~~~~~~~~~
  libesedb-20230824\libmapidb\libmapidb_database.c:79:13: error: implicit declaration of function 'memory_set' [-Wimplicit-function-declaration]
     79 |         if( memory_set(
        |             ^~~~~~~~~~
  libesedb-20230824\libmapidb\libmapidb_database.c:82:56: warning: comparison between pointer and integer
     82 |              sizeof( libmapidb_internal_database_t ) ) == NULL )
        |                                                        ^~
  libesedb-20230824\libmapidb\libmapidb_database.c:100:17: error: implicit declaration of function 'memory_free' [-Wimplicit-function-declaration]
    100 |                 memory_free(
        |                 ^~~~~~~~~~~

  exit code: 0
  exit code: 1
  cargo:warning=ToolExecError: Command "gcc.exe" "-O0" "-ffunction-sections" "-fdata-sections" "-gdwarf-2" "-fno-omit-frame-pointer" "-m64" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\incl
ude" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\common" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\li
bbfio" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libcdata" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824
\\libcerror" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libcfile" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20
230824\\libclocale" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libcnotify" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\li
besedb-20230824\\libcpath" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libcsplit" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\o
ut\\libesedb-20230824\\libcthreads" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libesedb" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7b
fcdbb\\out\\libesedb-20230824\\libfcache" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libfdata" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11
df0d7bfcdbb\\out\\libesedb-20230824\\libfdatetime" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libfguid" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-
sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libfmapi" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libfvalue" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\lib
esedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libfwnt" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libmapidb" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build
\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libuna" "-Wall" "-Wextra" "-DHAVE_LOCAL_LIBBFIO=1" "-DHAVE_LOCAL_LIBCDATA=1" "-DHAVE_LOCAL_LIBCERROR=1" "-DHAVE_LOCAL_LIBCFILE=1" "-DHAVE_LOCAL_LIBCLOCALE=1" "-DHAVE_LOCAL_LIBCNOTIFY=1" "-DHAVE_LOCAL_LIBCPATH=1" "-DH
AVE_LOCAL_LIBCSPLIT=1" "-DHAVE_LOCAL_LIBCTHREADS=1" "-DHAVE_LOCAL_LIBFCACHE=1" "-DHAVE_LOCAL_LIBFDATA=1" "-DHAVE_LOCAL_LIBFDATETIME=1" "-DHAVE_LOCAL_LIBFGUID=1" "-DHAVE_LOCAL_LIBFMAPI=1" "-DHAVE_LOCAL_LIBFVALUE=1" "-DHAVE_LOCAL_LIBFWNT=1" "-DHAVE_LOCAL_LIBMAPIDB=1" "-DHAVE
_LOCAL_LIBUNA=1" "-o" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\21fc407016ddf544-libmapidb_database.o" "-c" "libesedb-20230824\\libmapidb\\libmapidb_database.c" with args gcc.exe did not execute successfully (status code exit code: 1).cargo:warning=In file included from libesedb-20230824\libmapidb\libmapidb_folder.c:24:
  cargo:warning=libesedb-20230824\libmapidb\libmapidb_folder.c: In function 'libmapidb_folder_initialize':
  cargo:warning=C:\Users\User\RustroverProjects\untitled\target\debug\build\libesedb-sys-d3a11df0d7bfcdbb\out\libesedb-20230824\common/memory.h:64:18: error: implicit declaration of function 'memory_allocate' [-Wimplicit-function-declaration]
  cargo:warning=   64 |         (type *) memory_allocate( sizeof( type ) )
  cargo:warning=      |                  ^~~~~~~~~~~~~~~
  cargo:warning=libesedb-20230824\libmapidb\libmapidb_folder.c:65:27: note: in expansion of macro 'memory_allocate_structure'
  cargo:warning=   65 |         internal_folder = memory_allocate_structure(
  cargo:warning=      |                           ^~~~~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=C:\Users\User\RustroverProjects\untitled\target\debug\build\libesedb-sys-d3a11df0d7bfcdbb\out\libesedb-20230824\common/memory.h:64:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  cargo:warning=   64 |         (type *) memory_allocate( sizeof( type ) )
  cargo:warning=      |         ^
  cargo:warning=libesedb-20230824\libmapidb\libmapidb_folder.c:65:27: note: in expansion of macro 'memory_allocate_structure'
  cargo:warning=   65 |         internal_folder = memory_allocate_structure(
  cargo:warning=      |                           ^~~~~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=libesedb-20230824\libmapidb\libmapidb_folder.c:79:13: error: implicit declaration of function 'memory_set' [-Wimplicit-function-declaration]
  cargo:warning=   79 |         if( memory_set(
  cargo:warning=      |             ^~~~~~~~~~
  cargo:warning=libesedb-20230824\libmapidb\libmapidb_folder.c:82:54: warning: comparison between pointer and integer
  cargo:warning=   82 |              sizeof( libmapidb_internal_folder_t ) ) == NULL )
  cargo:warning=      |                                                      ^~
  cargo:warning=libesedb-20230824\libmapidb\libmapidb_folder.c:100:17: error: implicit declaration of function 'memory_free' [-Wimplicit-function-declaration]
  cargo:warning=  100 |                 memory_free(
  cargo:warning=      |                 ^~~~~~~~~~~
  cargo:warning=In file included from libesedb-20230824\libmapidb\libmapidb_folder.c:24:
  libesedb-20230824\libmapidb\libmapidb_folder.c: In function 'libmapidb_folder_initialize':
  C:\Users\User\RustroverProjects\untitled\target\debug\build\libesedb-sys-d3a11df0d7bfcdbb\out\libesedb-20230824\common/memory.h:64:18: error: implicit declaration of function 'memory_allocate' [-Wimplicit-function-declaration]
     64 |         (type *) memory_allocate( sizeof( type ) )
        |                  ^~~~~~~~~~~~~~~
  libesedb-20230824\libmapidb\libmapidb_folder.c:65:27: note: in expansion of macro 'memory_allocate_structure'
     65 |         internal_folder = memory_allocate_structure(
        |                           ^~~~~~~~~~~~~~~~~~~~~~~~~
  C:\Users\User\RustroverProjects\untitled\target\debug\build\libesedb-sys-d3a11df0d7bfcdbb\out\libesedb-20230824\common/memory.h:64:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
     64 |         (type *) memory_allocate( sizeof( type ) )
        |         ^
  libesedb-20230824\libmapidb\libmapidb_folder.c:65:27: note: in expansion of macro 'memory_allocate_structure'
     65 |         internal_folder = memory_allocate_structure(
        |                           ^~~~~~~~~~~~~~~~~~~~~~~~~
  libesedb-20230824\libmapidb\libmapidb_folder.c:79:13: error: implicit declaration of function 'memory_set' [-Wimplicit-function-declaration]
     79 |         if( memory_set(
        |             ^~~~~~~~~~
  libesedb-20230824\libmapidb\libmapidb_folder.c:82:54: warning: comparison between pointer and integer
     82 |              sizeof( libmapidb_internal_folder_t ) ) == NULL )
        |                                                      ^~
  libesedb-20230824\libmapidb\libmapidb_folder.c:100:17: error: implicit declaration of function 'memory_free' [-Wimplicit-function-declaration]
    100 |                 memory_free(
        |                 ^~~~~~~~~~~

  exit code: 0
  exit code: 1
  cargo:warning=ToolExecError: Command "gcc.exe" "-O0" "-ffunction-sections" "-fdata-sections" "-gdwarf-2" "-fno-omit-frame-pointer" "-m64" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\incl
ude" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\common" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\li
bbfio" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libcdata" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824
\\libcerror" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libcfile" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20
230824\\libclocale" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libcnotify" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\li
besedb-20230824\\libcpath" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libcsplit" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\o
ut\\libesedb-20230824\\libcthreads" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libesedb" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7b
fcdbb\\out\\libesedb-20230824\\libfcache" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libfdata" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11
df0d7bfcdbb\\out\\libesedb-20230824\\libfdatetime" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libfguid" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-
sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libfmapi" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libfvalue" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\lib
esedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libfwnt" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libmapidb" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build
\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libuna" "-Wall" "-Wextra" "-DHAVE_LOCAL_LIBBFIO=1" "-DHAVE_LOCAL_LIBCDATA=1" "-DHAVE_LOCAL_LIBCERROR=1" "-DHAVE_LOCAL_LIBCFILE=1" "-DHAVE_LOCAL_LIBCLOCALE=1" "-DHAVE_LOCAL_LIBCNOTIFY=1" "-DHAVE_LOCAL_LIBCPATH=1" "-DH
AVE_LOCAL_LIBCSPLIT=1" "-DHAVE_LOCAL_LIBCTHREADS=1" "-DHAVE_LOCAL_LIBFCACHE=1" "-DHAVE_LOCAL_LIBFDATA=1" "-DHAVE_LOCAL_LIBFDATETIME=1" "-DHAVE_LOCAL_LIBFGUID=1" "-DHAVE_LOCAL_LIBFMAPI=1" "-DHAVE_LOCAL_LIBFVALUE=1" "-DHAVE_LOCAL_LIBFWNT=1" "-DHAVE_LOCAL_LIBMAPIDB=1" "-DHAVE
_LOCAL_LIBUNA=1" "-o" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\21fc407016ddf544-libmapidb_folder.o" "-c" "libesedb-20230824\\libmapidb\\libmapidb_folder.c" with args gcc.exe did not execute successfully (status code exit code: 1).
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0

  --- stderr

  error occurred: Command "gcc.exe" "-O0" "-ffunction-sections" "-fdata-sections" "-gdwarf-2" "-fno-omit-frame-pointer" "-m64" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\include" "-I" "C:
\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\common" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libbfio" "-I" "
C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libcdata" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libcerror" 
"-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libcfile" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libcl
ocale" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libcnotify" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-202308
24\\libcpath" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libcsplit" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-
20230824\\libcthreads" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libesedb" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\l
ibesedb-20230824\\libfcache" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libfdata" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\
out\\libesedb-20230824\\libfdatetime" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libfguid" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d
7bfcdbb\\out\\libesedb-20230824\\libfmapi" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libfvalue" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a
11df0d7bfcdbb\\out\\libesedb-20230824\\libfwnt" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libmapidb" "-I" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sy
s-d3a11df0d7bfcdbb\\out\\libesedb-20230824\\libuna" "-Wall" "-Wextra" "-DHAVE_LOCAL_LIBBFIO=1" "-DHAVE_LOCAL_LIBCDATA=1" "-DHAVE_LOCAL_LIBCERROR=1" "-DHAVE_LOCAL_LIBCFILE=1" "-DHAVE_LOCAL_LIBCLOCALE=1" "-DHAVE_LOCAL_LIBCNOTIFY=1" "-DHAVE_LOCAL_LIBCPATH=1" "-DHAVE_LOCAL_LIB
CSPLIT=1" "-DHAVE_LOCAL_LIBCTHREADS=1" "-DHAVE_LOCAL_LIBFCACHE=1" "-DHAVE_LOCAL_LIBFDATA=1" "-DHAVE_LOCAL_LIBFDATETIME=1" "-DHAVE_LOCAL_LIBFGUID=1" "-DHAVE_LOCAL_LIBFMAPI=1" "-DHAVE_LOCAL_LIBFVALUE=1" "-DHAVE_LOCAL_LIBFWNT=1" "-DHAVE_LOCAL_LIBMAPIDB=1" "-DHAVE_LOCAL_LIBUNA
=1" "-o" "C:\\Users\\User\\RustroverProjects\\untitled\\target\\debug\\build\\libesedb-sys-d3a11df0d7bfcdbb\\out\\21fc407016ddf544-libmapidb_folder.o" "-c" "libesedb-20230824\\libmapidb\\libmapidb_folder.c" with args gcc.exe did not execute successfully (status code exit code: 1).
thewh1teagle commented 1 month ago

I can build it on macOS and Windows without errors. do you have windows 11? try the latest version of rookie

thewh1teagle commented 3 weeks ago

Please try it with new fresh project. use the simple.rs example from this repo. Use latest cargo and latest rookie. If it still happens feel free to reopen.