Hi Juergen,

On Fri, Oct 14, 2016 at 02:56:12PM +0200, Juergen Borleis wrote:
> Did you ever tried a
> 
> $ ptxdist clean
> $ ptxdist compile iproute2
> 
> ?

Sure, does not throw an error at my machine. I also have iptables
disabled in my ptxconfig.

> 
> Here it fails with:
> 
> ------------------------
> target: iproute2.prepare
> ------------------------
> 
> TC schedulers
>  ATM    no
>  IPT    Package xtables was not found in the pkg-config search path.
> Perhaps you should add the directory containing `xtables.pc'
> to the PKG_CONFIG_PATH environment variable
> No package 'xtables' found
> using iptables
>  IPSET  yes
> 
> iptables modules directory: Package xtables was not found in the pkg-config 
> search path.
> Perhaps you should add the directory containing `xtables.pc'
> to the PKG_CONFIG_PATH environment variable
> No package 'xtables' found
> not found!
> libc has setns: yes
> SELinux support: no
> ELF support: no
> libmnl support: no
> Berkeley DB: no
> 
> docs: latex: yes
>  pdflatex: yes
>  sgml2latex: no
>  WARNING: no LaTeX files can be build from SGML files
>  sgml2html: no
>  WARNING: no HTML docs can be built from SGML
> 
> (prepare stage does not fail :( )
> 
> ------------------------
> target: iproute2.compile
> ------------------------
> 
> make[1]: Entering directory 
> '/ptx/work/dude/WORK_A/jbe/git_repositories/OSELAS.BSP-Pengutronix-Mini2440.git/platform-mini2440/build-target/iproute2-4.7.0'
> 
> [...]
> tc
>     CC       tc_core.o
>     CC       tc_red.o
>     CC       tc_cbq.o
>     CC       tc_estimator.o
> [...]
>     CC       emp_ematch.yacc.o
>     CC       emp_ematch.lex.o
>     AR       libtc.a
> Package xtables was not found in the pkg-config search path.
> Perhaps you should add the directory containing `xtables.pc'
> to the PKG_CONFIG_PATH environment variable
> No package 'xtables' found
> Package xtables was not found in the pkg-config search path.
> Perhaps you should add the directory containing `xtables.pc'
> to the PKG_CONFIG_PATH environment variable
> No package 'xtables' found
> In file included from m_xt.c:21:0:
> ../include/xtables.h:34:29: fatal error: xtables-version.h: No such file or 
> directory
>  #include <xtables-version.h>
>                              ^
> compilation terminated.
> Makefile:161: recipe for target 'm_xt.so' failed
> make[2]: *** [m_xt.so] Error 1
> make[2]: *** Waiting for unfinished jobs....
> In file included from em_ipset.c:26:0:
> ../include/xtables.h:34:29: fatal error: xtables-version.h: No such file or 
> directory
>  #include <xtables-version.h>
>                              ^
> compilation terminated.
> ../Config:31: recipe for target 'em_ipset.o' failed
> make[2]: *** [em_ipset.o] Error 1
> rm emp_ematch.lex.c
> Makefile:55: recipe for target 'all' failed
> make[1]: *** [all] Error 2
> make[1]: Leaving directory '[...]/build-target/iproute2-4.7.0'
> [...]/ptxdist.git/rules/post/ptxd_make_world_compile.make:21: recipe for 
> target '[...]/state/iproute2.compile' failed
> make: *** [[...]/iproute2.compile] Error 2
> 
> When I add a dependency to the iptables package it compiles again.

Hmm I fear I missed that because there is still a xtables.h file in my
sysroot-target/usr/include folder.
So I disabled iptables but without a ptxdist clean iptables before
disabling it..

I'll investigate and report back with a patch.

I hope we do not have to enable iptables. Was trying to avoid that.

Regards,
Clemens

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

Reply via email to