Quantcast

Missing roken-h-process.pl when cross compiling v1.5.2

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Missing roken-h-process.pl when cross compiling v1.5.2

Sam Liddicott
I'm building heimdal 1.5.2 for i686 on a x86_64 platform.

The process generally goes fine, first I build an x86_64 version and copy compile_et as required, but the cross build fails with:

Making all in roken
make[4]: Entering directory `/home/WXA/src/pkg/heimdal/work/i686-sonicwall-linux-gnu/build/lib/roken'
make[4]: *** No rule to make target `/home/WXA/src/pkg/heimdal/work/i686-sonicwall-linux-gnu/src/cf/roken-h-process.pl', needed by `roken.h'.  Stop.
make[4]: Leaving directory `/home/WXA/src/pkg/heimdal/work/i686-sonicwall-linux-gnu/build/lib/roken'

it relates to this part of src/lib/roken/Makefile*

# Make make-roken deprecated in 1.4 when we know that roken-h-process.pl works
if !CROSS_COMPILE

noinst_PROGRAMS += make-roken
BUILT_SOURCES += make-roken.c

nodist_make_roken_SOURCES = make-roken.c

roken.h: make-roken$(EXEEXT)
        @./make-roken$(EXEEXT) > tmp.h ;\
        if [ -f roken.h ] && cmp -s tmp.h roken.h ; then rm -f tmp.h ; \
        else rm -f roken.h; mv tmp.h roken.h; fi

make-roken.c: roken.h.in roken.awk
        $(AWK) -f $(srcdir)/roken.awk $(srcdir)/roken.h.in > make-roken.c

else

roken.h: $(top_srcdir)/cf/roken-h-process.pl roken.h.in
        perl $(top_srcdir)/cf/roken-h-process.pl \
        -c $(top_builddir)/include/config.h  \
        -p $(srcdir)/roken.h.in -o roken.h

endif


The comment was interesting... by 1.5.2, roken-h-process.pl is missing entirely!
But cross-compile mode insists on it.

What to do?  For cross build I guess I need a host copy of make-roken but the makefile doesn't expect a separately installed make-roken.

So what's the official spell for cross compiling?

I guess I could only build make-roken if not cross compiling, and when using make-roken allow it to also exist on the path

thanks

Sam
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Missing roken-h-process.pl when cross compiling v1.5.2

Jeffrey Hutzelman
On Tue, 2013-10-29 at 15:18 +0000, Sam Liddicott wrote:

> The comment was interesting... by 1.5.2, roken-h-process.pl is missing
> entirely!

It's there in git, but it's not included in EXTRA_DIST in the top-level
Makefile.am, so it probably isn't making it into the tarball.  Try
fetching a copy from here:

https://raw.github.com/heimdal/heimdal/master/cf/roken-h-process.pl

-- Jeff

Loading...