Re: [mapserver-users] compiling error core.c in mapcache with cygwin
Sorry for bumping this old thread, but any chances to get support in order to change core.c so mapcache can work in cygwin without (apr) threads enabled? would you have a core.c patched version? Thanks for any pointers. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/compiling-error-core-c-in-mapcache-with-cygwin-tp5179881p5184927.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] compiling error core.c in mapcache with cygwin
Thanks Thomas, I just got an email from the Cygwin mailing list saying that threads were not enabled in the APR library because the unit tests didn't pass with them, so that's the problem as you pointed out. I'd like to hack the mapcache codebase but no idea how to start hacking it to get it working without threads, but if you could give me some hints such as what files are involved (I imagine only core.c), which sections/lines would be involved, sure I could do it, I'd appreciate it. If I get that working, sure other people can test that in Cygwin and your audience will eventually increase :) Gery Sent from my iRon On Jan 10, 2015, at 19:02, thomas bonfort [via OSGeo.org] ml-node+s1560n5180958...@n6.nabble.com wrote: From http://mail-archives.apache.org/mod_mbox/apr-dev/201209.mbox/%3C4994179EC7ED6843AAB0A30A1639E7F825143612EF@...%3E it would seem that threads are not supported by Apr on cygwin. Currently mapcache does not support unthreaded environments so there's nothing you can do without hacking the mapcache codebase. I believe the change would not be very extensive as the source WMS fetches only need to be sequentialized instead of parralelized in core.c Thomas. On Jan 11, 2015 7:50 AM, thomas bonfort [hidden email] wrote: What apr version are you using? On Jan 3, 2015 10:15 PM, Gery . [hidden email] wrote: Hello, When installing mapcache in cygwin, `make` produced: /opt/mapcache/mapcache-rel-1-2-1/lib/core.c: In function ‘mapcache_prefetch_tiles’: /opt/mapcache/mapcache-rel-1-2-1/lib/core.c:81:3: error: unknown type name ‘apr_thread_t’ apr_thread_t **threads; ^ /opt/mapcache/mapcache-rel-1-2-1/lib/core.c:82:3: error: unknown type name ‘apr_threadattr_t’ apr_threadattr_t *thread_attrs; ^ /opt/mapcache/mapcache-rel-1-2-1/lib/core.c:83:7: warning: unused variable ‘nthreads’ [-Wunused-variable] int nthreads; ^ /opt/mapcache/mapcache-rel-1-2-1/lib/core.c:82:21: warning: unused variable ‘thread_attrs’ [-Wunused-variable] apr_threadattr_t *thread_attrs; ^ /opt/mapcache/mapcache-rel-1-2-1/lib/core.c:81:18: warning: unused variable ‘threads’ [-Wunused-variable] apr_thread_t **threads; ^ I searched for some hints about this error but didn't find anything. Looking for `apr_thread_t` and cygwin, I found some pages pointing to an error with apache, but not really sure if apache has something to do here. thanks for any hints on this, Gery ___ mapserver-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/mapserver-users If you reply to this email, your message will be added to the discussion below: http://osgeo-org.1560.x6.nabble.com/compiling-error-core-c-in-mapcache-with-cygwin-tp5179881p5180958.html To unsubscribe from compiling error core.c in mapcache with cygwin, click here. NAML -- View this message in context: http://osgeo-org.1560.x6.nabble.com/compiling-error-core-c-in-mapcache-with-cygwin-tp5179881p5181004.html Sent from the Mapserver - User mailing list archive at Nabble.com.___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] compiling error core.c in mapcache with cygwin
sorry for bumping this post, but any clues about this issue with core.c? any ideas how to solve this core.c error message with the cygwin details I previously posted? It'd be great your support on this, thanks in advance. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/compiling-error-core-c-in-mapcache-with-cygwin-tp5179881p5180931.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] compiling error core.c in mapcache with cygwin
On 01/10/2015 08:23 AM, Gery wrote: sorry for bumping this post, but any clues about this issue with core.c? any ideas how to solve this core.c error message with the cygwin details I previously posted? It'd be great your support on this, thanks in advance. Sorry, no idea. If you wanted to check some things: near the top of core.c, there are probably includes for apr. You could make sure they are actually included for cygwin (ifdef's for example). (It could also be in core.h if there is one) You could also make sure you dont have any duplicate apr headers. Maybe one of your headers has the same name as one of theirs and your's is being included instead of the apr one. Maybe old copies of apr headers lying around? Does cygwin apr even support threads? Maybe a quick test.c that includes apr and tries to use apr_thread_t might help. -Andy ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] compiling error core.c in mapcache with cygwin
I found a simple c test here: http://dev.ariel-networks.com/apr/apr-tutorial/html/apr-tutorial-16.html links to the test .c here: http://dev.ariel-networks.com/apr/apr-tutorial/sample/thread-sample.c I compiled it with: gcc -Wall $(apr-1-config --cflags --cppflags --includes --link-ld) thread-sample.c and ./a.out ran fine. (I'm on slackware linux though. I don't have a windows box handy) -Andy ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] compiling error core.c in mapcache with cygwin
What apr version are you using? On Jan 3, 2015 10:15 PM, Gery . gameji...@hotmail.com wrote: Hello, When installing mapcache in cygwin, `make` produced: /opt/mapcache/mapcache-rel-1-2-1/lib/core.c: In function ‘mapcache_prefetch_tiles’: /opt/mapcache/mapcache-rel-1-2-1/lib/core.c:81:3: error: unknown type name ‘apr_thread_t’ apr_thread_t **threads; ^ /opt/mapcache/mapcache-rel-1-2-1/lib/core.c:82:3: error: unknown type name ‘apr_threadattr_t’ apr_threadattr_t *thread_attrs; ^ /opt/mapcache/mapcache-rel-1-2-1/lib/core.c:83:7: warning: unused variable ‘nthreads’ [-Wunused-variable] int nthreads; ^ /opt/mapcache/mapcache-rel-1-2-1/lib/core.c:82:21: warning: unused variable ‘thread_attrs’ [-Wunused-variable] apr_threadattr_t *thread_attrs; ^ /opt/mapcache/mapcache-rel-1-2-1/lib/core.c:81:18: warning: unused variable ‘threads’ [-Wunused-variable] apr_thread_t **threads; ^ I searched for some hints about this error but didn't find anything. Looking for `apr_thread_t` and cygwin, I found some pages pointing to an error with apache, but not really sure if apache has something to do here. thanks for any hints on this, Gery ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] compiling error core.c in mapcache with cygwin
From http://mail-archives.apache.org/mod_mbox/apr-dev/201209.mbox/%3c4994179ec7ed6843aab0a30a1639e7f82514361...@dgex2v.dg.deltagroup.com%3E it would seem that threads are not supported by Apr on cygwin. Currently mapcache does not support unthreaded environments so there's nothing you can do without hacking the mapcache codebase. I believe the change would not be very extensive as the source WMS fetches only need to be sequentialized instead of parralelized in core.c Thomas. On Jan 11, 2015 7:50 AM, thomas bonfort thomas.bonf...@gmail.com wrote: What apr version are you using? On Jan 3, 2015 10:15 PM, Gery . gameji...@hotmail.com wrote: Hello, When installing mapcache in cygwin, `make` produced: /opt/mapcache/mapcache-rel-1-2-1/lib/core.c: In function ‘mapcache_prefetch_tiles’: /opt/mapcache/mapcache-rel-1-2-1/lib/core.c:81:3: error: unknown type name ‘apr_thread_t’ apr_thread_t **threads; ^ /opt/mapcache/mapcache-rel-1-2-1/lib/core.c:82:3: error: unknown type name ‘apr_threadattr_t’ apr_threadattr_t *thread_attrs; ^ /opt/mapcache/mapcache-rel-1-2-1/lib/core.c:83:7: warning: unused variable ‘nthreads’ [-Wunused-variable] int nthreads; ^ /opt/mapcache/mapcache-rel-1-2-1/lib/core.c:82:21: warning: unused variable ‘thread_attrs’ [-Wunused-variable] apr_threadattr_t *thread_attrs; ^ /opt/mapcache/mapcache-rel-1-2-1/lib/core.c:81:18: warning: unused variable ‘threads’ [-Wunused-variable] apr_thread_t **threads; ^ I searched for some hints about this error but didn't find anything. Looking for `apr_thread_t` and cygwin, I found some pages pointing to an error with apache, but not really sure if apache has something to do here. thanks for any hints on this, Gery ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] compiling error core.c in mapcache with cygwin
Andy Colson wrote You need the Apache Portable Runtime library. Its a generic lib, not the webserver.This gives an overview of all the area's it covers:http://apr.apache.org/docs/apr/1.4/modules.html Thanks Andy for the reply, I do have apr, no idea if it's the generic lib or webserver one but they are 1.4 version:Gery@gery /opt/mapcache/mapcache-rel-1-2-1/build$ cygcheck -c | grep aprapr1 1.4.8-1 OKaprutil1 1.5.4-1 OKlibapr1 1.4.8-1 OKlibapr1-debuginfo 1.4.8-1 OKlibapr1-devel 1.4.8-1 OKlibaprutil1 1.5.4-1 OKlibaprutil1-debuginfo 1.5.4-1 OKlibaprutil1-devel 1.5.4-1 OKBased on Stephen's answer (http://stackoverflow.com/questions/27755442/compiling-error-core-c-in-mapcache-with-cygwin), I should compile mapcache only as cgi (ie., no apache module), so I used:cmake .. -DCMAKE_LEGACY_CYGWIN_WIN32=0 -DWITH_SQLITE=0 -DWITH_MAPSERVER=1 -DMAPSERVER_LIBRARY=/opt/mapserver/mapserver-6.4.1/build/libmapserver.dll.a -DCMAKE_PREFIX_PATH=/opt/mapserver/mapserver-6.4.1; -DWITH_APACHE=0but I get the same error pointing to core.c. I used mapserver flags to use cgi as explained by Pablo's post (http://lists.osgeo.org/pipermail/mapserver-users/2013-September/075296.html).So, after cmake I get:Gery@gery /opt/mapcache/mapcache-rel-1-2-1/build$ cmake .. -DCMAKE_LEGACY_CYGWIN_WIN32=0 -DWITH_SQLITE=0 -DWITH_MAPSERVER=1 -DMAPSERVER_LIBRARY=/opt/mapserver/mapserver-6.4.1/build/libmapserver.dll.a -DCMAKE_PREFIX_PATH=/opt/mapserver/mapserver-6.4.1; -DWITH_APACHE=0-- The C compiler identification is GNU 4.8.3-- The CXX compiler identification is GNU 4.8.3-- Check for working C compiler: /usr/bin/gcc.exe-- Check for working C compiler: /usr/bin/gcc.exe -- works-- Detecting C compiler ABI info-- Detecting C compiler ABI info - done-- Check for working CXX compiler: /usr/bin/c++.exe-- Check for working CXX compiler: /usr/bin/c++.exe -- works-- Detecting CXX compiler ABI info-- Detecting CXX compiler ABI info - done-- Looking for strncasecmp-- Looking for strncasecmp - found-- Looking for symlink-- Looking for symlink - found-- Found ZLIB: /usr/lib/libz.dll.a (found version 1.2.8)-- Found PNG: /usr/lib/libpng.dll.a (found version 1.5.18)-- Found JPEG: /usr/lib/libjpeg.dll.a-- Found CURL: /usr/lib/libcurl.dll.a (found version 7.38.0)-- Found APR: /usr/lib/libapr-1.dll.a-- Found APU: /usr/lib/libaprutil-1.dll.a-- Found PkgConfig: /usr/bin/pkg-config.exe (found version 0.28)-- checking for module 'pixman'-- package 'pixman' not found-- checking for module 'pixman-1'-- found pixman-1, version 0.32.4-- Found PIXMAN: /usr/lib/libpixman-1.dll.a-- Found MAPSERVER: /opt/mapserver/mapserver-6.4.1/build/libmapserver.dll.a-- * Configured options for the mapcache library-- * Mandatory components-- * png: /usr/lib/libpng.dll.a-- * jpeg: /usr/lib/libjpeg.dll.a-- * Curl: /usr/lib/libcurl.dll.a-- * Apr: /usr/lib/libapr-1.dll.a-- * Optional components-- * PIXMAN: /usr/lib/libpixman-1.dll.a-- * SQLITE: disabled-- * Berkeley DB: disabled-- * Memcache: disabled-- * TIFF: disabled-- * GeoTIFF: disabled-- * Experimental TIFF write support: disabled-- * PCRE: disabled-- * Experimental mapserver support: /opt/mapserver/mapserver-6.4.1/build/libmapserver.dll.a-- Found GDAL: /usr/local/lib/libgdal.dll.a-- Found GEOS: /usr/local/lib/libgeos_c.dll.a-- * Seeder Configuration Options:-- * GEOS: /usr/local/lib/libgeos_c.dll.a-- * OGR: /usr/local/lib/libgdal.dll.a-- Found FCGI: /usr/lib/libfcgi.dll.a-- * CGI Configuration Options:-- * FastCGI: /usr/lib/libfcgi.dll.a-- * Apache Module support status: DISABLED-- Configuring done-- Generating done-- Build files have been written to: /opt/mapcache/mapcache-rel-1-2-1/buildand after make I get:Gery@gery /opt/mapcache/mapcache-rel-1-2-1/build$ makeScanning dependencies of target mapcache[ 2%] Building C object CMakeFiles/mapcache.dir/lib/axisorder.c.o[ 5%] Building C object CMakeFiles/mapcache.dir/lib/buffer.c.o[ 7%] Building C object CMakeFiles/mapcache.dir/lib/cache_bdb.c.o[ 10%] Building C object CMakeFiles/mapcache.dir/lib/cache_disk.c.o[ 12%] Building C object CMakeFiles/mapcache.dir/lib/cache_memcache.c.o[ 15%] Building C object CMakeFiles/mapcache.dir/lib/cache_sqlite.c.o[ 17%] Building C object CMakeFiles/mapcache.dir/lib/cache_tiff.c.o[ 20%] Building C object CMakeFiles/mapcache.dir/lib/cache_tokyocabinet.c.o[ 22%] Building C object CMakeFiles/mapcache.dir/lib/configuration.c.o[ 25%] Building C object CMakeFiles/mapcache.dir/lib/configuration_xml.c.o[ 27%] Building C object
Re: [mapserver-users] compiling error core.c in mapcache with cygwin
On 01/03/2015 08:08 AM, Gery . wrote: Hello, When installing mapcache in cygwin, `make` produced: /opt/mapcache/mapcache-rel-1-2-1/lib/core.c: In function ‘mapcache_prefetch_tiles’: /opt/mapcache/mapcache-rel-1-2-1/lib/core.c:81:3: error: unknown type name ‘apr_thread_t’ apr_thread_t **threads; ^ /opt/mapcache/mapcache-rel-1-2-1/lib/core.c:82:3: error: unknown type name ‘apr_threadattr_t’ apr_threadattr_t *thread_attrs; ^ /opt/mapcache/mapcache-rel-1-2-1/lib/core.c:83:7: warning: unused variable ‘nthreads’ [-Wunused-variable] int nthreads; ^ /opt/mapcache/mapcache-rel-1-2-1/lib/core.c:82:21: warning: unused variable ‘thread_attrs’ [-Wunused-variable] apr_threadattr_t *thread_attrs; ^ /opt/mapcache/mapcache-rel-1-2-1/lib/core.c:81:18: warning: unused variable ‘threads’ [-Wunused-variable] apr_thread_t **threads; ^ I searched for some hints about this error but didn't find anything. Looking for `apr_thread_t` and cygwin, I found some pages pointing to an error with apache, but not really sure if apache has something to do here. thanks for any hints on this, Gery You need the Apache Portable Runtime library. Its a generic lib, not the webserver. This gives an overview of all the area's it covers: http://apr.apache.org/docs/apr/1.4/modules.html -Andy ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users