[odb-users] Compatibility with Third Party Middleware (Apache Thrift)

Szumowski, Thomas thomas.szumowski at lmco.com
Tue Jun 28 11:15:27 EDT 2011


Hi Boris,

No problem. Thank you for looking into the issue. I attached the ODBTest.i in the same usual form (.zip.allow remove the "allow" suffix).

And yes you are correct, Thrift is a bit tricky to get working with Windows. I followed the patches from the Apache THRIFT-1123 tracker report at:
https://issues.apache.org/jira/browse/THRIFT-1123

Good to know ODB is working fine given all of Thrift's specificities and dependencies. 

Let me know if you need any more files or information.

-Tom

-----Original Message-----
From: Boris Kolpackov [mailto:boris at codesynthesis.com] 
Sent: Tuesday, June 28, 2011 10:37 AM
To: Szumowski, Thomas
Cc: odb-users at codesynthesis.com
Subject: EXTERNAL: Re: [odb-users] Compatibility with Third Party Middleware (Apache Thrift)

Hi Thomas,

Szumowski, Thomas <thomas.szumowski at lmco.com> writes:

> Note the example I attached (rename from .allow to .zip), specifically 
> "ODBTest.h" and odb_compile_output.txt. When I attempt to compile, I
> get the following seg fault in std-vector-traits listed below. (The
> code is provided for reference only as the Windows Thrift environment
> takes some time to set up).

It is much easier to install Thrift on a Linux box so I tried that.
In this setup the ODB compiler compiles your test without any problems.

Would you be able to get the preprocessed source for your ODBTest.h
file and send it to me? This way I would be able to try it with the
Windows version of ODB without having to setup Thrift. You can get
the preprocessed source by adding these options to the ODB command
line:

-x -E -x -o -x ODBTest.i

> I figured it was a longshot to get ODB and Thrift interoperable on
> the first shot. This is especially true because Apache relies on
> external software like pthread-win32 and boost.

I don't see why merely including some headers should lead to the
ODB compiler breaking. This is definitely something we would want
to fix.


> Any idea why the seg-fault may be occurring for a more general 
> perspective?

Most likely an ODB compiler bug. Will hopefully find out more with
the preprocessed source.

Boris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ODBTest.zip.allow
Type: application/octet-stream
Size: 208079 bytes
Desc: ODBTest.zip.allow
Url : http://codesynthesis.com/pipermail/odb-users/attachments/20110628/1a4a5043/ODBTest.zip-0001.obj


More information about the odb-users mailing list