Your message dated Wed, 23 Mar 2011 11:09:26 +0100
with message-id <[email protected]>
and subject line Re: [Pkg-vala-maintainers] Bug#619345: valac produces invalid 
c-code when using pulseaudio's official bindings
has caused the Debian Bug report #619345,
regarding valac produces invalid c-code when using pulseaudio's official 
bindings
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
619345: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=619345
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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;

Attachment: signature.asc
Description: This is a digitally signed message part


--- End Message ---
--- Begin Message ---
On Wed, 2011-03-23 at 02:22 +0100, Alexander Kurtz wrote:
> 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?

This looks more like a bug in the bindings. The channel map bindings
can't work the way they're written because there's no destroy function.

Please report this against pulseaudio.

Attachment: signature.asc
Description: This is a digitally signed message part


--- End Message ---

Reply via email to