delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:message-id:from:to:subject:date:in-reply-to | |
:references:content-type:content-transfer-encoding:mime-version; | |
q=dns; s=default; b=AsCMMgyixRegvHS6HDgXALANNzBksIghDbCm8xXSvLp | |
zjkky9pWBhiiedWez7IIZ3HoaJ3fY0Y5XUfNQfRl/is3TsWA/Ml3HAy1Vu3ihn5J | |
2Bdmuk183slB/mFEU3dm9vXSQQsAj4mQA82WINfaS83H9oORqiVrpRb1dgG51GOU | |
= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:message-id:from:to:subject:date:in-reply-to | |
:references:content-type:content-transfer-encoding:mime-version; | |
s=default; bh=lBv6dpF5l126E4ayop61lBM0vS8=; b=tFnC2TJEy0c3bGcQx | |
hR4WBWsP6AA8PhFDmw5Tc0GLDmhsvClRdJzWJBmubSCPoVdYNCUzIbdQvSoEV0BD | |
qcTkEPeFmqOMRQOeTIRshcp1fFFr5foi7qDsP14plOQIAvgyKfL8E5Kc0V8kNAYP | |
++sv0c0PKov/M6EbGNiACr04s4= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Authentication-Results: | sourceware.org; auth=none |
X-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=0.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,FREEMAIL_REPLY,RCVD_IN_DNSWL_NONE,SPF_PASS,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 |
X-HELO: | DUB004-OMC4S1.hotmail.com |
X-TMN: | [UcqH0B5KQD0K/b7T/TYJjJiK//MguCfk] |
Message-ID: | <DUB124-W3574F49394D7EC88CF8093B0420@phx.gbl> |
From: | "Gery ." <gamejihou AT hotmail DOT com> |
To: | Marco Atzeri <marco DOT atzeri AT gmail DOT com>, |
"cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com> | |
Subject: | RE: compiling error core.c in mapcache with cygwin |
Date: | Sun, 11 Jan 2015 04:20:25 +0000 |
In-Reply-To: | <54A81A0C.3090000@gmail.com> |
References: | <DUB124-W279027A90C2E4D96E63BCCB05A0 AT phx DOT gbl>,<54A81A0C DOT 3090000 AT gmail DOT com> |
MIME-Version: | 1.0 |
X-IsSubscribed: | yes |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id t0B4N2p9025926 |
Hello Marco, After getting some replies about mapcache in the mapserver forum (http://osgeo-org.1560.x6.nabble.com/compiling-error-core-c-in-mapcache-with-cygwin-td5179881.html#a5180931), I have the impression that apr has some issues in cygwin. Using this "thread-sample.c" (http://dev.ariel-networks.com/apr/apr-tutorial/sample/thread-sample.c) with gcc -Wall $(apr-1-config --cflags --cppflags --includes --link-ld) thread-sample.c I got: $ gcc -Wall $(apr-1-config --cflags --cppflags --includes --link-ld) thread-sample.c thread-sample.c: In function ‘main’: thread-sample.c:46:5: warning: implicit declaration of function ‘apr_threadattr_create’ [-Wimplicit-function-declaration] apr_threadattr_create(&thd_attr, mp); ^ thread-sample.c:50:9: warning: implicit declaration of function ‘apr_thread_create’ [-Wimplicit-function-declaration] rv = apr_thread_create(&thd_arr[i], thd_attr, doit, INT_TO_POINTER(i), mp); ^ thread-sample.c:55:9: warning: implicit declaration of function ‘apr_thread_join’ [-Wimplicit-function-declaration] rv = apr_thread_join(&rv, thd_arr[i]); ^ thread-sample.c: In function ‘doit’: thread-sample.c:71:5: warning: implicit declaration of function ‘apr_thread_exit’ [-Wimplicit-function-declaration] apr_thread_exit(thd, APR_SUCCESS); ^ /tmp/cc9d71E0.o:thread-sample.c:(.text+0x14): undefined reference to `apr_initialize' /tmp/cc9d71E0.o:thread-sample.c:(.text+0x3b): undefined reference to `apr_pool_create_ex' /tmp/cc9d71E0.o:thread-sample.c:(.text+0x52): undefined reference to `apr_threadattr_create' /tmp/cc9d71E0.o:thread-sample.c:(.text+0x9d): undefined reference to `apr_thread_create' /tmp/cc9d71E0.o:thread-sample.c:(.text+0x114): undefined reference to `apr_thread_join' /tmp/cc9d71E0.o:thread-sample.c:(.text+0x161): undefined reference to `apr_terminate' /tmp/cc9d71E0.o:thread-sample.c:(.text+0x19f): undefined reference to `apr_thread_exit' collect2: error: ld returned 1 exit status Would you have a magic hack to get this working? it seems that this .c test file compiles with no problems in some linux environments like slackware linux. Thanks in advance, Gery cygwin details: $ uname -a CYGWIN_NT-6.3-WOW64 gery 1.7.32(0.274/5/3) 2014-08-13 23:03 i686 Cygwin $ cygcheck -c | grep apr apr1 1.4.8-1 OK aprutil1 1.5.4-1 OK libapr1 1.4.8-1 OK libapr1-debuginfo 1.4.8-1 OK libapr1-devel 1.4.8-1 OK libaprutil1 1.5.4-1 OK libaprutil1-debuginfo 1.5.4-1 OK libaprutil1-devel 1.5.4-1 OK $ apachectl2 -V Server version: Apache/2.2.29 (Unix) Server built: Sep 17 2014 17:10:18 Server's Module Magic Number: 20051115:36 Server loaded: APR 1.4.8, APR-Util 1.5.4 Compiled using: APR 1.4.8, APR-Util 1.5.2 Architecture: 32-bit Server MPM: Prefork threaded: no forked: yes (variable process count) Server compiled with.... -D APACHE_MPM_DIR="server/mpm/prefork" -D APR_HAS_MMAP -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) -D APR_USE_SYSVSEM_SERIALIZE -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D APR_HAS_OTHER_CHILD -D AP_HAVE_RELIABLE_PIPED_LOGS -D DYNAMIC_MODULE_LIMIT=128 -D HTTPD_ROOT="/usr" -D SUEXEC_BIN="/usr/bin/suexec" -D DEFAULT_PIDLOG="/var/run/apache2/httpd2.pid" -D DEFAULT_SCOREBOARD="logs/apache_runtime_status" -D DEFAULT_LOCKFILE="/var/run/apache2/accept.lock" -D DEFAULT_ERRORLOG="logs/error_log" -D AP_TYPES_CONFIG_FILE="/etc/apache2/mime.types" -D SERVER_CONFIG_FILE="/etc/apache2/httpd.conf" ---------------------------------------- > Date: Sat, 3 Jan 2015 17:34:20 +0100 > From: marco DOT atzeri AT gmail DOT com > To: cygwin AT cygwin DOT com > Subject: Re: compiling error core.c in mapcache with cygwin > > > > On 1/3/2015 2:39 PM, 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 cywgin, I found some pages pointing to an error with apache, but not really sure if apache has something to do here. > > have you installed the development package suggest here > http://mapserver.org/mapcache/install.html > > > https://cygwin.com/packages/x86/libapr1-devel/libapr1-devel-1.4.8-1 > >> >> thanks for any hints on this, >> >> Gery >> > > I guess you need this package > > https://cygwin.com/packages/x86/libapr1-devel/libapr1-devel-1.4.8-1 > > -- > Problem reports: http://cygwin.com/problems.html > FAQ: http://cygwin.com/faq/ > Documentation: http://cygwin.com/docs.html > Unsubscribe info: http://cygwin.com/ml/&unsubscribe-simple > -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |