openwrt / openwrt/packages

[19.07] macremapper: can not be built with enabled ASLR PIE

Open
#11,621 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

release/19.07 stale
Dominant language
Makefile
Stars
4.6k
Forks
4k
Avg merge
3d 12h
Merged PRs (30d)
134

Description

Maintainer: @csonsino
Environment: powerpc 8540 && aarch64 cortex-a53 , OpenWrt 19.07

Description:

Applying ./patches/01_fix_nf_hooks.patch using plaintext: 
patching file kernelmod/main.c
make[3]: Entering directory '/mypath/target-powerpc_8540_musl/linux-mpc85xx_p2020/macremapper-1.1.0/kernelmod'
make -C /mypath/target-powerpc_8540_musl/linux-mpc85xx_p2020/linux-4.14.172 M=/mypath/target-powerpc_8540_musl/linux-mpc85xx_p2020/macremapper-1.1.0/kernelmod modules
make[4]: Entering directory '/mypath/target-powerpc_8540_musl/linux-mpc85xx_p2020/linux-4.14.172'
  CC [M]  /mypath/target-powerpc_8540_musl/linux-mpc85xx_p2020/macremapper-1.1.0/kernelmod/mrm_rcdb.o
  CC [M]  /mypath/target-powerpc_8540_musl/linux-mpc85xx_p2020/macremapper-1.1.0/kernelmod/mrm_runconf.o
  CC [M]  /mypath/target-powerpc_8540_musl/linux-mpc85xx_p2020/macremapper-1.1.0/kernelmod/mrm_ctlfile.o
  CC [M]  /mypath/target-powerpc_8540_musl/linux-mpc85xx_p2020/macremapper-1.1.0/kernelmod/main.o
  CC [M]  /mypath/target-powerpc_8540_musl/linux-mpc85xx_p2020/macremapper-1.1.0/kernelmod/filter_config_accelerator.o
  LD [M]  /mypath/target-powerpc_8540_musl/linux-mpc85xx_p2020/macremapper-1.1.0/kernelmod/macremapper.o
powerpc-openwrt-linux-musl-ld: unrecognized option '-specs=/home/beast/beast/workspace/turris-os-packages-kittens-turris1x/build/include/hardened-ld-pie.specs'
powerpc-openwrt-linux-musl-ld: use the --help option for usage information
scripts/Makefile.build:572: recipe for target '/mypath/target-powerpc_8540_musl/linux-mpc85xx_p2020/macremapper-1.1.0/kernelmod/macremapper.o' failed
make[5]: *** [/mypath/target-powerpc_8540_musl/linux-mpc85xx_p2020/macremapper-1.1.0/kernelmod/macremapper.o] Error 1
Makefile:1542: recipe for target '_module_/mypath/target-powerpc_8540_musl/linux-mpc85xx_p2020/macremapper-1.1.0/kernelmod' failed
make[4]: *** [_module_/mypath/target-powerpc_8540_musl/linux-mpc85xx_p2020/macremapper-1.1.0/kernelmod] Error 2
make[4]: Leaving directory '/mypath/target-powerpc_8540_musl/linux-mpc85xx_p2020/linux-4.14.172'
Makefile:71: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/mypath/target-powerpc_8540_musl/linux-mpc85xx_p2020/macremapper-1.1.0/kernelmod'
Makefile:42: recipe for target '/mypath/target-powerpc_8540_musl/linux-mpc85xx_p2020/macremapper-1.1.0/.built' failed
make[2]: *** [/mypath/target-powerpc_8540_musl/linux-mpc85xx_p2020/macremapper-1.1.0/.built] Error 2
time: package/feeds/packages/macremapper/compile#3.40#0.48#4.61

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the macremapper package build files and the kernelmod build invocation shown in the report, including kernelmod/main.c and patches/01_fix_nf_hooks.patch. Reproduce the build on the affected powerpc and aarch64 OpenWrt targets with ASLR PIE enabled, then verify that the macremapper kernel module builds successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.