Re: [ptxdist] [PATCH v3] iproute2: update version and minor improvements

2016-10-14 Thread Clemens Gruber
On Fri, Oct 14, 2016 at 02:56:12PM +0200, Juergen Borleis wrote:
> Hi Clemens.
> 
> On Tuesday 04 October 2016 18:20:20 Clemens Gruber wrote:
> > Update to iproute2 4.7.0, which - thanks to Alexander Aring - includes a
> > patch to fix a xtables-related build failure.
> >
> > In addition we have to set TC_CONFIG_XT to y. Otherwise, the
> > hand-crafted Configure script enables legacy iptables code, which in
> > turn leads to multiple build failures.
> > Enabling the iptables package in ptxdist is still not required.
> 
> Did you ever tried a
> 
> $ ptxdist clean

That was the mistake:

I only did a ptxdist clean iproute2 ..

___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] [PATCH v3] iproute2: update version and minor improvements

2016-10-14 Thread Clemens Gruber
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
>  ATMno
>  IPTPackage 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 
>  ^
> 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 
>  ^
> 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

Re: [ptxdist] [PATCH v3] iproute2: update version and minor improvements

2016-10-14 Thread Juergen Borleis
Hi Clemens.

On Tuesday 04 October 2016 18:20:20 Clemens Gruber wrote:
> Update to iproute2 4.7.0, which - thanks to Alexander Aring - includes a
> patch to fix a xtables-related build failure.
>
> In addition we have to set TC_CONFIG_XT to y. Otherwise, the
> hand-crafted Configure script enables legacy iptables code, which in
> turn leads to multiple build failures.
> Enabling the iptables package in ptxdist is still not required.

Did you ever tried a

$ ptxdist clean
$ ptxdist compile iproute2

?

Here it fails with:


target: iproute2.prepare


TC schedulers
 ATMno
 IPTPackage 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 
 ^
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 
 ^
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.

Regards,
Juergen

-- 
Pengutronix e.K.                              | Juergen Borleis             |
Industrial Linux Solutions                    | http://www.pengutronix.de/  |

___
ptxdist mailing list
ptxdist@pengutronix.de