From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from arkoon.heidolph.de ([195.145.51.19] helo=mail.heidrive.de) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1V4pUF-0007n5-4E for ptxdist@pengutronix.de; Thu, 01 Aug 2013 11:48:00 +0200 Received: from [10.100.10.5] (port=34286 helo=hiscmail01.heilab.loc) by mail.heidrive.de with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1V4pUB-0003b4-1d for ptxdist@pengutronix.de; Thu, 01 Aug 2013 11:47:56 +0200 From: Date: Thu, 1 Aug 2013 09:47:54 +0000 Message-ID: <5DDDC2AE1D40D045B973C3CAA4D4CCC74F3300@HISCMAIL01.HeiLab.loc> Content-Language: de-DE MIME-Version: 1.0 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: multipart/mixed; boundary="===============1019511677==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de --===============1019511677== Content-Language: de-DE Content-Type: multipart/alternative; boundary="_000_5DDDC2AE1D40D045B973C3CAA4D4CCC74F3300HISCMAIL01HeiLabl_" --_000_5DDDC2AE1D40D045B973C3CAA4D4CCC74F3300HISCMAIL01HeiLabl_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Thanks for your replay. The post was only thought to be informational. ptxdist --version 2011.10.0 BSP is BSP-Phytec-phyCARD-L-PD12.0.1 and libxml2 is selected, but there is = no -dev version and so there are no include files which causes the error. But as I suggested I'm satisfied with localy compiled evtest. Yours Henrik --_000_5DDDC2AE1D40D045B973C3CAA4D4CCC74F3300HISCMAIL01HeiLabl_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Thanks for your replay. The pos= t was only thought to be informational.

<prompt> ptxdist --version

2011.10.0

 

BSP is BSP-Phytec-phyCARD-L-PD1= 2.0.1 and libxml2 is selected, but there is no –dev version and so th= ere are no include files which causes the error.

 

But as I suggested I’m sa= tisfied with localy compiled evtest.

 

Yours Henrik<= /p>

--_000_5DDDC2AE1D40D045B973C3CAA4D4CCC74F3300HISCMAIL01HeiLabl_-- --===============1019511677== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============1019511677==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from arkoon.heidolph.de ([195.145.51.19] helo=mail.heidrive.de) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1V4oKi-0005jF-Br for ptxdist@pengutronix.de; Thu, 01 Aug 2013 10:34:06 +0200 Received: from [10.100.10.5] (port=63221 helo=hiscmail01.heilab.loc) by mail.heidrive.de with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1V4oKd-0000GJ-24 for ptxdist@pengutronix.de; Thu, 01 Aug 2013 10:33:59 +0200 From: Date: Thu, 1 Aug 2013 08:33:58 +0000 Message-ID: <5DDDC2AE1D40D045B973C3CAA4D4CCC74F32E1@HISCMAIL01.HeiLab.loc> Content-Language: de-DE MIME-Version: 1.0 Subject: [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: multipart/mixed; boundary="===============1482286704==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de --===============1482286704== Content-Language: de-DE Content-Type: multipart/alternative; boundary="_000_5DDDC2AE1D40D045B973C3CAA4D4CCC74F32E1HISCMAIL01HeiLabl_" --_000_5DDDC2AE1D40D045B973C3CAA4D4CCC74F32E1HISCMAIL01HeiLabl_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable hi, 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 wi= th evtest-capture even it was not selected in ptxdist. The error was: evtest-capture.c:631:39: error: expected declaration specifiers or '...' be= fore 'xmlTextWriterPtr' evtest-capture.c: In function 'print_capabilities': evtest-capture.c:647:4: error: 'writer' undeclared (first use in this funct= ion) evtest-capture.c:647:4: note: each undeclared identifier is reported only o= nce for each function it appears in ... I could find out that a package libxml-dev is required to use evtest-captur= e by trying to compile it at hand and getting: evtest-capture.c:33:29: fatal error: libxml/encoding.h: No such file or dir= ectory compilation terminated. evtest itself compiles an runs on the target. Best regards Henrik --_000_5DDDC2AE1D40D045B973C3CAA4D4CCC74F32E1HISCMAIL01HeiLabl_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

hi,

 

because I need to install an in= put driver for special hardware I thought I could use evtest. When includin= g evtest in ptxdist I got a compile error with evtest-capture even it was n= ot 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: e= ach undeclared identifier is reported only once for each function it appear= s in

 

...

I could find out that a package= libxml-dev is required to use evtest-capture by trying to compile it at ha= nd and getting:

evtest-capture.c:33:29: fatal e= rror: libxml/encoding.h: No such file or directory

compilation terminated.

 

evtest itself compiles an runs = on the target.

 

Best regards<= /p>

 

Henrik

--_000_5DDDC2AE1D40D045B973C3CAA4D4CCC74F32E1HISCMAIL01HeiLabl_-- --===============1482286704== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============1482286704==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ptx.hi.pengutronix.de ([2001:6f8:1178:2:5054:ff:fec0:8e10] ident=Debian-exim) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1VAJYB-0006RS-VC for ptxdist@pengutronix.de; Fri, 16 Aug 2013 14:54:43 +0200 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.72) (envelope-from ) id 1VAJYB-0008Ra-Tr for ptxdist@pengutronix.de; Fri, 16 Aug 2013 14:54:43 +0200 Date: Fri, 16 Aug 2013 14:54:43 +0200 From: Michael Olbrich Message-ID: <20130816125443.GD29492@pengutronix.de> References: <5DDDC2AE1D40D045B973C3CAA4D4CCC74F32E1@HISCMAIL01.HeiLab.loc> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <5DDDC2AE1D40D045B973C3CAA4D4CCC74F32E1@HISCMAIL01.HeiLab.loc> 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="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de On Thu, Aug 01, 2013 at 08:33:58AM +0000, Henrik.Kraft@heidolph.de wrote: > hi, > > 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 > > ... > I could find out that a package libxml-dev is required to use evtest-capture by trying to compile it at hand and getting: > evtest-capture.c:33:29: fatal error: libxml/encoding.h: No such file or directory > compilation terminated. > > evtest itself compiles an runs on the target. Either disable EVTEST_CAPTURE or enable LIBXML2_WRITER. There is a dependency missing here. This is fixed in newer ptxdist versions. Michael -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- ptxdist mailing list ptxdist@pengutronix.de 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