Patch to fix cross-compiling

Steve Grubb sgrubb at redhat.com
Mon Nov 5 14:28:53 UTC 2012


On Friday, November 02, 2012 11:11:58 AM George McCollister wrote:
> I've created a patch against your SVN trunk which uses
> ax_cc_for_build.m4 to provide CC_FOR_BUILD which is then used in
> auparse/Makefile.am and lib/Makefile.am to build the utilities that run
> on the build machine.
> 
> I was able to use this patch to cross-compile audit for my ARM platform.
> I'm still in the process of testing audit on the ARM platform.
> 
> Comments, questions and critiques welcome.

Well...it breaks the normal build on x86_64:

config.status: creating tools/aulastlog/Makefile
config.status: creating tools/ausyscall/Makefile
config.status: creating tools/auvirt/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
.


  Auditd Version:         2.2.2
  Target:                 x86_64-unknown-linux-gnu
  Installation prefix:    /usr
  Compiler:               gcc
  Compiler flags:
                          -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
                          -fexceptions -fstack-protector
                          --param=ssp-buffer-size=4 -m64 -mtune=generic

+ make -j4
make  all-recursive
make[1]: Entering directory `/home/sgrubb/working/BUILD/audit-2.2.2'
Making all in lib
make[2]: Entering directory `/home/sgrubb/working/BUILD/audit-2.2.2/lib'
make[2]: *** No rule to make target `gen_tables.c', needed by 
`gen_actiontabs_h'.  Stop.
make[2]: Leaving directory `/home/sgrubb/working/BUILD/audit-2.2.2/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/sgrubb/working/BUILD/audit-2.2.2'
make: *** [all] Error 2
error: Bad exit status from /home/sgrubb/working/tmp/rpm-tmp.XYWHYB (%build)


RPM build errors:
    Bad exit status from /home/sgrubb/working/tmp/rpm-tmp.XYWHYB (%build)
Done




More information about the Linux-audit mailing list