From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: =?iso-8859-15?q?J=FCrgen_Beisert?= Date: Thu, 1 Aug 2013 11:38:21 +0200 References: <5DDDC2AE1D40D045B973C3CAA4D4CCC74F32E1@HISCMAIL01.HeiLab.loc> In-Reply-To: <5DDDC2AE1D40D045B973C3CAA4D4CCC74F32E1@HISCMAIL01.HeiLab.loc> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <201308011138.21704.jbe@pengutronix.de> Subject: Re: [ptxdist] package evtest Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Cc: Henrik.Kraft@heidolph.de Hi Henrik, On Thursday 01 August 2013 10:33:58 Henrik.Kraft@heidolph.de wrote: > because I need to install an input driver for special hardware I thought I > could use evtest. When including evtest in ptxdist I got a compile error > with evtest-capture even it was not selected in ptxdist. The error was: > > evtest-capture.c:631:39: error: expected declaration specifiers or '...' > before 'xmlTextWriterPtr' evtest-capture.c: In function > 'print_capabilities': > evtest-capture.c:647:4: error: 'writer' undeclared (first use in this > function) evtest-capture.c:647:4: note: each undeclared identifier is > reported only once for each function it appears in What PTXdist revision do you are using? I tested it here with PTXdist-2013.03.0 for a quick test: with PTXCONF_EVTEST_CAPTURE=3Dn I got: [...] ---------------------- target: evtest.compile ---------------------- make[1]: Entering directory `/home/jbe/git_repositories/OSELAS.BSP-Test/pla= tform-test/build-target/evtest-1.25' make all-am make[2]: Entering directory `/home/jbe/git_repositories/OSELAS.BSP-Test/pla= tform-test/build-target/evtest-1.25' arm-cortexa9-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -g -O2 -MT evtest.o = -MD -MP -MF .deps/evtest.Tpo -c -o evtest.o evtest.c mv -f .deps/evtest.Tpo .deps/evtest.Po arm-cortexa9-linux-gnueabi-gcc -g -O2 -o evtest evtest.o make[2]: Leaving directory `/home/jbe/git_repositories/OSELAS.BSP-Test/plat= form-test/build-target/evtest-1.25' make[1]: Leaving directory `/home/jbe/git_repositories/OSELAS.BSP-Test/plat= form-test/build-target/evtest-1.25' finished target evtest.compile [...] So, the "evtest-capture.c" source is not compiled in this case. With PTXCONF_EVTEST_CAPTURE=3Dy it changes to: [...] ---------------------- target: evtest.compile ---------------------- make[1]: Entering directory `/home/jbe/git_repositories/OSELAS.BSP-Test/pla= tform-test/build-target/evtest-1.25' make all-am make[2]: Entering directory `/home/jbe/git_repositories/OSELAS.BSP-Test/pla= tform-test/build-target/evtest-1.25' arm-cortexa9-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I/home/jbe/git_repos= itories/OSELAS.BSP-Test/platform-test/sysroot-target/usr/include/libxml2 \ -g -O2 -MT evtest.o -MD -MP -MF .deps/evtest.Tpo -c -o evtest.o evtest.c arm-cortexa9-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I/home/jbe/git_repos= itories/OSELAS.BSP-Test/platform-test/sysroot-target/usr/include/libxml2 \ -g -O2 -MT evtest-capture.o -MD -MP -MF .deps/evtest-capture.Tpo -c -o ev= test-capture.o evtest-capture.c mv -f .deps/evtest.Tpo .deps/evtest.Po arm-cortexa9-linux-gnueabi-gcc -I/home/jbe/git_repositories/OSELAS.BSP-Test= /platform-test/sysroot-target/usr/include/libxml2 -g -O2 -o evtest evtes= t.o mv -f .deps/evtest-capture.Tpo .deps/evtest-capture.Po arm-cortexa9-linux-gnueabi-gcc -I/home/jbe/git_repositories/OSELAS.BSP-Test= /platform-test/sysroot-target/usr/include/libxml2 -g -O2 -o evtest-captu= re \ evtest-capture.o -L/home/jbe/git_repositories/OSELAS.BSP-Test/platform-te= st/sysroot-target/usr/lib -lxml2 make[2]: Leaving directory `/home/jbe/git_repositories/OSELAS.BSP-Test/plat= form-test/build-target/evtest-1.25' make[1]: Leaving directory `/home/jbe/git_repositories/OSELAS.BSP-Test/plat= form-test/build-target/evtest-1.25' finished target evtest.compile [...] Regards, Juergen -- = Pengutronix e.K. =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0| Juergen Beisert =A0 =A0 =A0 =A0 =A0 =A0 | Linux Solutions for Science and Industry =A0 =A0 =A0| http://www.pengutroni= x.de/ | -- = ptxdist mailing list ptxdist@pengutronix.de