From knok at daionet.gr.jp Thu Nov 9 02:59:27 2006 From: knok at daionet.gr.jp (knok@daionet.gr.jp) Date: Thu Nov 9 02:59:28 2006 Subject: [Namazu-devel-en] Returned mail: Data format error Message-ID: <20061108175927.B571520087@vaj.namazu.org> -------------- next part -------------- A non-text attachment was scrubbed... Name: file.zip Type: application/octet-stream Size: 29282 bytes Desc: not available Url : http://www.namazu.org/pipermail/namazu-devel-en/attachments/20061109/b819acd7/file-0001.obj From paul.mansfield at worldpay.com Tue Nov 28 02:35:11 2006 From: paul.mansfield at worldpay.com (Paul Mansfield) Date: Tue Nov 28 03:46:22 2006 Subject: [Namazu-devel-en] trying to cross-compile namazu-2.0.16 with arm-gcc-2.95.3 Message-ID: <456B21CF.5080809@worldpay.com> Hi, thanks for reading this. I wish to cross-compile namazu to run on Sharp Zaurus with Cacko ROM, which is Kernel 2.4.20 and GCC-2.95.3 based system. When I compile I get a few warnings, but the fatal problems are an initial warning then a link error: gcc -DLOCALEDIR=\"/usr/local/namazu/share/locale\" -DOPT_CONFDIR=\"/usr/local/namazu/etc/namazu\" -DOPT_INDEXDIR=\"/usr/local/namazu/var/namazu/index\" -DHAVE_SUPPORT_H -DNO_ALLOCA -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -I./../lib -I./../src -I../intl -I./../nmz -g -O2 -Wall -pedantic -c search.c -o search.o In file included from /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/unistd.h:500, from search.c:46: /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/bits/confname.h:565: warning: comma at end of enumerator list search.c: In function `prefix_match': search.c:181: warning: implicit declaration of function `_nmz_memcmp' echo timestamp > search.lo ../nmz/.libs/libnmz.a(regex.o): In function `nmz_re_match': /home/zaurus/build/namazu-2.0.16/nmz/regex.c:3826: undefined reference to `_nmz_memcmp' Is there a fix for this? It is not possible to use gcc-3 or gcc-4 because all the customised applications and Qtopia gui are gcc-2.95 based. thanks again, -- Paul From paul.mansfield at worldpay.com Tue Nov 28 19:05:19 2006 From: paul.mansfield at worldpay.com (Paul Mansfield) Date: Tue Nov 28 19:04:35 2006 Subject: [Namazu-devel-en] Re: trying to cross-compile namazu-2.0.16 with arm-gcc-2.95.3 In-Reply-To: <456B21CF.5080809@worldpay.com> References: <456B21CF.5080809@worldpay.com> Message-ID: <456C09DF.70904@worldpay.com> Paul Mansfield wrote: > search.c: In function `prefix_match': > search.c:181: warning: implicit declaration of function `_nmz_memcmp' I found a work-round for the problem.... when I'd done "./configure --host=arm", namazu put an entry into config.h to define memcmp as nmz_memcmp I hacked the config file entry and then it compiled and built ok because the target cross-build does have a working memcmp I've now got a working zaurus namazu binary, and it works pretty well. FYI, here's where I posted the results: http://www.oesf.org/forums/index.php?showtopic=22041&st=30# thanks for a great software package! Paul