Hi,<br><br>In my case (Msys/Mingw under Windows 7 32bit), no error was presented, and the object a.exe was generated.<br><br>My env:<br><br>Tiedtke@Tiedtke-Note ~<br>$ gcc -v<br>Using built-in specs.<br>COLLECT_GCC=C:\MinGW\bin\gcc.exe<br>
COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/4.7.0/lto-wrapper.exe<br>Target: mingw32<br>Configured with: ../gcc-4.7.0/configure --enable-languages=c,c++,ada,fortran,obj<br>c,obj-c++ --disable-sjlj-exceptions --with-dwarf2 --enable-shared --enable-libgo<br>
mp --disable-win32-registry --enable-libstdcxx-debug --disable-build-poststage1-<br>with-cxx --enable-version-specific-runtime-libs --build=mingw32 --prefix=/mingw<br>Thread model: win32<br>gcc version 4.7.0 (GCC)<br><br>
Regards,<br><br>Tiedtke<br><br><br><div class="gmail_quote">2012/10/18 Umberto Nicoletti <span dir="ltr"><<a href="mailto:umberto.nicoletti@gmail.com" target="_blank">umberto.nicoletti@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><span style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">Could you try to compile the following code:</span><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
<br></div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">/* begin */</div></div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif"><div class="im">
<div>int</div><div>main ()</div><div>{</div><div>int x;__sync_fetch_and_add(&x,1);</div><div> ;</div><div> return 0;</div><div>}</div><div><div>/* end */</div><div></div></div><div><br></div><div>How to compile: save to test.c and then run:</div>
<div><br></div><div>gcc test.c</div><div><br></div></div><div>Best regards,</div><div>Umberto</div></div><br><div class="gmail_quote"><div class="im">On Thu, Oct 18, 2012 at 1:01 PM, Thiago Tiedtke dos Reis <span dir="ltr"><<a href="mailto:tiedtke@gmail.com" target="_blank">tiedtke@gmail.com</a>></span> wrote:<br>
</div><div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p>Hi,</p>
<p>I having the same problem when trying to compile the mapserver with msys/mingw under Ms windows 7 32bit.</p>
<p>Regards,</p>
<p>Thiago Tiedtke dos Reis</p>
<div class="gmail_quote">Em 17/10/2012 14:32, "Umberto Nicoletti" <<a href="mailto:umberto.nicoletti@gmail.com" target="_blank">umberto.nicoletti@gmail.com</a>> escreveu:<div><div><br type="attribution">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<p dir="ltr">David,<br>
what is your os/platform?</p>
<p dir="ltr">On Oct 17, 2012 6:30 PM, "David Quinn" <<a href="mailto:daithiquinn@gmail.com" target="_blank">daithiquinn@gmail.com</a>> wrote:<br>
><br>
> Hello List,<br>
><br>
> I'm getting the following error when I try to compile mapserver-6.2.0-rc1<br>
><br>
> $make<br>
> /bin/sh ./libtool --mode=link --tag=CXX g++ -rpath /home/david/lib<br>
> shp2img.lo <a href="http://libmapserver.la" target="_blank">libmapserver.la</a> -o shp2img<br>
> libtool: link: g++ .libs/shp2img.o -o .libs/shp2img<br>
> ./.libs/libmapserver.so -L/home/david/lib /home/david/lib/libgd.so<br>
> -L/usr/lib /home/david/lib/libproj.so /home/david/lib/libgdal.so<br>
> -L/home/david -L/usr/kerberos/lib /usr/lib/libexpat.so<br>
> /home/david/lib/libgif.so /home/david/lib/libcurl.so<br>
> /home/david/lib/libgeos_c.so /home/david/lib/libgeos.so<br>
> /home/david/lib/libxml2.so /home/david/lib/libfreetype.so<br>
> -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lcairo -lXpm -lfontconfig<br>
> -lpng12 -lsqlite3 -lodbc -lodbcinst -ljpeg -lpng -lpq -lpthread -lSM<br>
> -lICE -lX11 -lidn -lldap -lrt -lssl -lcrypto -ldl -lz -lbz2 -Wl,-rpath<br>
> -Wl,/home/david/lib<br>
> ./.libs/libmapserver.so: undefined reference to `__sync_sub_and_fetch_4'<br>
> collect2: ld returned 1 exit status<br>
> make: *** [shp2img] Error 1<br>
><br>
> I originally got this error message: /usr/bin/ld: warning:<br>
> libcurl.so.3, needed by /home/david/lib/libgdal.so, may conflict with<br>
> libcurl.so.4 so I installed gdal from trunk, and reinstalled freetype,<br>
> giflib and libcurl<br>
><br>
> I've also attached the output from my ./configure command:<br>
><br>
><br>
> -------------- Compiler Info -------------<br>
> C compiler: gcc -g -Wall -Wdeclaration-after-statement<br>
> C++ compiler: g++ -g -Wall<br>
> Debug: -g<br>
> Generic NINT:<br>
><br>
> -------------- Renderer Settings ---------<br>
> OpenGL support:<br>
> zlib support:<br>
> png support: -DUSE_PNG<br>
> gif support: -DUSE_GIF<br>
> jpeg support: -DUSE_JPEG<br>
> freetype support: -DUSE_FREETYPE<br>
> iconv support: -DUSE_ICONV<br>
> AGG support: internal<br>
> GD support: -DUSE_GD -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_GIF<br>
> Cairo (SVG,PDF) support: -DUSE_CAIRO<br>
> Cairo SVG symbol support:<br>
> KML support: -DUSE_KML<br>
><br>
> -------------- Support Libraries ---------<br>
> Proj.4 support: -DUSE_PROJ<br>
> Proj Fastpaths:<br>
> Libxml2 support: -DUSE_LIBXML2<br>
> FriBidi support:<br>
> Curl support: -DUSE_CURL -DUSE_CURLOPT_PROXYAUTH<br>
> FastCGI support:<br>
> Exempi support:<br>
> Threading support:<br>
> GEOS support: -DUSE_GEOS<br>
> XML Mapfile support:<br>
> XSLT support:<br>
> EXSLT support:<br>
><br>
> -------------- Data Format Drivers -------<br>
> PostGIS support: -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION<br>
> ArcSDE support:<br>
> OGR support: -DUSE_OGR<br>
> GDAL support: -DUSE_GDAL<br>
> Oracle Spatial support:<br>
><br>
> -------------- OGC Services --------------<br>
> WMS Server: -DUSE_WMS_SVR<br>
> WMS Client: -DUSE_WMS_LYR<br>
> WFS Server: -DUSE_WFS_SVR<br>
> WFS Client: -DUSE_WFS_LYR<br>
> WCS Server: -DUSE_WCS_SVR<br>
> SOS Server:<br>
><br>
> -------------- MapScript -----------------<br>
> PHP MapScript: yes<br>
> Python MapScript: no<br>
><br>
> -David<br>
> _______________________________________________<br>
> mapserver-users mailing list<br>
> <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</p>
<br>_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
<br></blockquote></div></div></div>
</blockquote></div></div></div><br>
<br>_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
<br></blockquote></div><br>