Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

osm2pgsql: missing include #3988

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 2 comments
Closed

osm2pgsql: missing include #3988

openstreetmap-trac opened this issue Jul 23, 2021 · 2 comments

Comments

@openstreetmap-trac
Copy link

Reporter: amdmi3[at]amdmi3.ru
[Submitted to the original trac issue database at 4.02pm, Monday, 29th August 2011]

At least on MacOSX Lion:


/usr/bin/cc -std=gnu99 -DHAVE_CONFIG_H -I. -D_THREAD_SAFE -pthread -I/usr/local/Cellar/postgresql/9.0.4/include -I/usr/include/libxml2 -I/usr/include -I/usr/local/Cellar/geos/3.3.0/include -I/usr/local/include -DOSM2PGSQL_DATADIR='"/usr/local/share/osm2pgsql"' -Igeos-fallback -D_THREAD_SAFE -pthread -I/usr/local/Cellar/postgresql/9.0.4/include -I/usr/include/libxml2 -I/usr/include -I/usr/local/Cellar/geos/3.3.0/include -I/usr/local/include -DOSM2PGSQL_DATADIR='"/usr/local/share/osm2pgsql"' -DVERSION='"0.80.0"' -O3 -march=core2 -msse4.1 -w -pipe -MT keyvals.o -MD -MP -MF .deps/keyvals.Tpo -c -o keyvals.o keyvals.c
In file included from middle.h:10,
from output.h:13,
from expire-tiles.h:4,
from expire-tiles.c:16:
osmtypes.h:45: error: expected specifier-qualifier-list before time_t
make[2]: *** [expire-tiles.o] Error 1

See: Homebrew/legacy-homebrew#6399 (comment)

Reported to be fixed by adding #include <time.h> into osmtypes.h:

AMDmi3/osm2pgsql@aa7fa00

@openstreetmap-trac
Copy link
Author

Author: amm
[Added to the original trac issue at 6.55pm, Sunday, 25th September 2011]

I have committed the patch. If the problem is fixed for you, could you please mark the bug as closed?

@openstreetmap-trac
Copy link
Author

Author: amm
[Added to the original trac issue at 10.56pm, Saturday, 27th October 2012]

As there was no further activity, closing

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant