[postgis-devel] PostGIS compile problem

Pierre Racine Pierre.Racine at sbf.ulaval.ca
Tue Feb 28 16:07:24 PST 2012


Nothing is defined in my postgis_config.h

Any idea why?

> -----Original Message-----
> From: postgis-devel-bounces at postgis.refractions.net [mailto:postgis-devel-
> bounces at postgis.refractions.net] On Behalf Of Paul Ramsey
> Sent: Tuesday, February 28, 2012 7:06 PM
> To: PostGIS Development Discussion
> Subject: Re: [postgis-devel] PostGIS compile problem
>
> It should be defined in postgis_config.h
>
> On Tue, Feb 28, 2012 at 4:04 PM, Pierre Racine <Pierre.Racine at sbf.ulaval.ca>
> wrote:
> > Still can't compile. Where should be defined this POSTGIS_GEOS_VERSION?
> Can't find it...
> >
> >> -----Original Message-----
> >> From: postgis-devel-bounces at postgis.refractions.net
> >> [mailto:postgis-devel- bounces at postgis.refractions.net] On Behalf Of
> >> Pierre Racine
> >> Sent: Tuesday, February 28, 2012 4:52 PM
> >> To: PostGIS Development Discussion
> >> Subject: Re: [postgis-devel] PostGIS compile problem
> >>
> >> $ ./autogen.sh
> >> * Running /mingw/bin/libtoolize (2.2.10)
> >>    OPTIONS = --force --copy --install
> >> libtoolize: putting auxiliary files in `.'.
> >> libtoolize: copying file `./config.guess'
> >> libtoolize: copying file `./config.sub'
> >> libtoolize: copying file `./install-sh'
> >> libtoolize: copying file `./ltmain.sh'
> >> libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `macros'.
> >> libtoolize: copying file `macros/libtool.m4'
> >> libtoolize: copying file `macros/ltoptions.m4'
> >> libtoolize: copying file `macros/ltsugar.m4'
> >> libtoolize: copying file `macros/ltversion.m4'
> >> libtoolize: copying file `macros/lt~obsolete.m4'
> >> libtoolize: Consider adding `-I macros' to ACLOCAL_AMFLAGS in Makefile.am.
> >> * Running /mingw/bin/aclocal (1.11)
> >> * Running /mingw/bin/autoconf (2.65)
> >> ======================================
> >> Now you are ready to run './configure'
> >> ======================================
> >>
> >> $ ./configure --with-xml2config=/c/projects/libxml/libxml2-
> >> 2.7.8release/bin/xml2-config --with-
> >> pgconfig=/c/projects/pg/pg90/bin/pg_config - -with-
> >> geosconfig=/c/projects/geos/rel-3.3.2/bin/geos-config --with-
> >> projdir=/c/projects/pg/pg90
> >> --with-gdalconfig=/c/projects/gdal/rel-1.9.0
> >> /bin/gdal-config
> >> checking build system type... i686-pc-mingw32 checking host system type...
> >> i686-pc-mingw32 checking how to print strings... printf checking for
> >> gcc... gcc checking whether the C compiler works... yes checking for
> >> C compiler default output file name... a.exe checking for suffix of
> >> executables... .exe checking whether we are cross compiling... no
> >> checking for suffix of object files... o checking whether we are
> >> using the GNU C compiler... yes checking whether gcc accepts -g...
> >> yes checking for gcc option to accept ISO C89... none needed checking
> >> for a sed that does not truncate output... /bin/sed checking for grep
> >> that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E
> checking for fgrep... /bin/grep -F checking for ld used by gcc...
> >> c:/mingw/mingw32/bin/ld.exe checking if the linker
> >> (c:/mingw/mingw32/bin/ld.exe) is GNU ld... yes checking for BSD- or
> >> MS- compatible name lister (nm)... /mingw/bin/nm checking the name
> >> lister
> >> (/mingw/bin/nm) interface... BSD nm checking whether ln -s works...
> >> yes checking the maximum length of command line arguments... 8192
> >> checking whether the shell understands some XSI constructs... yes
> >> checking whether the shell understands "+="... yes checking for
> >> c:/mingw/mingw32/bin/ld.exe option to reload object files... -r
> >> checking for objdump... objdump checking how to recognize dependent
> >> libraries... file_magic ^x86 archive import|^x86 DLL checking for
> >> ar... ar checking for strip... strip checking for ranlib... ranlib
> >> checking for gawk... gawk checking command to parse /mingw/bin/nm
> >> output from gcc object... ok checking how to run the C
> >> preprocessor... gcc -E checking for ANSI C header files... yes
> >> checking for sys/types.h... yes checking for sys/stat.h... yes
> >> checking for stdlib.h... yes checking for string.h... yes checking
> >> for memory.h... yes checking for strings.h... yes checking for
> >> inttypes.h... yes checking for stdint.h... yes checking for
> >> unistd.h... yes checking for dlfcn.h... no checking for objdir...
> >> .libs checking if gcc supports -fno-rtti -fno-exceptions... no
> >> checking for gcc option to produce PIC... -DDLL_EXPORT -DPIC checking
> >> if gcc PIC flag -DDLL_EXPORT -DPIC works... yes checking if gcc
> >> static flag -static works... yes checking if gcc supports -c -o
> >> file.o... yes checking if gcc supports -c -o file.o... (cached) yes
> >> checking whether the gcc linker
> >> (c:/mingw/mingw32/bin/ld.exe) supports shared libraries... yes
> >> checking whether -lc should be explicitly linked in... yes checking
> >> dynamic linker characteristics... Win32 ld.exe checking how to
> >> hardcode library paths into programs... immediate checking whether
> >> stripping libraries is possible... yes checking if libtool supports
> >> shared libraries... yes checking whether to build shared libraries...
> >> yes checking whether to build static libraries... yes checking for gcc...
> (cached) gcc checking whether we are using the GNU C compiler...
> >> (cached) yes checking whether gcc accepts -g... (cached) yes checking
> >> for gcc option to accept ISO C89... (cached) none needed checking how
> >> to run the C preprocessor... gcc -E checking for g++... g++ checking
> >> whether we are using the GNU C++ compiler... yes checking whether g++
> >> accepts -g... yes checking how to run the C++ preprocessor... g++ -E checking
> for ld used by g++...
> >> c:/mingw/mingw32/bin/ld.exe checking if the linker
> >> (c:/mingw/mingw32/bin/ld.exe) is GNU ld... yes checking whether the
> >> g++ linker
> >> (c:/mingw/mingw32/bin/ld.exe) supports shared libraries... yes
> >> checking for g++ option to produce PIC... -DDLL_EXPORT -DPIC checking
> >> if g++ PIC flag - DDLL_EXPORT -DPIC works... yes checking if g++
> >> static flag -static works... yes checking if g++ supports -c -o file.o... yes
> checking if g++ supports -c -o file.o...
> >> (cached) yes checking whether the g++ linker
> >> (c:/mingw/mingw32/bin/ld.exe) supports shared libraries... yes
> >> checking dynamic linker characteristics... Win32 ld.exe checking how
> >> to hardcode library paths into programs... immediate checking for
> >> ant... no checking if g++ supports -Wall... yes checking if g++ supports -
> Wmissing-prototypes... yes checking if g++ supports -ffloat-store...
> >> yes checking for flex... flex checking lex output file root... lex.yy
> >> checking lex library... -lfl checking whether yytext is a pointer... yes checking
> for bison...
> >> bison -y checking ieeefp.h usability... no checking ieeefp.h
> >> presence... no checking for ieeefp.h... no checking termios.h
> >> usability... no checking termios.h presence... no checking for
> >> termios.h... no checking for vasprintf... no checking for asprintf...
> >> no checking for _LARGEFILE_SOURCE value needed for large files... unknown
> checking for perl... /bin/perl checking for convert...
> >> /c/Windows/system32/convert checking for xsltproc... no checking for
> xmllint...
> >> /c/projects/pg/pg90/bin/xmllint checking for dblatex... no checking
> >> CUnit/CUnit.h usability... yes checking CUnit/CUnit.h presence... yes
> >> checking for CUnit/CUnit.h... yes checking for CU_initialize_registry
> >> in -lcunit... yes checking iconv.h usability... yes checking iconv.h
> >> presence... yes checking for iconv.h... yes checking for libiconv_open in -
> liconv... yes checking for iconvctl...
> >> no checking for libiconvctl... no Using user-specified pg_config file:
> >> /c/projects/pg/pg90/bin/pg_config checking PostgreSQL version...
> >> PostgreSQL
> >> 9.1.2 checking libpq-fe.h usability... yes checking libpq-fe.h
> >> presence... yes checking for libpq-fe.h... yes checking for
> >> PQserverVersion in -lpq... yes Using user-specified xml2-config file:
> >> /c/projects/libxml/libxml2- 2.7.8release/bin/xml2-config checking
> >> libxml/tree.h usability... yes checking libxml/tree.h presence... yes
> >> checking for libxml/tree.h... yes checking libxml/parser.h
> >> usability... yes checking libxml/parser.h presence... yes checking
> >> for libxml/parser.h... yes checking libxml/xpath.h usability... yes
> >> checking libxml/xpath.h presence... yes checking for
> >> libxml/xpath.h... yes checking libxml/xpathInternals.h usability...
> >> yes checking libxml/xpathInternals.h presence... yes checking for
> >> libxml/xpathInternals.h... yes checking for xmlInitParser in -lxml2... yes Using
> user-specified geos-config file:
> >> /c/projects/geos/rel-3.3.2/bin/geos-config
> >> checking GEOS version... 3.3.2
> >> checking geos_c.h usability... yes
> >> checking geos_c.h presence... yes
> >> checking for geos_c.h... yes
> >> checking for initGEOS in -lgeos_c... yes checking whether make sets
> $(MAKE)...
> >> yes checking for a BSD-compatible install... /bin/install -c checking
> >> for a thread- safe mkdir -p... /bin/mkdir -p checking whether NLS is
> >> requested... yes checking for msgfmt... no checking for gmsgfmt... :
> >> checking for xgettext... no
> >> checking for msgmerge... no
> >> checking for ld used by GCC... c:/mingw/mingw32/bin/ld.exe checking
> >> if the linker (c:/mingw/mingw32/bin/ld.exe) is GNU ld... yes checking
> >> for shared library run path origin... done checking for
> >> CFPreferencesCopyAppValue... no checking for CFLocaleCopyCurrent...
> >> no checking for GNU gettext in libc... no checking for iconv... yes
> >> checking for working iconv... yes checking for GNU gettext in
> >> libintl... no checking whether to use NLS... no Using user-specified
> >> proj
> >> directory: /c/projects/pg/pg90 checking proj_api.h usability... yes
> >> checking proj_api.h presence... yes checking for proj_api.h... yes
> >> checking for pj_get_release in -lproj... yes checking json/json.h
> >> usability... no checking json/json.h presence... no checking for
> >> json/json.h... no checking for json_object_get in -ljson... no
> >> TOPOLOGY: Topology support requested
> >> checking for GDAL >= 1.6.0... found
> >> checking for GDALFPolygonize in -lgdal... no
> >> configure: creating ./config.status
> >> config.status: creating GNUmakefile
> >> config.status: creating extensions/Makefile
> >> config.status: creating extensions/postgis/Makefile
> >> config.status: creating extensions/postgis/postgis.control
> >> config.status: creating extensions/postgis_topology/Makefile
> >> config.status: creating
> >> extensions/postgis_topology/postgis_topology.control
> >> config.status: creating liblwgeom/Makefile
> >> config.status: creating liblwgeom/cunit/Makefile
> >> config.status: creating liblwgeom/liblwgeom.h
> >> config.status: creating libpgcommon/Makefile
> >> config.status: creating libpgcommon/cunit/Makefile
> >> config.status: creating postgis/Makefile
> >> config.status: creating postgis/sqldefines.h
> >> config.status: creating loader/Makefile
> >> config.status: creating loader/cunit/Makefile
> >> config.status: creating topology/Makefile
> >> config.status: creating regress/Makefile
> >> config.status: creating doc/Makefile
> >> config.status: creating doc/Makefile.comments
> >> config.status: creating doc/html/image_src/Makefile
> >> config.status: creating utils/Makefile
> >> config.status: creating java/jdbc/Makefile
> >> config.status: creating raster/Makefile
> >> config.status: creating raster/rt_core/Makefile
> >> config.status: creating raster/rt_pg/Makefile
> >> config.status: creating raster/loader/Makefile
> >> config.status: creating raster/test/Makefile
> >> config.status: creating raster/test/core/Makefile
> >> config.status: creating raster/test/regress/Makefile
> >> config.status: creating raster/scripts/Makefile
> >> config.status: creating raster/scripts/python/Makefile
> >> config.status: creating postgis_config.h
> >> config.status: postgis_config.h is unchanged
> >> config.status: creating raster/raster_config.h
> >> config.status: raster/raster_config.h is unchanged
> >> config.status: executing libtool commands
> >> config.status: executing po-directories commands
> >>
> >>   PostGIS is now configured for i686-pc-mingw32
> >>
> >>  -------------- Compiler Info -------------
> >>   C compiler:           gcc -g -O2
> >>   C++ compiler:         g++ -g -O2
> >>
> >>  -------------- Dependencies --------------
> >>   GEOS config:          /c/projects/geos/rel-3.3.2/bin/geos-config
> >>   GEOS version:         3.3.2
> >>   GDAL config:          /c/projects/gdal/rel-1.9.0/bin/gdal-config
> >>   GDAL version:         1.9.0
> >>   PostgreSQL config:    /c/projects/pg/pg90/bin/pg_config
> >>   PostgreSQL version:   PostgreSQL 9.1.2
> >>   PROJ4 version:        46
> >>   Libxml2 config:
> >> /c/projects/libxml/libxml2-2.7.8release/bin/xml2-config
> >>   Libxml2 version:      2.7.8
> >>   JSON-C support:       no
> >>   PostGIS debug level:  0
> >>   Perl:                 /bin/perl
> >>
> >>  --------------- Extensions ---------------
> >>   PostGIS Raster:       enabled
> >>   PostGIS Topology:     enabled
> >>
> >>  -------- Documentation Generation --------
> >>   xsltproc:
> >>   xsl style sheets:
> >>   dblatex:
> >>   convert:              /c/Windows/system32/convert
> >>   mathml2.dtd:
> >> http://www.w3.org/Math/DTD/mathml2/mathml2.dtd
> >>
> >>
> >> > -----Original Message-----
> >> > From: postgis-devel-bounces at postgis.refractions.net
> >> > [mailto:postgis-devel- bounces at postgis.refractions.net] On Behalf
> >> > Of Paul Ramsey
> >> > Sent: Tuesday, February 28, 2012 4:46 PM
> >> > To: PostGIS Development Discussion
> >> > Subject: Re: [postgis-devel] PostGIS compile problem
> >> >
> >> > Environment, tool-chain? ./autogen, ./configure?
> >> > P
> >> >
> >> > On Tue, Feb 28, 2012 at 1:43 PM, Pierre Racine
> >> > <Pierre.Racine at sbf.ulaval.ca>
> >> > wrote:
> >> > > Hi,
> >> > >
> >> > > I just updated my geos to this one:
> >> > >
> >> > > http://download.osgeo.org/geos/geos-3.3.2.tar.bz2
> >> > >
> >> > > (the svn trunk does not compile) and still PostGIS complain with like this:
> >> > >
> >> > > /bin/sh ../libtool --mode=compile gcc -g -O2  -DDLL_EXPORT -DPIC
> >> > > -Wall -Wmissing-prototypes -I/c/projects/geos/rel-3.3.2/include
> >> > > -I/c/proje cts/pg/pg90/include -c -o lwgeom_geos.lo lwgeom_geos.c
> >> > > libtool: compile:  gcc -g -O2 -DDLL_EXPORT -DPIC -Wall
> >> > > -Wmissing-prototypes -I/c/projects/geos/rel-3.3.2/include
> >> > > -I/c/projects/pg/pg90/inclu de -c lwgeom_geos.c  -DDLL_EXPORT
> >> > > -DPIC -o .libs/lwgeom_geos.o
> >> > > lwgeom_geos.c: In function `lwgeom_snap':
> >> > > lwgeom_geos.c:937: error: `POSTGIS_GEOS_VERSION' undeclared
> >> > > (first use in this function)
> >> > > lwgeom_geos.c:937: error: (Each undeclared identifier is reported
> >> > > only once
> >> > > lwgeom_geos.c:937: error: for each function it appears in.)
> >> > > lwgeom_geos.c: In function `lwgeom_sharedpaths':
> >> > > lwgeom_geos.c:1001: error: `POSTGIS_GEOS_VERSION' undeclared
> >> > > (first use in this function)
> >> > > lwgeom_geos.c: In function `LWGEOM2GEOS':
> >> > > lwgeom_geos.c:265: warning: unreachable code at beginning of
> >> > > switch statement
> >> > > make[1]: *** [lwgeom_geos.lo] Error 1
> >> > > make[1]: Leaving directory `/c/projects/postgis/liblwgeom'
> >> > > make: *** [all] Error 1
> >> > > _______________________________________________
> >> > > postgis-devel mailing list
> >> > > postgis-devel at postgis.refractions.net
> >> > > http://postgis.refractions.net/mailman/listinfo/postgis-devel
> >> > _______________________________________________
> >> > postgis-devel mailing list
> >> > postgis-devel at postgis.refractions.net
> >> > http://postgis.refractions.net/mailman/listinfo/postgis-devel
> >> _______________________________________________
> >> postgis-devel mailing list
> >> postgis-devel at postgis.refractions.net
> >> http://postgis.refractions.net/mailman/listinfo/postgis-devel
> > _______________________________________________
> > postgis-devel mailing list
> > postgis-devel at postgis.refractions.net
> > http://postgis.refractions.net/mailman/listinfo/postgis-devel
> _______________________________________________
> 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