I have used his latest Mac binaries to load a dozen shapefiles or so and they have loaded fine.&nbsp; <br><br>I had some issues with one version back, apparently due to a problem between Posgres and PostGIS.&nbsp; Once the source was updated, he rolled a new one.&nbsp; 
<br><br>David.<br><br><div class="gmail_quote">On Dec 6, 2007 10:02 AM, John Cartwright &lt;<a href="mailto:john.c.cartwright@comcast.net">john.c.cartwright@comcast.net</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
It seemed to me that William Kyngesburye&#39;s (<a href="http://www.kyngchaos.com/" target="_blank">http://www.kyngchaos.com/</a>)<br>version worked OK, but I don&#39;t know what his compilation options were.<br><font color="#888888">
<br>-- john<br></font><div><div></div><div class="Wj3C7c"><br>Patrick Hartling wrote:<br>&gt; Yes, that is what was happening for me. Without looking at the code, I<br>&gt; had narrowed it down to some sort of argument processing problem. On
<br>&gt; my way in to the office this morning, I started wondering if it might<br>&gt; not be better to use the system-provided getopt(3) for the Mac OS X<br>&gt; case. I could not tell if that was the intention, but I will look into
<br>&gt; that as soon as I can. If I come up with something other than this<br>&gt; #include removal hack, I will post a patch.<br>&gt;<br>&gt; &nbsp;-Patrick<br>&gt;<br>&gt; On Dec 5, 2007, at 10:35 PM, John Cartwright wrote:
<br>&gt;<br>&gt;&gt; Hi Patrick,<br>&gt;&gt;<br>&gt;&gt; I think I ran into the same problem, but didn&#39;t realize what the<br>&gt;&gt; underlying issue was. &nbsp;Just found that shp2pgsql kept complaining<br>&gt;&gt; about the inability to open valid shapefiles.
<br>&gt;&gt;<br>&gt;&gt; --john<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; On Dec 5, 2007, at 9:32 AM, Patrick Hartling wrote:<br>&gt;&gt;<br>&gt;&gt;&gt; I have run into a rather perplexing problem with shp2pgsql from<br>&gt;&gt;&gt; PostGIS 
1.3.1 and 1.3.2 on Mac OS X Leopard. As far as I can tell,<br>&gt;&gt;&gt; the optarg and optind variables declared in ParseCmdline() of<br>&gt;&gt;&gt; loader/shp2pgsql.c are being linked to the globals declared in<br>&gt;&gt;&gt; 
unistd.h rather than those in loader/getopt.h. The result is that<br>&gt;&gt;&gt; references to these variables in ParseCmdline() give the wrong<br>&gt;&gt;&gt; values. Specifically, optarg is always NULL, and optind is 0 until
<br>&gt;&gt;&gt; the loop in lines 1363 through 1377.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Looking at the output from the preprocessor, optarg, optind, opterr,<br>&gt;&gt;&gt; and optopt are all &nbsp;declared twice. The first is from 
unistd.h, and<br>&gt;&gt;&gt; the second is from PostGIS&#39; loader/getopt.h. If I remove the<br>&gt;&gt;&gt; #include directive for unistd.h, shp2pgsql compiles, links, and runs<br>&gt;&gt;&gt; correctly, although there is a compiler warning saying that getopt()
<br>&gt;&gt;&gt; is not declared.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; My guess is that there is some compiler or linker option that might<br>&gt;&gt;&gt; fix this behavior, but I have not been able to determine what that<br>&gt;&gt;&gt; might be. Removing the inclusion of 
unistd.h does not seem like the<br>&gt;&gt;&gt; best fix, but it is a workaround that gets things running for me.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; -Patrick<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; --<br>&gt;&gt;&gt; Patrick L. Hartling
<br>&gt;&gt;&gt; Senior Software Engineer, Priority 5<br>&gt;&gt;&gt; <a href="http://www.priority5.com/" target="_blank">http://www.priority5.com/</a><br>&gt;&gt;&gt;<br>&gt;&gt;&gt; _______________________________________________
<br>&gt;&gt;&gt; postgis-users mailing list<br>&gt;&gt;&gt; <a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>&gt;&gt;&gt; <a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">
http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>&gt;&gt;<br>&gt;&gt; _______________________________________________<br>&gt;&gt; postgis-users mailing list<br>&gt;&gt; <a href="mailto:postgis-users@postgis.refractions.net">
postgis-users@postgis.refractions.net</a><br>&gt;&gt; <a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>&gt;<br>&gt; --
<br>&gt; Patrick L. Hartling<br>&gt; Senior Software Engineer, Priority 5<br>&gt; <a href="http://www.priority5.com/" target="_blank">http://www.priority5.com/</a><br>&gt;<br></div></div>&gt; ------------------------------------------------------------------------
<br><div><div></div><div class="Wj3C7c">&gt;<br>&gt; _______________________________________________<br>&gt; postgis-users mailing list<br>&gt; <a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net
</a><br>&gt; <a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>&gt;<br><br>_______________________________________________
<br>postgis-users mailing list<br><a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br><a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">
http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br></div></div></blockquote></div><br>