mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: "Jürgen Beisert" <jbe@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Henrik.Kraft@heidolph.de
Subject: Re: [ptxdist] package evtest
Date: Thu, 1 Aug 2013 11:38:21 +0200	[thread overview]
Message-ID: <201308011138.21704.jbe@pengutronix.de> (raw)
In-Reply-To: <5DDDC2AE1D40D045B973C3CAA4D4CCC74F32E1@HISCMAIL01.HeiLab.loc>

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=n I got:

[...]
----------------------
target: evtest.compile
----------------------

make[1]: Entering directory `/home/jbe/git_repositories/OSELAS.BSP-Test/platform-test/build-target/evtest-1.25'
make  all-am
make[2]: Entering directory `/home/jbe/git_repositories/OSELAS.BSP-Test/platform-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/platform-test/build-target/evtest-1.25'
make[1]: Leaving directory `/home/jbe/git_repositories/OSELAS.BSP-Test/platform-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=y it changes to:

[...]
----------------------
target: evtest.compile
----------------------

make[1]: Entering directory `/home/jbe/git_repositories/OSELAS.BSP-Test/platform-test/build-target/evtest-1.25'
make  all-am
make[2]: Entering directory `/home/jbe/git_repositories/OSELAS.BSP-Test/platform-test/build-target/evtest-1.25'
arm-cortexa9-linux-gnueabi-gcc -DHAVE_CONFIG_H -I.    -I/home/jbe/git_repositories/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_repositories/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 evtest-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 evtest.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-capture \
		evtest-capture.o -L/home/jbe/git_repositories/OSELAS.BSP-Test/platform-test/sysroot-target/usr/lib -lxml2
make[2]: Leaving directory `/home/jbe/git_repositories/OSELAS.BSP-Test/platform-test/build-target/evtest-1.25'
make[1]: Leaving directory `/home/jbe/git_repositories/OSELAS.BSP-Test/platform-test/build-target/evtest-1.25'
finished target evtest.compile
[...]

Regards,
Juergen

-- 
Pengutronix e.K.                              | Juergen Beisert             |
Linux Solutions for Science and Industry      | http://www.pengutronix.de/  |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

  reply	other threads:[~2013-08-01  9:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-01  8:33 Henrik.Kraft
2013-08-01  9:38 ` Jürgen Beisert [this message]
2013-08-16 12:54 ` Michael Olbrich
2013-08-01  9:47 Henrik.Kraft

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201308011138.21704.jbe@pengutronix.de \
    --to=jbe@pengutronix.de \
    --cc=Henrik.Kraft@heidolph.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox