[pkg-firebird-general] Bug#545925: Bug#545925: Bug#545925: firebird2.1: sh4 port

Nobuhiro Iwamatsu iwamatsu at nigauri.org
Thu Oct 1 23:39:13 UTC 2009


Hi,

2009/9/30 Damyan Ivanov <dmn at debian.org>:
> -=| Damyan Ivanov, Tue, Sep 29, 2009 at 01:33:04PM +0300 |=-
>> -=| marius adrian popa, Tue, Sep 29, 2009 at 09:15:21AM +0300 |=-
>> > On Tue, Sep 29, 2009 at 8:01 AM, Nobuhiro Iwamatsu <iwamatsu at nigauri.org> wrote:
>> > > firebird/HEAD depends on libatomic-ops.
>> > > libatomic-ops yet does not completely port to sh4.
>> > > Therefore, I cannot build.
>> >
>> > Ok i see that you have some patches to it
>> > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=547136
>> > Tell us if/how it works
>>
>> I will also try to backport the sh4 patch to version 2.1 and give an
>> URL to try to build it.
>
> Done. At ftp://ftp.modsoftsys.net/public/fb+sh4 you can find a source
> package that includes the sh4 patch. Please try it on your hardware
> (sh and sheb)

Thank you!

I checked your patch .I have a comment.
Your patch does not include patch of src/remote/xdr.cpp.
If not apply following patch, can not build.

--- firebird2.1-2.1.3.18185-0.ds1/src/remote/xdr.cpp    2009-09-30
16:09:32.000000000 +0900
+++ firebird2.1-2.1.3.18185-0.ds1.a/src/remote/xdr.cpp  2009-09-30
21:58:36.000000000 +0900
@@ -43,9 +43,9 @@
 // select abs2(2.0 / 3.0) from rdb$database;
 // It will return big strange value in case of invalid define
 // ASF: Currently, all little-endian are SWAP_DOUBLE and big-endian aren't.
-#if defined(i386) || defined(I386) || defined(_M_IX86) ||
defined(AMD64) || defined(ARM) || defined(MIPSEL) || defined(DARWIN64)
|| defined(IA64)
+#if defined(i386) || defined(I386) || defined(_M_IX86) ||
defined(AMD64) || defined(ARM) || defined(MIPSEL) || defined(DARWIN64)
|| defined(IA64) || defined(SH)
 #define                SWAP_DOUBLE
-#elif defined(sparc) || defined(PowerPC) || defined(PPC) ||
defined(__ppc__) || defined(HPUX) || defined(MIPSEB) ||
defined(__ppc64__)
+#elif defined(sparc) || defined(PowerPC) || defined(PPC) ||
defined(__ppc__) || defined(HPUX) || defined(MIPSEB) ||
defined(__ppc64__) || defined(SHEB)
 #undef         SWAP_DOUBLE
 #else
 #error "Define SWAP_DOUBLE for your platform correctly !"

Please apply this patch.

When I used the patch which applied this revision, I was able to build.
I attached build log.

Best regards,
  Nobuhiro
-- 
Nobuhiro Iwamatsu / Debian Developer
   iwamatsu at {nigauri.org / debian.org}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: firebird2.1_2.1.3.18185-0.ds1-2+sh4_sh4.build.gz
Type: application/x-gzip
Size: 54218 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-firebird-general/attachments/20091002/90219b26/attachment-0001.bin>


More information about the pkg-firebird-general mailing list