[Pkg-vala-maintainers] Bug#619345: valac produces invalid c-code when using pulseaudio's official bindings
Alexander Kurtz
kurtz.alex at googlemail.com
Wed Mar 23 01:22:47 UTC 2011
Package: valac-0.10
Version: 0.10.4-1
Severity: normal
Hi,
I've got a problem with vala and pulseaudio's official vala bindings[1].
This is my source code:
$ cat test.vala
class MyClass : Object {
PulseAudio.ChannelMap map;
static void main(){
}
}
$
Compiling it fails:
$ valac --pkg=libpulse --vapidir=. test.vala
test.vala:2.2-2.26: warning: field `MyClass.map' never used
PulseAudio.ChannelMap map;
^^^^^^^^^^^^^^^^^^^^^^^^^
/tmp/ccCFqscK.o: In function `myclass_finalize':
test.vala.c:(.text+0x152): undefined reference to `pulse_audio_channel_map_destroy'
collect2: ld returned 1 exit status
error: cc exited with status 256
Compilation failed: 1 error(s), 1 warning(s)
$
I think this is a bug in vala, since valac accepts the code but gcc
throws an error. Any ideas?
Best regards
Alexander Kurtz
[1] http://git.0pointer.de/?p=pulseaudio.git;a=tree;f=vala;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-vala-maintainers/attachments/20110323/6043753c/attachment.pgp>
More information about the Pkg-vala-maintainers
mailing list