2655Build failure on Linux 3.0
- Aug 19, 2011Hello,
I've noticed that building of Jasspa Microemacs (October 2009 version)
fails with the Linux 3.0 kernel.
The problem is due to the new numbering scheme of Linux, which is not
properly recognised by src/build:
elif [ $PLATFORM = "Linux" ] ; then
MACHINE=`uname -m | cut -c 1-3`
if [ $MACHINE = "arm" ] ; then
KERNEL_MAJOR=`uname -r | cut -c 1-1`
KERNEL_MINOR=`uname -r | cut -c 3-3`
if [ ! -r $MAKEBAS.gmk ] ; then
The code will look for linux30.gmk which does not exist, and then fall
back to linux2 (which subsequently fails because it tries linking
against termcap instead of ncurses).
As a workaround when packaging Jasspa Microemacs for Gentoo Linux,
I've hardcoded linux26, see the following patch:
Maybe in the general case a more elaborate solution is called for.
BTW, have you ever considered changing the build system to something
more modern (like Autotools or CMake)?
- Next post in topic >>