<html>
<head>
        <title></title>
        
<meta name="GENERATOR" content="MSHTML 8.00.6001.18783"></meta>
</head>

<body>
        
<div>Hallo</div>
        
<div> </div>
        
<div>I tried to compile from SVN wich has worked great before. I think the problem is <span style="FONT-FAMILY: Times New Roman">strtok_r() used in lwgeom_geos</span>, that is supposed to be found in string.h as I understand it. In my version in MinGW there is no <span style="FONT-FAMILY: Times New Roman">strtok_r() in string.h</span>, but <span style="FONT-FAMILY: Times New Roman">strtok(). <span style="FONT-FAMILY: Times New Roman">Is it a problem of versions or?</span></span></div>
        
<div><span style="FONT-FAMILY: Times New Roman"> </span></div>
        
<div><span style="FONT-FAMILY: Times New Roman">the error message is as follows when running make, starting with a warning. </span></div>
        
<div><span style="FONT-FAMILY: Times New Roman"> </span></div>
        
<div><span style="FONT-FAMILY: Times New Roman">lwgeom_geos.c: In function `buffer':<br />
                        lwgeom_geos.c:891: warning: implicit declaration of function `strtok_r'<br />
                        lwgeom_geos.c:891: warning: assignment makes pointer from integer without a cast<br />
                        lwgeom_geos.c:895: warning: assignment makes pointer from integer without a cast<br />
                        lwgeom_geos.c:900: warning: assignment makes pointer from integer without a cast<br />
                        gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv  -I/c/pg84/include -I/c/proj/include -I../liblwgeom -I. -Ic:/pg84/include/POSTGR~1/server -Ic:/pg84/include/POSTGR~1/internal -I./src/include/port/win32 -DEXEC_BACKEND  "-Ic:/pg84/lib/POSTGR~1/pgxs/src/MAKEFI~1/../../src/include/port/win32" -Ic:/pg84/include/POSTGR~1/server/port/win32  -c -o lwgeom_geos_prepared.o lwgeom_geos_prepared.c<br />
                        gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv  -I/c/pg84/include -I/c/proj/include -I../liblwgeom -I. -Ic:/pg84/include/POSTGR~1/server -Ic:/pg84/include/POSTGR~1/internal -I./src/include/port/win32 -DEXEC_BACKEND  "-Ic:/pg84/lib/POSTGR~1/pgxs/src/MAKEFI~1/../../src/include/port/win32" -Ic:/pg84/include/POSTGR~1/server/port/win32  -c -o lwgeom_svg.o lwgeom_svg.c<br />
                        gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv  -I/c/pg84/include -I/c/proj/include -I../liblwgeom -I. -Ic:/pg84/include/POSTGR~1/server -Ic:/pg84/include/POSTGR~1/internal -I./src/include/port/win32 -DEXEC_BACKEND  "-Ic:/pg84/lib/POSTGR~1/pgxs/src/MAKEFI~1/../../src/include/port/win32" -Ic:/pg84/include/POSTGR~1/server/port/win32  -c -o lwgeom_gml.o lwgeom_gml.c<br />
                        gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv  -I/c/pg84/include -I/c/proj/include -I../liblwgeom -I. -Ic:/pg84/include/POSTGR~1/server -Ic:/pg84/include/POSTGR~1/internal -I./src/include/port/win32 -DEXEC_BACKEND  "-Ic:/pg84/lib/POSTGR~1/pgxs/src/MAKEFI~1/../../src/include/port/win32" -Ic:/pg84/include/POSTGR~1/server/port/win32  -c -o lwgeom_kml.o lwgeom_kml.c<br />
                        gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv  -I/c/pg84/include -I/c/proj/include -I../liblwgeom -I. -Ic:/pg84/include/POSTGR~1/server -Ic:/pg84/include/POSTGR~1/internal -I./src/include/port/win32 -DEXEC_BACKEND  "-Ic:/pg84/lib/POSTGR~1/pgxs/src/MAKEFI~1/../../src/include/port/win32" -Ic:/pg84/include/POSTGR~1/server/port/win32  -c -o lwgeom_geojson.o lwgeom_geojson.c<br />
                        gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv  -I/c/pg84/include -I/c/proj/include -I../liblwgeom -I. -Ic:/pg84/include/POSTGR~1/server -Ic:/pg84/include/POSTGR~1/internal -I./src/include/port/win32 -DEXEC_BACKEND  "-Ic:/pg84/lib/POSTGR~1/pgxs/src/MAKEFI~1/../../src/include/port/win32" -Ic:/pg84/include/POSTGR~1/server/port/win32  -c -o lwgeom_triggers.o lwgeom_triggers.c<br />
                        gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv  -I/c/pg84/include -I/c/proj/include -I../liblwgeom -I. -Ic:/pg84/include/POSTGR~1/server -Ic:/pg84/include/POSTGR~1/internal -I./src/include/port/win32 -DEXEC_BACKEND  "-Ic:/pg84/lib/POSTGR~1/pgxs/src/MAKEFI~1/../../src/include/port/win32" -Ic:/pg84/include/POSTGR~1/server/port/win32  -c -o lwgeom_dump.o lwgeom_dump.c<br />
                        gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv  -I/c/pg84/include -I/c/proj/include -I../liblwgeom -I. -Ic:/pg84/include/POSTGR~1/server -Ic:/pg84/include/POSTGR~1/internal -I./src/include/port/win32 -DEXEC_BACKEND  "-Ic:/pg84/lib/POSTGR~1/pgxs/src/MAKEFI~1/../../src/include/port/win32" -Ic:/pg84/include/POSTGR~1/server/port/win32  -c -o lwgeom_functions_lrs.o lwgeom_functions_lrs.c<br />
                        gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv  -I/c/pg84/include -I/c/proj/include -I../liblwgeom -I. -Ic:/pg84/include/POSTGR~1/server -Ic:/pg84/include/POSTGR~1/internal -I./src/include/port/win32 -DEXEC_BACKEND  "-Ic:/pg84/lib/POSTGR~1/pgxs/src/MAKEFI~1/../../src/include/port/win32" -Ic:/pg84/include/POSTGR~1/server/port/win32  -c -o long_xact.o long_xact.c<br />
                        gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv  -I/c/pg84/include -I/c/proj/include -I../liblwgeom -I. -Ic:/pg84/include/POSTGR~1/server -Ic:/pg84/include/POSTGR~1/internal -I./src/include/port/win32 -DEXEC_BACKEND  "-Ic:/pg84/lib/POSTGR~1/pgxs/src/MAKEFI~1/../../src/include/port/win32" -Ic:/pg84/include/POSTGR~1/server/port/win32  -c -o lwgeom_sqlmm.o lwgeom_sqlmm.c<br />
                        gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv  -I/c/pg84/include -I/c/proj/include -I../liblwgeom -I. -Ic:/pg84/include/POSTGR~1/server -Ic:/pg84/include/POSTGR~1/internal -I./src/include/port/win32 -DEXEC_BACKEND  "-Ic:/pg84/lib/POSTGR~1/pgxs/src/MAKEFI~1/../../src/include/port/win32" -Ic:/pg84/include/POSTGR~1/server/port/win32  -c -o lwgeom_rtree.o lwgeom_rtree.c<br />
                        dlltool --export-all  --output-def libpostgis-1.5dll.def lwgeom_pg.o lwgeom_debug.o lwgeom_accum.o lwgeom_spheroid.o lwgeom_ogc.o lwgeom_functions_analytic.o lwgeom_inout.o lwgeom_estimate.o lwgeom_functions_basic.o lwgeom_gist.o lwgeom_btree.o lwgeom_transform.o lwgeom_box.o lwgeom_box3d.o lwgeom_box2dfloat4.o lwgeom_chip.o lwgeom_geos.o lwgeom_geos_prepared.o lwgeom_svg.o lwgeom_gml.o lwgeom_kml.o lwgeom_geojson.o lwgeom_triggers.o lwgeom_dump.o lwgeom_functions_lrs.o long_xact.o lwgeom_sqlmm.o lwgeom_rtree.o<br />
                        dllwrap  -o postgis-1.5.dll --dllname postgis-1.5.dll  --def libpostgis-1.5dll.def lwgeom_pg.o lwgeom_debug.o lwgeom_accum.o lwgeom_spheroid.o lwgeom_ogc.o lwgeom_functions_analytic.o lwgeom_inout.o lwgeom_estimate.o lwgeom_functions_basic.o lwgeom_gist.o lwgeom_btree.o lwgeom_transform.o lwgeom_box.o lwgeom_box3d.o lwgeom_box2dfloat4.o lwgeom_chip.o lwgeom_geos.o lwgeom_geos_prepared.o lwgeom_svg.o lwgeom_gml.o lwgeom_kml.o lwgeom_geojson.o lwgeom_triggers.o lwgeom_dump.o lwgeom_functions_lrs.o long_xact.o lwgeom_sqlmm.o lwgeom_rtree.o -Lc:/pg84/lib -lpostgres -L/c/pg84/lib -L/c/proj/lib -Lc:/pg84/lib -lgeos_c -lproj ../liblwgeom/liblwgeom.a <br />
                        lwgeom_geos.o:lwgeom_geos.c:(.text+0x3624): undefined reference to `strtok_r'<br />
                        lwgeom_geos.o:lwgeom_geos.c:(.text+0x3644): undefined reference to `strtok_r'<br />
                        lwgeom_geos.o:lwgeom_geos.c:(.text+0x3667): undefined reference to `strtok_r'<br />
                        collect2: ld returned 1 exit status<br />
                        c:\mingw\bin\dllwrap.exe: c:\mingw\bin\gcc exited with status 1<br />
                        make[1]: *** [postgis-1.5.dll] Error 1<br />
                        make[1]: Leaving directory `/c/thesrc/pg15/postgis'<br />
                        make: *** [postgis] Error 2<br />
                        </span></div>
</body>
</html>