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

Compile error in osm2pgsql on osx 10.6 #3027

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 1 comment
Closed

Compile error in osm2pgsql on osx 10.6 #3027

openstreetmap-trac opened this issue Jul 23, 2021 · 1 comment

Comments

@openstreetmap-trac
Copy link

Reporter: springmeyer
[Submitted to the original trac issue database at 9.09pm, Tuesday, 1st June 2010]

I appears osm2pgsql compilation has been broken on osx since:

http://trac.openstreetmap.org/changeset/21290/applications/utils/export/osm2pgsql/middle-pgsql.c

This patch:

Index: middle-pgsql.c
===================================================================
--- middle-pgsql.c	(revision 21558)
+++ middle-pgsql.c	(working copy)
@@ -11,7 +11,7 @
 #include <stdlib.h>
 #include <string.h>
 #include <assert.h>
-#include <malloc.h>
+#include <malloc/malloc.h>
 
 #ifdef HAVE_PTHREAD
 #include <pthread.h>

... fixes this error:

gcc  -g -O2 -Wall -Wextra -I/usr/include/libxml2 -I/usr/local/Cellar/geos/3.2.2/include -I/usr/local/Cellar/postgresql/8.4.4/include -DVERSION=\"0.69-21558\" -DHAVE_PTHREAD -DOSM2PGSQL_DATADIR=\"/usr/local/share/osm2pgsql\"   -c -o middle-pgsql.o middle-pgsql.c
middle-pgsql.c:14:20: error: malloc.h: No such file or directory
make: *** [middle-pgsql.o] Error 1
@openstreetmap-trac
Copy link
Author

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

malloc.h is no longer included. So I presume for the moment that this bug is fixed. If not, please reopen or file a new report.

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