[GRASS-dev] GRASS 7 swig compile warnings and errors

Markus Neteler neteler at osgeo.org
Tue Jan 20 15:53:43 EST 2009


On Tue, Jan 20, 2009 at 11:53 AM, Glynn Clements
<glynn at gclements.plus.com> wrote:
> Markus Neteler wrote:
>
>> > So assigning an expression of type va_list to a variable of type
>> > va_list results in an "incompatible types in assignment" error from
>> > the compiler?
>> >
>> > I can only suggest taking this up with the gcc maintainers; I have no
>> > clue.
>>
>> I found this:
>> http://www.swig.org/Doc1.3/SWIGDocumentation.html#Varargs_nn8
>> -> 13.7 Wrapping of va_list
>>
>> I don't know if that's related. Also this from a ruby list:
>> http://rubyforge.org/pipermail/ruby-vpi-discuss/2007-August/000008.html
>> ... mentioning a "type mismatch" error.
>
> Okay. Given that you can't actually use that function from Python, the
> simplest solution is probably to just hide the declaration from SWIG:
>
>        +#ifndef SWIG
>         int G_vasprintf(char **, const char *, va_list);
>        +#endif

Done in r35522.
Now it compiles here, too.

Markus

>> BTW, I am using gcc version 4.3.2 on 64bit. Is it only me having
>> this problem to compile swig/python/ ?
>
> There's no problem with 3.4.6 on 32-bit.
>
> --
> Glynn Clements <glynn at gclements.plus.com>
>


More information about the grass-dev mailing list