simsong / bulk_extractor

This is the development tree. Production downloads are at:
https://github.com/simsong/bulk_extractor/releases
Other
1.07k stars 185 forks source link

Mingw cross-compiling for Win64 - libewf-experimental-20171104 ERROR 404: Not found #332

Open tomnewman86 opened 2 years ago

tomnewman86 commented 2 years ago

Hello. I'm in the process of trying to compile the Win64 bulk_extractor 2.0 installer and get an error when running the CONFIGURE_FEDORA31.bash script out of the src_win/ directory. All other configuration scripts have been run successfully and dependencies installed without error

I have the git repository cloned in my /home/directory.

The error:

Will now try to install

Last metadata expiration check: 0:05:29 ago on Wed 26 Jan 2022 03:01:21 AM EST.

Dependencies resolved.

Nothing to do.

Complete!

Attempting to install both DLL and static version of all mingw libraries

needed for bulk_extractor.

At this point we will keep going even if there is an error...

Last metadata expiration check: 0:05:30 ago on Wed 26 Jan 2022 03:01:21 AM EST.

Dependencies resolved.

Nothing to do.

Complete!

Now performing a yum update to update system packages

Last metadata expiration check: 0:05:32 ago on Wed 26 Jan 2022 03:01:21 AM EST.

Dependencies resolved.

Nothing to do.

Complete!

libtre already installed. Skipping

Building libewf from https://github.com/libyal/libewf/releases/download/20171104/libewf-experimental-20171104.tar.gz from libewf-experimental-20171104.tar.gz.

wget --content-disposition https://github.com/libyal/libewf/releases/download/20171104/libewf-experimental-20171104.tar.gz

--2022-01-26 03:06:53--  https://github.com/libyal/libewf/releases/download/20171104/libewf-experimental-20171104.tar.gz

Resolving github.com (github.com)... 140.82.121.4

Connecting to github.com (github.com)|140.82.121.4|:443... connected.

HTTP request sent, awaiting response... 404 Not Found

2022-01-26 03:06:54 ERROR 404: Not Found.

If I try to run make without the config script completing I get the following error:

zip bulk_extractor-grep ^AC_INIT ../configure.ac | awk -F, '{print $2;}' | sed 's/ //'.zip bulk_extractor.exe bulk_extractor-grep ^AC_INIT ../configure.ac | awk -F, '{print $2;}' | sed 's/ //'-windowsinstaller.exe 

zip warning: name not matched: bulk_extractor.exe

zip warning: name not matched: bulk_extractor-[2.0.0-beta4]-windowsinstaller.exe
zip error: Nothing to do! (bulk_extractor-[2.0.0-beta4].zip)

make: *** [Makefile:39: zipfile] Error 12

Any ideas?

Thanks

Tom

simsong commented 2 years ago

Looks like a problem with the url for libewf…


Sent from my phone.

On Jan 26, 2022, at 3:31 AM, Unallocated Space @.***> wrote:

 Hello. I'm in the process of trying to compile the Win64 bulk_extractor 2.0 installer and get an error when running the CONFIGURE_FEDORA31.bash script out of the src_win/ directory. All other configuration scripts have been run successfully and dependencies installed without error

I have the git repository cloned in my /home/directory.

The error:

Will now try to install

Last metadata expiration check: 0:05:29 ago on Wed 26 Jan 2022 03:01:21 AM EST.

Dependencies resolved.

Nothing to do.

Complete!

Attempting to install both DLL and static version of all mingw libraries

needed for bulk_extractor.

At this point we will keep going even if there is an error...

Last metadata expiration check: 0:05:30 ago on Wed 26 Jan 2022 03:01:21 AM EST.

Dependencies resolved.

Nothing to do.

Complete!

Now performing a yum update to update system packages

Last metadata expiration check: 0:05:32 ago on Wed 26 Jan 2022 03:01:21 AM EST.

Dependencies resolved.

Nothing to do.

Complete!

libtre already installed. Skipping

