[postgis-devel] Problems compiling ( libtool )

Sandro Santilli strk at keybit.net
Mon Sep 19 01:55:17 PDT 2011


There are some interesting informations here:
http://lists.gnu.org/archive/html/bug-libtool/2011-09/msg00005.html

According to that url, the libtool script in our distribution may
be expecting a smarter shell than your /bin/sh.
I guess the proper fix would be to reduce these expectations.

Anyway, to confirm you may try to set your SHELL or CONFIG_SHELL
environment variable to /bin/bash (or what you have). Could you ?

TIA

--strk;


On Mon, Sep 19, 2011 at 02:34:09AM -0400, Nathaniel Hunter Clay wrote:
> On 09/19/2011 01:45 AM, Sandro Santilli wrote:
> >On Sun, Sep 18, 2011 at 08:09:50PM -0400, Nathaniel Hunter Clay wrote:
> >>Hi all,
> >>
> >>I am having trouble compiling postgis svn trunk on Ubuntu 11.10. I
> >>have gcc installed, is there anything I need to do to inform libtool
> >>where to point etc.?
> >>
> >>Thanks,
> >>
> >>Nathaniel H Clay
> >>
> >>nathaniel at nathan-MS-7599:/srv/gis/postgis$ make
> >>for s in liblwgeom libpgcommon regress postgis loader utils raster
> >>topology; do \
> >>         echo "---- Making all in ${s}"; \
> >>         make -C ${s} all || exit 1; \
> >>     done;
> >>---- Making all in liblwgeom
> >>make[1]: Entering directory `/srv/gis/postgis/liblwgeom'
> >>/bin/sh ../libtool --mode=compile gcc -g -O2  -fPIC -DPIC  -Wall
> >>-Wmissing-prototypes -I/usr/include -DPOSTGIS_GEOS_VERSION=32
> >>-DPOSTGIS_PROJ_VERSION=47 -c -o stringbuffer.lo stringbuffer.c
> >>eval: 1: base_compile+= gcc: not found
> >>eval: 1: base_compile+= -g: not found
> >>eval: 1: base_compile+= -O2: not found
> >>eval: 1: base_compile+= -fPIC: not found
> >>eval: 1: base_compile+= -DPIC: not found
> >>eval: 1: base_compile+= -Wall: not found
> >>eval: 1: base_compile+= -Wmissing-prototypes: not found
> >>eval: 1: base_compile+= -I/usr/include: not found
> >>eval: 1: base_compile+= -DPOSTGIS_GEOS_VERSION=32: not found
> >>eval: 1: base_compile+= -DPOSTGIS_PROJ_VERSION=47: not found
> >>eval: 1: base_compile+= -c: not found
> >>eval: 1: CC_quoted+= gcc: not found
> >>libtool: compile: you must specify a compilation command
> >>libtool: compile: Try `libtool --help --mode=compile' for more information.
> >>make[1]: *** [stringbuffer.lo] Error 1
> >>make[1]: Leaving directory `/srv/gis/postgis/liblwgeom'
> >>make: *** [all] Error 1
> >>nathaniel at nathan-MS-7599:/srv/gis/postgis$ gcc --help
> >>Usage: gcc [options] file...
> >Did you run ./autogen.sh&&  ./configure recently ?
> >What's the output of ./configure ?
> >
> >--strk;
> >
> >   ()   Free GIS&  Flash consultant/developer
> >   /\http://strk.keybit.net/services.html
> Strk,
> 
>     I ran ./autogen.sh and ./configure, just after updating the
> sources with svn update before sending out the email. Bumping up a
> revision and getting the same result. I decided to email the
> development list.
> 
> Here is the output of configure you requested, I hope this helps...:
> 
> nathaniel at nathan-MS-7599:/srv/gis/postgis$ ./configure --with-raster
> --with-topology
> checking build system type... x86_64-unknown-linux-gnu
> checking host system type... x86_64-unknown-linux-gnu
> 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.out
> checking for suffix of executables...
> 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... /usr/bin/ld
> checking if the linker (/usr/bin/ld) is GNU ld... yes
> checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
> checking the name lister (/usr/bin/nm -B) interface... BSD nm
> checking whether ln -s works... yes
> checking the maximum length of command line arguments... 1572864
> checking whether the shell understands some XSI constructs... yes
> checking whether the shell understands "+="... yes
> checking how to convert x86_64-unknown-linux-gnu file names to
> x86_64-unknown-linux-gnu format... func_convert_file_noop
> checking how to convert x86_64-unknown-linux-gnu file names to
> toolchain format... func_convert_file_noop
> checking for /usr/bin/ld option to reload object files... -r
> checking for objdump... objdump
> checking how to recognize dependent libraries... pass_all
> checking for dlltool... no
> checking how to associate runtime and link libraries... printf %s\n
> checking for ar... ar
> checking for archiver @FILE support... @
> checking for strip... strip
> checking for ranlib... ranlib
> checking for gawk... no
> checking for mawk... mawk
> checking command to parse /usr/bin/nm -B output from gcc object... ok
> checking for sysroot... no
> checking for mt... mt
> checking if mt is a manifest tool... no
> 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... yes
> checking for objdir... .libs
> checking if gcc supports -fno-rtti -fno-exceptions... no
> checking for gcc option to produce PIC... -fPIC -DPIC
> checking if gcc PIC flag -fPIC -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 (/usr/bin/ld -m elf_x86_64) supports
> shared libraries... yes
> checking whether -lc should be explicitly linked in... no
> checking dynamic linker characteristics... GNU/Linux ld.so
> 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++... /usr/bin/ld -m elf_x86_64
> checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
> checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports
> shared libraries... yes
> checking for g++ option to produce PIC... -fPIC -DPIC
> checking if g++ PIC flag -fPIC -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 (/usr/bin/ld -m elf_x86_64) supports
> shared libraries... yes
> checking dynamic linker characteristics... (cached) GNU/Linux ld.so
> checking how to hardcode library paths into programs... immediate
> checking if g++ supports -Wall... yes
> checking if g++ supports -Wmissing-prototypes... yes
> checking if g++ supports -ffloat-store... yes
> checking for flex... no
> checking for lex... no
> checking for bison... no
> checking for byacc... no
> checking ieeefp.h usability... no
> checking ieeefp.h presence... no
> checking for ieeefp.h... no
> checking for vasprintf... yes
> checking for asprintf... yes
> checking for convert... /usr/bin/convert
> checking for xsltproc... no
> configure: WARNING: xsltproc is not installed so documentation
> cannot be built
> checking for dblatex... no
> configure: WARNING: dblatex is not installed so PDF documentation
> cannot be built
> configure: WARNING: could not locate Docbook stylesheets required to
> build the documentation
> checking CUnit/CUnit.h usability... no
> checking CUnit/CUnit.h presence... no
> checking for CUnit/CUnit.h... no
> configure: WARNING: could not locate CUnit required for liblwgeom unit tests
> checking iconv.h usability... yes
> checking iconv.h presence... yes
> checking for iconv.h... yes
> checking for libiconv_open in -liconv... no
> checking for iconv_open in -lc... yes
> checking for iconvctl... no
> checking for libiconvctl... no
> checking for pg_config... /usr/bin/pg_config
> checking PostgreSQL version... PostgreSQL 9.1.0
> checking libpq-fe.h usability... yes
> checking libpq-fe.h presence... yes
> checking for libpq-fe.h... yes
> checking for PQserverVersion in -lpq... yes
> checking for xml2-config... /usr/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
> checking for geos-config... /usr/bin/geos-config
> checking GEOS version... 3.2.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... /usr/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... /usr/bin/ld -m elf_x86_64
> checking if the linker (/usr/bin/ld -m elf_x86_64) 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... yes
> checking whether to use NLS... yes
> checking where the gettext function comes from... libc
> 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
> TOPOLOGY: Topology support requested
> RASTER: Raster support requested
> checking for GDAL >= 1.6.0... found
> checking for GDALFPolygonize in -lgdal... no
> checking for GDAL Python bindings... found
> checking for NumPy array support in GDAL Python bindings... found
> configure: creating ./config.status
> config.status: creating GNUmakefile
> 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 raster/Makefile
> config.status: creating raster/rt_core/Makefile
> config.status: creating raster/rt_pg/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/python/Makefile
> config.status: creating postgis_config.h
> config.status: creating raster/raster_config.h
> config.status: executing libtool commands
> config.status: executing po-directories commands
> 
>   PostGIS is now configured for x86_64-unknown-linux-gnu
> 
>  -------------- Compiler Info -------------
>   C compiler:           gcc -g -O2
>   C++ compiler:         g++ -g -O2
> 
>  -------------- Dependencies --------------
>   GEOS config:          /usr/bin/geos-config
>   GEOS version:         3.2.2
>   GDAL config:          /usr/bin/gdal-config
>   GDAL version:         1.7.3
>   PostgreSQL config:    /usr/bin/pg_config
>   PostgreSQL version:   PostgreSQL 9.1.0
>   PROJ4 version:        47
>   Libxml2 config:       /usr/bin/xml2-config
>   Libxml2 version:      2.7.8
>   PostGIS debug level:  0
>  -------------- Extensions --------------
>   PostGIS Raster:       0.1.6d
>   PostGIS Topology:     0.1.1
> 
>  -------- Documentation Generation --------
>   xsltproc:
>   xsl style sheets:
>   dblatex:
>   convert:              /usr/bin/convert
> 
> nathaniel at nathan-MS-7599:/srv/gis/postgis$ make
> for s in liblwgeom libpgcommon regress postgis loader utils raster
> topology; do \
>         echo "---- Making all in ${s}"; \
>         make -C ${s} all || exit 1; \
>     done;
> ---- Making all in liblwgeom
> make[1]: Entering directory `/srv/gis/postgis/liblwgeom'
> /bin/sh ../libtool --mode=compile gcc -g -O2  -fPIC -DPIC  -Wall
> -Wmissing-prototypes -I/usr/include -DPOSTGIS_GEOS_VERSION=32
> -DPOSTGIS_PROJ_VERSION=47 -c -o stringbuffer.lo stringbuffer.c
> eval: 1: base_compile+= gcc: not found
> eval: 1: base_compile+= -g: not found
> eval: 1: base_compile+= -O2: not found
> eval: 1: base_compile+= -fPIC: not found
> eval: 1: base_compile+= -DPIC: not found
> eval: 1: base_compile+= -Wall: not found
> eval: 1: base_compile+= -Wmissing-prototypes: not found
> eval: 1: base_compile+= -I/usr/include: not found
> eval: 1: base_compile+= -DPOSTGIS_GEOS_VERSION=32: not found
> eval: 1: base_compile+= -DPOSTGIS_PROJ_VERSION=47: not found
> eval: 1: base_compile+= -c: not found
> eval: 1: CC_quoted+= gcc: not found
> eval: 1: CC_quoted+= g++: not found
> libtool: compile: you must specify a compilation command
> libtool: compile: Try `libtool --help --mode=compile' for more information.
> make[1]: *** [stringbuffer.lo] Error 1
> make[1]: Leaving directory `/srv/gis/postgis/liblwgeom'
> make: *** [all] Error 1
> nathaniel at nathan-MS-7599:/srv/gis/postgis$
> 
> Again Thanks,
> 
> Nathaniel H Clay
> 
> 
> 
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-devel

-- 

  ()   Free GIS & Flash consultant/developer
  /\   http://strk.keybit.net/services.html



More information about the postgis-devel mailing list