Re: Video4Linux header files



On Sat, May 19, 2007 at 11:24:34PM +0200, Hans Petter Selasky wrote:
On Saturday 19 May 2007 21:14, Luigi Rizzo wrote:
...
- i don't know how problematic is this, but v4l2 headers seem to use
unnamed unions which, last time i tried, conflict with the compiler
setting used to build the kernel. While this is possibly an orthogonal
problem which we may have to address at some point (as unnamed unions
seem to be a common paradigm in linux headers), it is yet another hurdle.

Unnamed unions are not so good. I suggest that we terminate unnamed unions
with an "u".

It is not our choice. Linux v4l2 headers use these unions,
software is written against these headers, we can't change the
names unless we want to make extensive changes to the sources.

I suppose a suitable plan would be the following, but i have not had
the time to work on it:

1. add a v4lcompat build-dependency on the ports potentially affected,
making sure they still build correctly using v4l1
2. add v4l1 headers in the base system (possibly changing the v4lcompat
port to not install the headers if they are already in the base system);

I want to put a V4L2.0 "videodev.h" under /usr/src/sys/sys/ with some
modifications. What do you think about that?

All the constraints i mentioned in the original email still apply.
First you need to address the unnamed unions problem, then
you will have to deal with a significant amount of breakage in
the ports.

3. modify the vl4compat port to add the v4l2 headers, again fixing
any breakage in the builds
4. as in step 2, add the v4l2 headers to the system, changing v4lcompat
as needed where the v4l* headers are in the base OS


Does anyone know which ports use the current Linux compat layer port and the
v4lcompat port ?

There is some magic port script you can run on the ports tree to get the list
of ports which depend on v4lcompat. But the problem, as i tried to
explain in the original message, is that there are ports which don't
have a v4lcompat dependency while they should (at least to have a
consistent build environment) and others which misbehave when they find
a v4l header.

PS: The Linux compat port is broken on FreeBSD-current, because "msleep" is
being re-defined.

yes, i noticed.

cheers
luigi
_______________________________________________
freebsd-current@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Video4Linux header files
    ... unnamed unions which, last time i tried, conflict with the compiler ... unnamed unions seem to be a common paradigm in linux headers), ... Linux v4l2 headers use these unions, ... add a v4lcompat build-dependency on the ports potentially affected, ...
    (freebsd-current)
  • Re: Urgent help needed : portmaster dies on py-cairo
    ... for the presence of real headers. ... Then deinstall lang/python25 and reinstall lang/python26. ... or your ports tree is corrupt. ... rebuild all of the ports that depend upon python, ...
    (freebsd-questions)
  • Re: Server logs
    ... Subject: Help Reading Headers ... I'm trying to do some research on open ports and using several proxy ... Proxy servers: ...
    (alt.support.chronic-pain)
  • Re: What do I need to change my 2 barrel to a 4 barrel
    ... Headers won't HURT, but put your money elsewhere first. ... A 340 is indeed the basic 273/318 block with bore size increased, a forged crank, always with a 4-bbl, and DIFFERENT HEADS :-) The problem with doing a factory parts mix-and-match on a 318 is that putting either 340 or 360 heads on it (to get the bigger ports that flow better) also comes at the expense of getting a larger combustion chamber that would lower the compression ratio to about 7:1 without other added changes:-/ ...
    (rec.autos.tech)
  • Re: To all the good people of alt.2600.
    ... How many people do you know who know what headers are.... ... The same IP and usenet client, ... Interesting ports on localhost: ... "Those who record history are those who control history." ...
    (alt.2600)

Loading