Giter VIP home page Giter VIP logo

Comments (7)

lonvia avatar lonvia commented on August 22, 2024 1

I've disabled the offending macros for now.

Looks like the m4 version on centos is too old for the ax_cflags_warn_all macro. Interestingly, the version of the macro that ships with centos causes the same error.

from osm2pgsql.

vsayer avatar vsayer commented on August 22, 2024

7a09ca3 introduced this regression. 0cb6bc9 is the last good version. At 7a09ca3, the code was moved to ANSI C standard.

from osm2pgsql.

itavy avatar itavy commented on August 22, 2024

thank you for reply. i run the script under fedora 17 and after that i configured and compiled under centos where i needed it without any problem.

from osm2pgsql.

henryseron avatar henryseron commented on August 22, 2024

Hi, I'm installing osm2gsql on centos 6.6 and I have this same problem, how can I fix it? I disabled WARN_ALL macros according to hholzgra@f710045 but did not work.
Thanks.

from osm2pgsql.

pnorman avatar pnorman commented on August 22, 2024

Hi, I'm installing osm2gsql on centos 6.6 and I have this same problem, how can I fix it?

Try doing git clean -xfd and disabling the warning macros. If that doesn't fix it, build your own autotools and/or m4, do git clean and instead of running autogen.sh, run each command in it individually, making sure to use the new versions.

Once you get autogen.sh working, you will run into problems with a few default versions of requirements that come with Centos 6.

  • You need a C++11 compiler. Centos 6 pre-dates C++11, so you'll need an appropriate version of GCC (4.8) or clang (3.4).
  • The version of Boost on Centos is similarly ancient
  • The version of GEOS included will probably compile, but may produce more errors than a recent version
  • If you're running the database server on Centos, you should probably build your on PostgreSQL + PostGIS, as I believe the versions of both that come with Centos 6 are end of life
  • The Protocol Buffers version is probably too old too

Something called "devtoolset-2" may help with some components.

If using a RPM based distribution, I strongly recommend Fedora, or if you need Centos, Centos 7 might be recent enough to avoid some of this work.

If you must use Centos 6, it is possible to compile recent versions of what you need, and osm2pgsql should work then. This is actually not much additional burden, because if you're using Centos you will need to do this anyways for the dependencies of virtually every other component of a tile rendering server.

from osm2pgsql.

pnorman avatar pnorman commented on August 22, 2024

You might also find 0.86.0 easier to work with as its the old C version.

from osm2pgsql.

henryseron avatar henryseron commented on August 22, 2024

Thanks pnorman for your help, it was so helpful. I followed your advise and then I can ran autogen.sh without warnings or error.

Thanks a lot.

from osm2pgsql.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.