Opened 10 years ago

Closed 9 years ago

#3027 closed defect (fixed)

Compile error in osm2pgsql on osx 10.6

Reported by: Dane Springmeyer Owned by: jburgess777@…
Priority: major Milestone:
Component: osm2pgsql Version:
Keywords: osm2pgsql Cc:


I appears osm2pgsql compilation has been broken on osx since:

This patch:

  • middle-pgsql.c

    1111#include <stdlib.h>
    1212#include <string.h>
    1313#include <assert.h>
    14 #include <malloc.h>
     14#include <malloc/malloc.h>
    1616#ifdef HAVE_PTHREAD
    1717#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

Change History (3)

comment:1 Changed 10 years ago by Tom Hughes

Component: adminutils
Owner: changed from Tom Hughes to jburgess777@…

comment:2 Changed 9 years ago by Tom Hughes

Component: utilsosm2pgsql

comment:3 Changed 9 years ago by amm

Resolution: fixed
Status: newclosed

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.

Note: See TracTickets for help on using tickets.