Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exercise 1 Missing freetype2 lib, wrong CC path #46

Open
pk2 opened this issue Nov 27, 2024 · 3 comments
Open

Exercise 1 Missing freetype2 lib, wrong CC path #46

pk2 opened this issue Nov 27, 2024 · 3 comments

Comments

@pk2
Copy link

pk2 commented Nov 27, 2024

export LLVM_CONFIG="llvm-config-11"
CC=$HOME/AFLplusplus/afl-clang-fast CXX=$HOME/AFLplusplus/afl-clang-fast++ ./configure --prefix="$HOME/fuzzing_xpdf/install/"
make
make install

Should be:

apt-get install libfreetype6-dev libmotif-dev libxt-dev
export LLVM_CONFIG="llvm-config-11"
CC=/AFLplusplus/afl-clang-fast CXX=/AFLplusplus/afl-clang-fast++ ./configure --prefix="/home/fuzzing_xpdf/install/" --with-freetype2-includes=/usr/include/freetype2
make
make install
@9carlo6
Copy link

9carlo6 commented Dec 3, 2024

To maintain consistency with the rest of the project:

sudo apt-get install libfreetype6-dev libmotif-dev libxt-dev
export LLVM_CONFIG="llvm-config-11"
CC=$HOME/AFLplusplus/afl-clang-fast CXX=/AFLplusplus/afl-clang-fast++ ./configure --prefix="$HOME/home/fuzzing_xpdf/install/" --with-freetype2-includes=/usr/include/freetype2
make
make install

@pk2
Copy link
Author

pk2 commented Dec 3, 2024

To maintain consistency with the rest of the project:

sudo apt-get install libfreetype6-dev libmotif-dev libxt-dev
export LLVM_CONFIG="llvm-config-11"
CC=$HOME/AFLplusplus/afl-clang-fast CXX=/AFLplusplus/afl-clang-fast++ ./configure --prefix="$HOME/home/fuzzing_xpdf/install/" --with-freetype2-includes=/usr/include/freetype2
make
make install

Hello @9carlo6
HOME env is inconsistent in whole Exercise 1. Sometimes it is "/home" sometimes it should be empty like in CC=/AFLplusplus/afl-clang-fast ...
I was not able to finish it without editing it multiple times.

@SethGen
Copy link

SethGen commented Dec 4, 2024

export LLVM_CONFIG="llvm-config-11"
CC=$HOME/AFLplusplus/afl-clang-fast CXX=$HOME/AFLplusplus/afl-clang-fast++ ./configure --prefix="$HOME/fuzzing_xpdf/install/"
make
make install

Should be:

apt-get install libfreetype6-dev libmotif-dev libxt-dev
export LLVM_CONFIG="llvm-config-11"
CC=/AFLplusplus/afl-clang-fast CXX=/AFLplusplus/afl-clang-fast++ ./configure --prefix="/home/fuzzing_xpdf/install/" --with-freetype2-includes=/usr/include/freetype2
make
make install

Thank you for this! The binaries were missing for me until I made this change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants