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

Already on GitHub? Sign in to your account

build fails on el5 #1

Closed
jdef opened this Issue Oct 15, 2012 · 1 comment

Comments

Projects
None yet
2 participants

jdef commented Oct 15, 2012

The includes/ifdef's still are not correct for builds on centos 5 (el5). For context, I was building a 32bit version on a 64bit host (my firewall runs in a 32bit openvz container on a 64bit host).

I ended up hacking a couple of the source files to make it work. My silly build helper tool below:

[jdefelice@proxmox0 smcroute-1.99.0-working]$ cat xsconf.smcroute

!/bin/bash

case "$1" in
c)
env CFLAGS='-m32' CPPFLAGS='-m32' linux32 ./configure
;;
m)
env CFLAGS='-m32' CPPFLAGS='-m32' linux32 make
;;
mi)
mkdir /smcroute-root
env CFLAGS='-m32' CPPFLAGS='-m32' linux32 make DESTDIR=
/smcroute-root install
;;
d)
rm -rf ~/smcroute-root
env CFLAGS='-m32' CPPFLAGS='-m32' linux32 make clean
env CFLAGS='-m32' CPPFLAGS='-m32' linux32 make distclean
;;
*)
echo "usage: $0 [c|m|mi|d]"
;;
esac

Trying to figure out how to attach a .patch file to this bug report...

jdef commented Oct 15, 2012

Don't see an attachment function for issue reports, so I pasted my patch file here: http://pastebin.com/rmb8Qt1Z

troglobit added a commit that referenced this issue Jul 11, 2013

Fix issue #1: build fails on RedHat EL5/CentOS5
o Support for Linux <= 2.6.25
o Bug fix support for building on systems without IPv6 routing

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>

@troglobit troglobit closed this Jul 11, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment