Comments (4)
from bulk_extractor.
from bulk_extractor.
Can you submit a PR? I’m not sure which file you want me to change.
…
On Apr 20, 2024, at 1:57 PM, D3vil0p3r @.***> wrote: I am building bulk_extractor in Arch Linux by the following PKGBUILD: pkgname=bulk-extractor pkgver=2333.6a7da28 pkgrel=1 groups=('athena' 'athena-forensic' 'athena-misc') pkgdesc='Bulk Email and URL extraction tool.' arch=('x86_64') url='https://github.com/simsong/bulk_extractor' license=('GPL') depends=('tre' 'flex' 'java-environment' 'openssl' 'exiv2' 'afflib' 'libewf' 'libxml2' 'zlib' 'ncurses5-compat-libs' 're2') makedepends=('git' 'autoconf' 'automake') source=("git+https://github.com/simsong/${pkgname//-/_}.git") sha512sums=('SKIP') pkgver() { cd "${pkgname//-/}" echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD) } prepare() { cd ${pkgname//-/} git submodule update --recursive --remote #sed -i 's|dirname $0
|/usr/share/bulk-extractor|' java_gui/BEViewer sh bootstrap.sh } build() { cd ${pkgname//-/} ./configure --prefix=/usr --sysconfdir=/etc make #make -C java_gui } package() { cd ${pkgname//-/} install -dm 755 "$pkgdir/usr/share/$pkgname" make DESTDIR="$pkgdir" install #install -m 644 java_gui/BEViewer.jar "$pkgdir/usr/share/$pkgname" #install -m 755 java_gui/BEViewer "$pkgdir/usr/bin" } During the building, I get the following error: | ^ /usr/bin/ld: /tmp/ccvwT6pv.ltrans4.ltrans.o: in functionregex_vector::~regex_vector()': /usr/src/debug/bulk-extractor/bulk_extractor/src/be20_api/regex_vector.cpp:91:(.text+0x9bb): undefined reference to
pcre_free' /usr/bin/ld: /tmp/ccvwT6pv.ltrans4.ltrans.o:/usr/src/debug/bulk-extractor/bulk_extractor/src/be20_api/regex_vector.cpp:93:(.text+0x9d0): undefined reference topcre_free_study' /usr/bin/ld: /tmp/ccvwT6pv.ltrans4.ltrans.o:/usr/src/debug/bulk-extractor/bulk_extractor/src/be20_api/regex_vector.cpp:94:(.text+0x9da): undefined reference to
pcre_jit_stack_free' /usr/bin/ld: /tmp/ccvwT6pv.ltrans4.ltrans.o: in functionregex_vector::search_all(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, unsigned long*, unsigned long*) const': /usr/src/debug/bulk-extractor/bulk_extractor/src/be20_api/regex_vector.cpp:142:(.text+0x1924): undefined reference to
pcre_exec' /usr/bin/ld: /tmp/ccvwT6pv.ltrans4.ltrans.o: in functionregex_vector::push_back(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)': /usr/src/debug/bulk-extractor/bulk_extractor/src/be20_api/regex_vector.cpp:63:(.text+0x84f6): undefined reference to
pcre_compile' /usr/bin/ld: /usr/src/debug/bulk-extractor/bulk_extractor/src/be20_api/regex_vector.cpp:72:(.text+0x8513): undefined reference topcre_study' /usr/bin/ld: /usr/src/debug/bulk-extractor/bulk_extractor/src/be20_api/regex_vector.cpp:73:(.text+0x8526): undefined reference to
pcre_jit_stack_alloc' /usr/bin/ld: /usr/src/debug/bulk-extractor/bulk_extractor/src/be20_api/regex_vector.cpp:74:(.text+0x8537): undefined reference to `pcre_assign_jit_stack' collect2: error: ld returned 1 exit status make[2]: *** [Makefile:1367: bulk_extractor] Error 1 make[2]: Leaving directory '/tmp/makepkg/bulk-extractor/src/bulk_extractor/src' make[1]: *** [Makefile:527: all-recursive] Error 1 make[1]: Leaving directory '/tmp/makepkg/bulk-extractor/src/bulk_extractor' make: *** [Makefile:467: all] Error 2 ==> ERROR: A failure occurred in build(). Aborting... Probably because on building flags there is not -lpcre flag. @simsong https://github.com/simsong can you add it please? — Reply to this email directly, view it on GitHub <#466>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMFHLBUY3DG7DOZ4KFBI3DY6KUAPAVCNFSM6AAAAABGQVHUK2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGI2TINRVGQ2TGNQ. You are receiving this because you were mentioned.
It should be added in configure.ac
. I'm trying to add on it:
## pcre lib usage
AC_CHECK_LIB([pcre])
but, during the ./configure I don't still see -lpcre
in the output in "LIBS=` variable.
from bulk_extractor.
Oh... I saw the solution I proposed fixed the issue... Here the PR: #467
UPDATE: in reality, not needed. I added pcre
dependency and seems to work.
from bulk_extractor.
Related Issues (20)
- Allow scanners to be written in Rust.
- bring back md5 support
- Disabling all scanners does not allow re-enabling
- Compile fails when exiv2 is not installed HOT 18
- fix shadowing issue in #433
- bulk_extractor goes multi-threaded with -J or --no_threads
- report.xml does not include debug:work_end tags
- upgrade catch
- Make bulk_extractor compile under Debian HOT 22
- Compile on Ubuntu 20.04 LTS (g++ 9.4) error HOT 2
- make mingw fedora 39 use libgnurx if re2 is not available
- Add RTTI thumbnail option HOT 15
- Bulk_extractor HOT 1
- Cross-compiling for Windows using Fedora 36; CONFIGURE_FEDORA36_win64.bash errors out on libre2-dev HOT 9
- Channel
- bulk_extractor ignoring jpeg_carve_mode; does not carve contiguous JPEGs HOT 2
- evaluate migrating from autoconf to bazel
- File system iterator needs to keep a set of directories and files visited and not process the same directory or file twice. HOT 12
- Feature request: add regex filter for feature files. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bulk_extractor.