You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.
Reporter: chris[at]thinkit.ca [Submitted to the original trac issue database at 9.20am, Monday, 27th August 2012]
Trying to compile osm2pgsql on OSX 10.7.4. Tried using Homebrew, as while as compiling from source with XCode 4.4.1 and Command Line tools installed and run into the same issues, as homebrew compiles from --HEAD. I've even added the following to middle_pgsql.c which only leads to other issues (see below):
make
make all-recursive
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -D_THREAD_SAFE -pthread -I/usr/include -I/usr/include/libxml2 -I/usr/include -I/usr/local/Cellar/geos/3.3.5/include -I/usr/local/include -DOSM2PGSQL_DATADIR='"/usr/local/share/osm2pgsql"' -Igeos-fallback -D_THREAD_SAFE -pthread -I/usr/include -I/usr/include/libxml2 -I/usr/include -I/usr/local/Cellar/geos/3.3.5/include -I/usr/local/include -I/usr/local/include -DOSM2PGSQL_DATADIR='"/usr/local/share/osm2pgsql"' -DVERSION='"0.80.0"' -g -O2 -MT node-persistent-cache.o -MD -MP -MF .deps/node-persistent-cache.Tpo -c -o node-persistent-cache.o node-persistent-cache.c
node-persistent-cache.c: In function wait_for_outstanding_io:
node-persistent-cache.c:63: warning: implicit declaration of function aio_error64
node-persistent-cache.c:90: warning: implicit declaration of function aio_suspend64
node-persistent-cache.c: In function writeout_dirty_nodes:
node-persistent-cache.c:113: warning: implicit declaration of function lseek64
node-persistent-cache.c: In function persistent_cache_nodes_prefetch_async:
node-persistent-cache.c:296: error: invalid application of sizeof to incomplete type struct aiocb64
node-persistent-cache.c:297: error: dereferencing pointer to incomplete type
node-persistent-cache.c:298: error: dereferencing pointer to incomplete type
node-persistent-cache.c:302: error: dereferencing pointer to incomplete type
node-persistent-cache.c:304: error: dereferencing pointer to incomplete type
node-persistent-cache.c:306: error: dereferencing pointer to incomplete type
node-persistent-cache.c:308: warning: implicit declaration of function aio_write64
node-persistent-cache.c:319: error: invalid application of sizeof to incomplete type struct aiocb64
node-persistent-cache.c:321: error: dereferencing pointer to incomplete type
node-persistent-cache.c:322: error: dereferencing pointer to incomplete type
node-persistent-cache.c:325: error: dereferencing pointer to incomplete type
node-persistent-cache.c:327: error: dereferencing pointer to incomplete type
node-persistent-cache.c:329: error: dereferencing pointer to incomplete type
node-persistent-cache.c:332: warning: implicit declaration of function aio_read64
node-persistent-cache.c: In function init_node_persistent_cache:
node-persistent-cache.c:657: warning: implicit declaration of function posix_fallocate
make[2]: *** [node-persistent-cache.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
The text was updated successfully, but these errors were encountered:
Author: amm [Added to the original trac issue at 3.47am, Tuesday, 28th August 2012]
SVN revision 28646 improved the configure scripts to check for the functions that aren't available on mac osx and either defined the missing function to alternatives or disabled the optional functionality
Reporter: chris[at]thinkit.ca
[Submitted to the original trac issue database at 9.20am, Monday, 27th August 2012]
Trying to compile osm2pgsql on OSX 10.7.4. Tried using Homebrew, as while as compiling from source with XCode 4.4.1 and Command Line tools installed and run into the same issues, as homebrew compiles from --HEAD. I've even added the following to middle_pgsql.c which only leads to other issues (see below):
Results:
After adding ifdefs:
The text was updated successfully, but these errors were encountered: