[Thuban-list] Compile into oblivion

Bernhard Herzog bh at intevation.de
Fri Oct 10 11:00:59 CEST 2003


Adrian Custer <acuster at nature.berkeley.edu> writes:

> libraries/pyprojection/Projection_wrap.c: In function
> `_wrap_new_Projection':
> libraries/pyprojection/Projection_wrap.c:1283: error: invalid type
> argument of `unary *'
> libraries/pyprojection/Projection_wrap.c:1291: error: invalid type
> argument of `unary *'
> error: command 'gcc' failed with exit status 1

Which version of the proj library do you compile it with?

The problem seems to be the pj_get_errno_ref function which returns a
pointer to int and the code in question dereferences the return value.
This can lead to the above errors when e.g. the compiler didn't see the
prototype and assumes it returns int.

According to proj's ChangeLog this means Thuban needs at least version
4.4.4.

   Bernhard

-- 
Intevation GmbH                                 http://intevation.de/
Sketch                                 http://sketch.sourceforge.net/
Thuban                                  http://thuban.intevation.org/



More information about the Thuban-list mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)