Finally was able to compile and make after installing a bunch of libs. The patch seems to work!

On Thu, 2018-06-21 at 10:08 +0200, Robert Pluim wrote:
Brian Zwahr <echosa@echosa.net> writes:

I'm not exactly sure what to do with this. I assume I need to get the
latest source and build it, after applying this diff? Where do I get
the source? I've never built Emacs from source before. I'll try to get
to it when I can.

Yes. You can get the emacs-26 branch sources by doing

    git clone -b emacs-26 https://git.savannah.gnu.org/git/emacs.git

then

    sudo apt-get build-dep emacs
    cd emacs
    git apply menus.patch #assuming you put my patch in menus.patch
    ./autogen.sh
    ./configure
    make
    src/emacs -Q

and then let us know how it goes.

Regards

Robert