I correct myself anch close the task.
I was working on proj trunk  when I experienced this problem. I parallel
have another installation where rgdal had no problem and it was compiled
under PROJ 4.8 instead.
So I downloaded and recompiled the proj 4.8, added the right paths and now
it works.

Sorry for the mail.

Annalisa


2014/1/24 Annalisa Minelli <annagfoss@gmail.com>

> Dear all,
> I freshly compiled my SIG tools on my fresh linux installation (Ubuntu
> 12.04 LTS).
> I compiled GDAL and PROJ (v.4.9) too.
> The problem is that when I install rgdal by package using the command:
>
> R CMD INSTALL --configure-args='--with-proj-include=/usr/local/includes/
> --with-proj-lib=/usr/local/lib/proj --with-proj-share=/usr/share/proj/'
> /home/infolab/Downloads/rgdal
>
> I receive the following error:
>
> ...
> checking PROJ.4 Version 4.7 or earlier... no
> configure: PROJ_LIB: /usr/share/proj/
> proj_conf_test.c:3:7: error: conflicting types for 'pj_open_lib'
> /usr/local/include/proj_api.h:146:8: note: previous declaration of
> 'pj_open_lib' was here
> ...
>
> so not only seems not to find PROJ library (despite of the arguments
> passed), but it seems encoutering an internal conflict with the file
> proj_api.h
>
> I compiled both proj and gdal, and no other conflicting copies are
> installed (e.g. by package).
>
> Here there's the url to the complete output of the command:
> http://pastebin.com/embed_iframe.php?i=KqhPyTiy
>
>
> Any idea/suggestion is well accepted.
> Annalisa
>
>
>

	[[alternative HTML version deleted]]

