You are not logged in.
I've been trying to compile/install the rp++ package from the AUR with no luck. Every time I try to compile, either via pacaur, manually, adding -fPIC to the makeflags, etc, nothing works; see the following output.
==> Making package: rp++ 1-3 (Thu Mar 23 12:34:42 EDT 2017)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found rp++-1.tar.gz
==> Validating source files with sha512sums...
rp++-1.tar.gz ... Passed
==> Extracting sources...
-> Extracting rp++-1.tar.gz with bsdtar
==> Starting prepare()...
==> Starting build()...
-- The C compiler identification is GNU 6.3.1
-- The CXX compiler identification is GNU 6.3.1
-- Check for working C compiler: /usr/lib/hardening-wrapper/bin/cc
-- Check for working C compiler: /usr/lib/hardening-wrapper/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/lib/hardening-wrapper/bin/c++
-- Check for working CXX compiler: /usr/lib/hardening-wrapper/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/casper/PKGBUILD/rp++/src/rp-ba129d7f22fcc7fe17557dfb29670527af426d89/build
Scanning dependencies of target rp-lin-x64
[ 5%] Building CXX object CMakeFiles/rp-lin-x64.dir/src/bearopgadgetfinder.cpp.o
[ 11%] Building CXX object CMakeFiles/rp-lin-x64.dir/src/cpu.cpp.o
[ 16%] Building CXX object CMakeFiles/rp-lin-x64.dir/src/elf.cpp.o
In file included from /home/casper/PKGBUILD/rp++/src/rp-ba129d7f22fcc7fe17557dfb29670527af426d89/./src/inc/elf.hpp:24:0,
from /home/casper/PKGBUILD/rp++/src/rp-ba129d7f22fcc7fe17557dfb29670527af426d89/src/elf.cpp:20:
/home/casper/PKGBUILD/rp++/src/rp-ba129d7f22fcc7fe17557dfb29670527af426d89/./src/inc/elf_struct.hpp: In instantiation of ‘void ELFLayout<T>::fill_structures(std::ifstream&) [with T = long long unsigned int; std::ifstream = std::basic_ifstream<char>]’:
/home/casper/PKGBUILD/rp++/src/rp-ba129d7f22fcc7fe17557dfb29670527af426d89/src/elf.cpp:123:1: required from here
/home/casper/PKGBUILD/rp++/src/rp-ba129d7f22fcc7fe17557dfb29670527af426d89/./src/inc/elf_struct.hpp:363:51: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ((unsigned long long)size_string_table > fsize)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
/home/casper/PKGBUILD/rp++/src/rp-ba129d7f22fcc7fe17557dfb29670527af426d89/./src/inc/elf_struct.hpp: In instantiation of ‘void ELFLayout<T>::fill_structures(std::ifstream&) [with T = unsigned int; std::ifstream = std::basic_ifstream<char>]’:
/home/casper/PKGBUILD/rp++/src/rp-ba129d7f22fcc7fe17557dfb29670527af426d89/src/elf.cpp:123:1: required from here
/home/casper/PKGBUILD/rp++/src/rp-ba129d7f22fcc7fe17557dfb29670527af426d89/./src/inc/elf_struct.hpp:363:51: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
[ 22%] Building CXX object CMakeFiles/rp-lin-x64.dir/src/elf_struct.cpp.o
[ 27%] Building CXX object CMakeFiles/rp-lin-x64.dir/src/executable_format.cpp.o
[ 33%] Building CXX object CMakeFiles/rp-lin-x64.dir/src/gadget.cpp.o
[ 38%] Building CXX object CMakeFiles/rp-lin-x64.dir/src/instruction.cpp.o
[ 44%] Building CXX object CMakeFiles/rp-lin-x64.dir/src/macho.cpp.o
[ 50%] Building CXX object CMakeFiles/rp-lin-x64.dir/src/main.cpp.o
[ 55%] Building CXX object CMakeFiles/rp-lin-x64.dir/src/pe.cpp.o
[ 61%] Building CXX object CMakeFiles/rp-lin-x64.dir/src/program.cpp.o
[ 66%] Building CXX object CMakeFiles/rp-lin-x64.dir/src/raw.cpp.o
[ 72%] Building CXX object CMakeFiles/rp-lin-x64.dir/src/rpexception.cpp.o
[ 77%] Building CXX object CMakeFiles/rp-lin-x64.dir/src/section.cpp.o
[ 83%] Building CXX object CMakeFiles/rp-lin-x64.dir/src/toolbox.cpp.o
[ 88%] Building CXX object CMakeFiles/rp-lin-x64.dir/src/x64.cpp.o
[ 94%] Building CXX object CMakeFiles/rp-lin-x64.dir/src/x86.cpp.o
[100%] Linking CXX executable ../bin/rp-lin-x64
/usr/bin/ld: ../lib/beaengine/bin/BeaEngine.x64.lin.a(BeaEngine.c.o): relocation R_X86_64_32S against symbol `opcode_map1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: ../lib/argtable2/bin/argtable2.x64.lin.a(arg_end.c.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: ../lib/argtable2/bin/argtable2.x64.lin.a(arg_file.c.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: ../lib/argtable2/bin/argtable2.x64.lin.a(arg_int.c.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: ../lib/argtable2/bin/argtable2.x64.lin.a(arg_lit.c.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: ../lib/argtable2/bin/argtable2.x64.lin.a(arg_str.c.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: ../lib/argtable2/bin/argtable2.x64.lin.a(argtable2.c.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/rp-lin-x64.dir/build.make:513: ../bin/rp-lin-x64] Error 1
make[1]: *** [CMakeFiles/Makefile2:68: CMakeFiles/rp-lin-x64.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
Now, I tried adding -fPIC to makepkg for this, however it doesn't seem to help. Anyone else experiencing this issue? I have a feeling it's a stupid fix, too..
Offline
Get rid of the hardening wrapper
Offline
Ahhh, makes sense. Thanks, I love you.
Offline