tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: firefox failing to build NetBSD 9/amd64



On Wed, Jun 16, 2021 at 05:31:43PM +0200, Benny Siegert wrote:
> On Wed, Jun 16, 2021 at 3:04 PM Greg Troxel <gdt%lexort.com@localhost> wrote:
> > I have then done and update and repeat pkg_rr a few times, and now
> > firefox doesn't build, with:
> >
> >   ===> Configuring for firefox-88.0.1nb2
> >   printf '#!/bin/sh\n[ "$*" = "-f" ] && exit 0\nexec /bin/rm $@\n' >  /tmp/work/www/firefox/work/.cwrapper/bin/rm
> >   chmod +x /tmp/work/www/firefox/work/.cwrapper/bin/rm
> >   /bin/ln -sf /usr/pkg/bin/clang /tmp/work/www/firefox/work/.cwrapper/bin/clang
> >   /bin/ln -sf /usr/pkg/bin/clang++ /tmp/work/www/firefox/work/.cwrapper/bin/clang++
> >   /bin/ln -sf /usr/pkg/bin/clang-cpp /tmp/work/www/firefox/work/.cwrapper/bin/clang-cpp
> >   => Dont include malloc.h on dragonflybsd
> >   => Fixing absolute paths.
> >   cd /tmp/work/www/firefox/work/firefox-88.0.1 && autoconf
> >   build/autoconf/hooks.m4:6: error: defn: undefined macro: AC_INIT_PREPARE
> >   build/autoconf/hooks.m4:6: the top level
> >   autom4te: error: /usr/pkg/bin/gm4 failed with exit status: 1
> >   *** Error code 1
> 
> I have not seen this. But there was another thread with mysterious
> autoconf issues just now. Maybe an autotools bug of some sort?

The code is:

dnl Wrap AC_INIT_PREPARE to add the above trap.
define([_MOZ_AC_INIT_PREPARE], defn([AC_INIT_PREPARE]))
define([AC_INIT_PREPARE],
[_MOZ_AC_INIT_PREPARE($1)

There isn't anything "above", so what trap? defn or m4_defn expects a macro.
AFAIR the macro is called _AC_INIT_PREPARE. I wonder what it is trying to do...


Cheers,

Patrick


Home | Main Index | Thread Index | Old Index