[postgis-devel] Compile issues on MingW trunk

Paul Ramsey pramsey at opengeo.org
Fri Jan 23 09:21:04 PST 2009


It might be we need to provide our own implementations. Not a huge
problem, kind of normal in the multi-platform world.  I'll wait until
MCA weighs in on what MinGW has/hasn't.

p

On Fri, Jan 23, 2009 at 9:01 AM, Obe, Regina <robe.dnd at cityofboston.gov> wrote:
> Mark,
> On closer inspection I see that asprintf and so forth are supposed to be
> defined in stdio.h.
>
> My stdio.h under MingW doesn't have these functions and in fact looks
> very different from this one and doesn't even have a copyright notice
>
> http://linux.die.net/include/stdio.h
>
> My msys doesn't seem to have stdio.h aside from sources I've downloaded
> which do have these functions.
>
> So maybe my base libraries need to be upgraded.
>
> Can you let me know if you have luck compiling this under MingW?  If you
> do, then I'll assume its just something wrong with my install which
> wouldn't be all that surprising since I don't know what I'm doing :).
>
> I'm pretty sure I was able to compile trunk under MingW until we started
> introducing these new fangled things.
>
> Thanks,
> Regina
>
>
>
> -----Original Message-----
> From: postgis-devel-bounces at postgis.refractions.net
> [mailto:postgis-devel-bounces at postgis.refractions.net] On Behalf Of Obe,
> Regina
> Sent: Friday, January 23, 2009 11:03 AM
> To: PostGIS Development Discussion
> Subject: RE: [postgis-devel] Compile issues on MingW trunk
>
> Mark,
>
> Well copying the configure appears to work, but when I go to make I get
> all sorts of errors mostly to do with the shp2pgsql changes.  Note I did
> not put in a --with-gui since I don't have wx loaded yet, but I assume
> these errors are the core changes and not for the gui.
>
> shp2pgsql-cli.exe
> shp2pgsql-core.o: In function `pgis_logf':
> d:/SVNProjects/PostGIS/trunk/loader/shp2pgsql-core.c:177: undefined
> reference to `vasprintf'
> shp2pgsql-core.o: In function `DropTable':
> d:/SVNProjects/PostGIS/trunk/loader/shp2pgsql-core.c:1518: undefined
> reference to `asprintf'
> d:/SVNProjects/PostGIS/trunk/loader/shp2pgsql-core.c:1538: undefined
> reference to `asprintf'
> d:/SVNProjects/PostGIS/trunk/loader/shp2pgsql-core.c:1510: undefined
> reference to `asprintf'
> d:/SVNProjects/PostGIS/trunk/loader/shp2pgsql-core.c:1530: undefined
> reference to `asprintf'
> shp2pgsql-core.o: In function `LoadData':
> d:/SVNProjects/PostGIS/trunk/loader/shp2pgsql-core.c:739: undefined
> reference to `asprintf'
> shp2pgsql-core.o:d:/SVNProjects/PostGIS/trunk/loader/shp2pgsql-core.c:74
> 4: more undefined references to `asprintf' follow
> collect2: ld returned 1 exit status
> make[1]: *** [shp2pgsql-cli.exe] Error 1
> make[1]: Leaving directory `/D/SVNProjects/PostGIS/trunk/loader'
> make: *** [loaderdumper] Error 2
>
> On my OpenSUSE it compiles fine, but that is configured --with-gui
> switch.  Haven't tried without with-gui on that.
>
>
> Also I thought I had it set last week so I could autogen under MingW for
> 1.4.  I could have been dreaming and confusing with my GEOS autogen
> experience.
>
> For GEOS autogen I get the same warning below but without the errors and
> it configures and compiles fine.
>
>> /usr/share/aclocal/autoopts.m4:22: warning: underquoted definition of
>> AG_PATH_AUTOOPTS
>>   run info '(automake)Extending aclocal'
>>   or see
>> http://sources.redhat.com/automake/automake.html#Extending%20aclocal
>
> Thanks,
> Regina
>
> -----Original Message-----
> From: postgis-devel-bounces at postgis.refractions.net
> [mailto:postgis-devel-bounces at postgis.refractions.net] On Behalf Of Mark
> Cave-Ayland
> Sent: Friday, January 23, 2009 10:42 AM
> To: PostGIS Development Discussion
> Subject: Re: [postgis-devel] Compile issues on MingW trunk
>
> Obe, Regina wrote:
>
>> I tried doing a make clean and
>>
>> sh autogen.sh
>>
>> on MingW and I'm getting this on autogen and not sure what it means
>>
>> /usr/share/aclocal/autoopts.m4:22: warning: underquoted definition of
>> AG_PATH_AUTOOPTS
>>   run info '(automake)Extending aclocal'
>>   or see
>> http://sources.redhat.com/automake/automake.html#Extending%20aclocal
>> Can't locate object method "path" via package "Request" (perhaps you
>> forgot to load "Request"?) at /usr/share/autoconf/Autom4te/C4che.pm
> line
>> 69, <GEN1> line 111.
>> aclocal: autom4te failed with exit status: 127
>> Can't locate object method "path" via package "Request" (perhaps you
>> forgot to load "Request"?) at /usr/share/autoconf/Autom4te/C4che.pm
> line
>> 69, <GEN1> line 111.
>>
>> Thanks,
>> Regina
>
> Hi Regina,
>
> What if you run autogen.sh on your SuSE box to generate configure and
> transfer the resulting file across? Does it work then?
>
>
> ATB,
>
> Mark.
>
> --
> Mark Cave-Ayland
> Sirius Corporation - The Open Source Experts
> http://www.siriusit.co.uk
> T: +44 870 608 0063
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-devel
> -----------------------------------------
> The substance of this message, including any attachments, may be
> confidential, legally privileged and/or exempt from disclosure
> pursuant to Massachusetts law. It is intended
> solely for the addressee. If you received this in error, please
> contact the sender and delete the material from any computer.
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-devel
> -----------------------------------------
> The substance of this message, including any attachments, may be
> confidential, legally privileged and/or exempt from disclosure
> pursuant to Massachusetts law. It is intended
> solely for the addressee. If you received this in error, please
> contact the sender and delete the material from any computer.
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-devel
>



More information about the postgis-devel mailing list