Giter VIP home page Giter VIP logo

Comments (4)

simsong avatar simsong commented on September 28, 2024

from bulk_extractor.

simsong avatar simsong commented on September 28, 2024

from bulk_extractor.

D3vil0p3r avatar D3vil0p3r commented on September 28, 2024

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 function regex_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 to pcre_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 function regex_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 function regex_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 to pcre_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.

D3vil0p3r avatar D3vil0p3r commented on September 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.