czap: cannot parse service data
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linuxtv-dvb-apps (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I had this working in a previous version of czap (ubuntu 9.10)
Now I'm at Ubuntu 10.04.1 LTS /
dvb-apps: 1.1.1+rev1273-
Now I get a problem:
czap -c ~/.czap/
using '/dev/dvb/
84 Nederland 1:388000000:
ERROR: cannot parse service data
At the v4l-dvb mailing list the following solution is proposed:
[quote]
The czap utility (dvb-apps/
configuration file when compiled gcc-4.4
Problem is tha the "sscanf" function uses the "%a[^:]" format
specifier. According to "man sscanf" you need to define _GNU_SOURCE if
you want this to work because it is a gnu-only extension.
Adding a first line "#define _GNU_SOURCE" to czap.c and recompiling
solves the problem.
[/quote]
Status changed to 'Confirmed' because the bug affects multiple users.