Building libewf from https://github.com/libyal/libewf/releases/download/20171104/libewf-experimental-20171104.tar.gz from libewf-experimental-20171104.tar.gz.

wget --content-disposition https://github.com/libyal/libewf/releases/download/20171104/libewf-experimental-20171104.tar.gz

--2022-01-26 03:06:53-- https://github.com/libyal/libewf/releases/download/20171104/libewf-experimental-20171104.tar.gz

Resolving github.com (github.com)... 140.82.121.4

Connecting to github.com (github.com)|140.82.121.4|:443... connected.

HTTP request sent, awaiting response... 404 Not Found

2022-01-26 03:06:54 ERROR 404: Not Found.

If I try to run make without the config script completing I get the following error:

zip bulk_extractor-grep ^AC_INIT ../configure.ac | awk -F, '{print $2;}' | sed 's/ //'.zip bulk_extractor.exe bulk_extractor-grep ^AC_INIT ../configure.ac | awk -F, '{print $2;}' | sed 's/ //'-windowsinstaller.exe

zip warning: name not matched: bulk_extractor.exe

zip warning: name not matched: bulk_extractor-[2.0.0-beta4]-windowsinstaller.exe zip error: Nothing to do! (bulk_extractor-[2.0.0-beta4].zip)

make: *** [Makefile:39: zipfile] Error 12 Any ideas?

Thanks

Tom

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you are subscribed to this thread.

joachimmetz commented 2 years ago

Where does this URL come from? The current most up to date pre-release of the experimental version is https://github.com/libyal/libewf/releases/download/20201230/libewf-experimental-20201230.tar.gz

I would also recommend to always use the latest release, especially since this version of libewf is still considered experimental

tomnewman86 commented 2 years ago

I've edited my CONFIGURE_FEDORA31.bash script to reflect the most recent libewf-experimental (as commented by @joachimmetz and this has resolved this issue. Thanks

tomnewman86 commented 2 years ago

Not sure if I should create a new issue or leave this here (please let me know if you want this registered as a new issue)

The CONFIGURE_FEDORA31.bash contains a broken download for icu4c-53_1-src.tgz - it ends up with a HTML file type rather than a .tgz meaning gzip cannot extract the data.

I had to download a version from here: https[:]//src.fedoraproject.org/repo/pkgs/icu/icu4c-53_1-src.tgz/b73baa6fbdfef197608d1f69300919b9/

and redirect the script to this in order to get it running.

Thanks

simsong commented 2 years ago

@joachimmetz - do we want to use the experimental, or should we go back to the released version?

joachimmetz commented 2 years ago

I was not sure if this script was for dev or "production" usage, but for "production" usage I would recommend the current released (or legacy) version. Of which the current source distribution can be found here https://github.com/libyal/libewf-legacy/releases/download/20140812/libewf-20140812.tar.gz

joachimmetz commented 2 years ago

However this script and instructions look like something that can be Dockerized (and run as part of GitHub actions) and with some additional logic you can have the script grab the source distribution package of the latest tagged version. If time permits I might send a proposal PR.

simsong commented 2 years ago

This is the production version. Seems like we should update it to use https://github.com/libyal/libewf-legacy/releases/download/20140812/libewf-20140812.tar.gz. Do you think that the 2014 version will remain production for another few years, or is there a new version on the way/

joachimmetz commented 2 years ago

So this "2014" (or legacy) version release is actually of May 17, 2021 (https://github.com/libyal/libewf-legacy/releases) it is just that no new features will be added to this version. A new version is on the way but the EWF format is not a high priority for me at the moment.

simsong commented 2 years ago

This was not clear to me! I'm glad we are not using code from 2014, just an API from 2014. We should use https://github.com/libyal/libewf-legacy/releases/download/20140812/libewf-20140812.tar.gz.

joachimmetz commented 2 years ago

WIP (https://github.com/simsong/bulk_extractor/pull/339) to add a CI test for this and changes to the script, unfortunately main HEAD is not building for me at the moment