[prev in list] [next in list] [prev in thread] [next in thread] 

List:       postgis-users
Subject:    Re: [postgis-users] Issues configurign PostGIS with GDAL 1.11.2
From:       Stefano Iacovella <stefano.iacovella () gmail ! com>
Date:       2015-03-25 12:37:19
Message-ID: CAG9OqYppjzf_T6ftjZv1x8x5wRCAJB3RHFZOKrFDjgo_05n0SQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


May be I have found a clue about the issue.

Looking at the config.log I have found these rows:

| #define HAVE_GDAL_H 1
| #define HAVE_OGR_API_H 1
| #define HAVE_CPL_CONV_H 1
| /* end confdefs.h.  */
|
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char GDALAllRegister ();
| int
| main ()
| {
| return GDALAllRegister ();
|   ;
|   return 0;
| }
configure:20670: gcc -o conftest  -I/usr/local/include  conftest.c -lgdal
-L/usr/local/lib -lgdal >&5
//home/stefano/arcsdetools/sdeexe102/lib/libsde.so: undefined reference to
`pthread_atfork'
collect2: error: ld returned 1 exit status
configure:20670: $? = 1

could this error be the cause of the previous one?

I can't remember exactly when I installed the ArcSDE SDK and then
recompiled GDAL but I am pretty sure it was after compiling PostGIS 2.1.5

Thanks again

Stefano

---------------------------------------------------
41.95581N 12.52854E


http://www.linkedin.com/in/stefanoiacovella

http://twitter.com/#!/Iacovellas

2015-03-25 12:51 GMT+01:00 Stefano Iacovella <stefano.iacovella@gmail.com>:

> Hi all,
>
> sorry for the cross-posting, I am not sure whether the issue is more
> relevant to GDAL or PostGIS.
>
> I tried to compile PostGIS 2.1.6 on my Linux Box but the first step end
> with an error:
>
> ~/sources/postgis-2.1.6 $ ./configure --with-gui
> ...
> TOPOLOGY: Topology support requested
> RASTER: Raster support requested
> checking for gdal-config... /usr/local/bin/gdal-config
> checking GDAL version... 1.11.2
> checking for OGR enabled... yes
> checking gdal.h usability... yes
> checking gdal.h presence... yes
> checking for gdal.h... yes
> checking ogr_api.h usability... yes
> checking ogr_api.h presence... yes
> checking for ogr_api.h... yes
> checking cpl_conv.h usability... yes
> checking cpl_conv.h presence... yes
> checking for cpl_conv.h... yes
> checking for library containing GDALAllRegister... no
> configure: error: could not find GDAL
>
> It is the same Linux Box, Mint 17, on which I had previously successfully
> configured and compiled PostGIS 2.1.5 on GDAL 1.11.1
> The upgrade to GDAL 1.11.2 was done after the compilation of PostGIS 2.1.5
> so I guess the problem may be related to this release.
> I have in fact also tried to use the same configure command on sources for
> PostGIS 2.1.5 but got the same error.
>
> Am I doing something wrong or is it a bug?
>
> Thank you in advance for your help
>
> Stefano
> ---------------------------------------------------
> 41.95581N 12.52854E
>
>
> http://www.linkedin.com/in/stefanoiacovella
>
> http://twitter.com/#!/Iacovellas
>

[Attachment #5 (text/html)]

<div dir="ltr"><div><div><div><div><div>May be I have found a clue about the \
issue.<br><br></div>Looking at the config.log I have found these rows:<br><br>| \
#define HAVE_GDAL_H 1<br>| #define HAVE_OGR_API_H 1<br>| #define HAVE_CPL_CONV_H \
1<br>| /* end confdefs.h.   */<br>| <br>| /* Override any GCC internal prototype to \
avoid an error.<br>|       Use char because int might match the return type of a \
GCC<br>|       builtin and then its argument prototype would still apply.   */<br>| \
#ifdef __cplusplus<br>| extern &quot;C&quot;<br>| #endif<br>| char GDALAllRegister \
();<br>| int<br>| main ()<br>| {<br>| return GDALAllRegister ();<br>|     ;<br>|     \
return 0;<br>| }<br>configure:20670: gcc -o conftest   -I/usr/local/include   \
conftest.c -lgdal   -L/usr/local/lib -lgdal \
&gt;&amp;5<br>//home/stefano/arcsdetools/sdeexe102/lib/libsde.so: undefined reference \
to `pthread_atfork&#39;<br>collect2: error: ld returned 1 exit \
status<br>configure:20670: $? = 1<br><br></div>could this error be the cause of the \
previous one?<br><br></div>I can&#39;t remember exactly when I installed the ArcSDE \
SDK and then recompiled GDAL but I am pretty sure it was after compiling PostGIS \
2.1.5<br><br></div>Thanks again<br><br></div>Stefano<br></div><div \
class="gmail_extra"><br clear="all"><div><div \
class="gmail_signature">---------------------------------------------------<br>41.95581N \
12.52854E<br><br><br><a href="http://www.linkedin.com/in/stefanoiacovella" \
target="_blank">http://www.linkedin.com/in/stefanoiacovella</a><br><br><a \
href="http://twitter.com/#!/Iacovellas" \
target="_blank">http://twitter.com/#!/Iacovellas</a></div></div> <br><div \
class="gmail_quote">2015-03-25 12:51 GMT+01:00 Stefano Iacovella <span \
dir="ltr">&lt;<a href="mailto:stefano.iacovella@gmail.com" \
target="_blank">stefano.iacovella@gmail.com</a>&gt;</span>:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div><div>Hi \
all,<br><br></div>sorry for the cross-posting, I am not sure whether the issue is \
more relevant to GDAL or PostGIS.<br><br></div>I tried to compile PostGIS 2.1.6 on my \
Linux Box but the first step end with an error:<br><br>~/sources/postgis-2.1.6 $ \
./configure --with-gui<br>...<br>TOPOLOGY: Topology support requested<br>RASTER: \
Raster support requested<br>checking for gdal-config... \
/usr/local/bin/gdal-config<br>checking GDAL version... 1.11.2<br>checking for OGR \
enabled... yes<br>checking gdal.h usability... yes<br>checking gdal.h presence... \
yes<br>checking for gdal.h... yes<br>checking ogr_api.h usability... yes<br>checking \
ogr_api.h presence... yes<br>checking for ogr_api.h... yes<br>checking cpl_conv.h \
usability... yes<br>checking cpl_conv.h presence... yes<br>checking for cpl_conv.h... \
yes<br>checking for library containing GDALAllRegister... no<br>configure: error: \
could not find GDAL<br><br></div>It is the same Linux Box, Mint 17, on which I had \
previously successfully configured and compiled PostGIS 2.1.5 on GDAL 1.11.1    \
<br></div>The upgrade to GDAL 1.11.2 was done after the compilation of PostGIS 2.1.5 \
so I guess the problem may be related to this release.<br></div>I have in fact also \
tried to use the same configure command on sources for PostGIS 2.1.5 but got the same \
error.<br><br></div>Am I doing something wrong or is it a bug?<br><br></div>Thank you \
in advance for your help<br><br></div>Stefano<br \
clear="all"><div><div><div><div><div><div><div><div><div><div><div><div><div>---------------------------------------------------<br>41.95581N \
12.52854E<br><br><br><a href="http://www.linkedin.com/in/stefanoiacovella" \
target="_blank">http://www.linkedin.com/in/stefanoiacovella</a><br><br><a \
href="http://twitter.com/#!/Iacovellas" \
target="_blank">http://twitter.com/#!/Iacovellas</a></div></div> \
</div></div></div></div></div></div></div></div></div></div></div></div> \
</blockquote></div><br></div>



_______________________________________________
postgis-users mailing list
postgis-users@lists.osgeo.org
http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic