Arachni / arachni

Web Application Security Scanner Framework
http://www.arachni-scanner.com
Other
3.75k stars 760 forks source link

Error while using the build script with fontconfig compiling #1013

Open mrcnpp opened 5 years ago

mrcnpp commented 5 years ago

Hi i'm tring to install with the buildscript arachni on ubuntu x24 18.04 This is the error Build failed, check /home/marco/Desktop/burp/arachni-master/arachni-build-dir/arachni/build/logs/fontconfig for details. When you resolve the issue you can run the script again to continue where the process left off. this is the log file fontconfig.log

from the log i don't understand where and what is the problem . Thanks for the help

bitmand commented 5 years ago

Getting the same error on Kali Linux.

Running the build script:

wget -O - https://raw.github.com/Arachni/build-scripts/master/bootstrap.sh | bash

Which compiles the first 11 (of 12) packages fine, but then throws an error on the last:

## (12/12) fontconfig
(snip)
  * Compiling
Build failed, check /root/arachni-build-dir/arachni/build/logs/fontconfig for details.
When you resolve the issue you can run the script again to continue where the process left off.

And it throws the same errors:

fcmatch.c:284:63: error: 'PRI_CHAR_WIDTH_STRONG' undeclared here (not in a function); did you mean 'PRI_WIDTH_STRONG'?
 #define FC_OBJECT(NAME, Type, Cmp) { FC_##NAME##_OBJECT, Cmp, PRI_##NAME##_STRONG, PRI_##NAME##_WEAK },
                                                               ^~~~
fcobjs.h:54:1: note: in expansion of macro 'FC_OBJECT'
 FC_OBJECT (CHAR_WIDTH,  FcTypeInteger, NULL)
 ^~~~~~~~~
fcmatch.c:284:84: error: 'PRI_CHAR_WIDTH_WEAK' undeclared here (not in a function); did you mean 'PRI_WIDTH_WEAK'?
 #define FC_OBJECT(NAME, Type, Cmp) { FC_##NAME##_OBJECT, Cmp, PRI_##NAME##_STRONG, PRI_##NAME##_WEAK },
                                                                                    ^~~~
fcobjs.h:54:1: note: in expansion of macro 'FC_OBJECT'
 FC_OBJECT (CHAR_WIDTH,  FcTypeInteger, NULL)
 ^~~~~~~~~
Makefile:609: recipe for target 'fcmatch.lo' failed
make[3]: *** [fcmatch.lo] Error 1

The closest I could find on this:

Which mentions an issue/conflict with glibc 2.25 - havn't tried the patch mentioned (yet) though.

mrcnpp commented 5 years ago

I used the tar archive to bypass the problem . The tar archive is plug and play Edit: i forgot to link the download page http://www.arachni-scanner.com/download/

bitmand commented 5 years ago

@mrcnpp I completely get the reason for just download and installing the official pre-packaged software.

But I'm trying to install the development version, using the recommended build script: https://github.com/Arachni/arachni/wiki/Development-environment - because I have some custom changes to the arachni gem I want to test and try out :)

bitmand commented 5 years ago

Just information if it helps anyone - I gave up on the compile errors, bootstrapped a clean Ubuntu 16.04, installed dependencies and the build script ran without any problems:

cd /opt
apt-get install build-essential curl libcurl3 libcurl4-openssl-dev ruby ruby-dev git python
ARACHNI_BUILD_ENV=development wget -O - https://raw.github.com/Arachni/build-scripts/master/bootstrap.sh | bash
mrcnpp commented 5 years ago

thanks @bitmand i belive the problem is only for 18.04 because dependency required by libcurl3 and libcurl4