Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

base64.hpp compile error on big endian (powerpc) #44

Open
wrightleft opened this issue Jan 21, 2019 · 5 comments
Open

base64.hpp compile error on big endian (powerpc) #44

wrightleft opened this issue Jan 21, 2019 · 5 comments

Comments

@wrightleft
Copy link

I get this error when compiling on powerpc:

/usr/include/yas/detail/tools/base64.hpp:578:29: error: 'src' was not declared in this scope

And then dozens of similar errors:

/usr/include/yas/detail/tools/base64.hpp:580:10: error: 'i' was not declared in this scope
/usr/include/yas/detail/tools/base64.hpp:584:52: error: there are no arguments to 'YAS_THROW_BASE64_ERROR' that depend on a template parameter, so a declaration of 'YAS_THROW_BASE64_ERROR' must be available

(And so on.)

Seems like big endian hasn't compiled in a while (ever?).

@wrightleft
Copy link
Author

I also noticed that json support isn't completely implemented (missing blocks of code where the base64 decode function should be used), and will silently fail. Why not move json support to a branch until it is ready for use?

@niXman
Copy link
Owner

niXman commented Jan 21, 2019

/usr/include/yas/detail/tools/base64.hpp:578:29: error: 'src' was not declared in this scope

Since as JSON support has been implemented for YAS, indeed, YAS has not been tested on the BE machine...

(missing blocks of code where the base64 decode function should be used)

Can you explain please?

@wrightleft
Copy link
Author

(missing blocks of code where the base64 decode function should be used)

Can you explain please?

See this block of code:

if ( F & yas::compacted ) {

I would assume that block is where modp_b64_decode would be called. As it stands, modp_b64_decode is never used in the code. And that block of code is essentially empty.

@niXman
Copy link
Owner

niXman commented Jan 22, 2019

Because I'm still not sure whether support for serializing shared_buffer in the context of JSON is the right idea... But you are right, I must somehow flesh it out... Ok, I'll think about this.

If you have the opportunity to fix base64.hpp file for BE machine - I will be grateful!

@wrightleft
Copy link
Author

wrightleft commented Jan 23, 2019

I'm more focused on binary serialization, so I just removed the base64.h file and everything that references it. I looked at the code for a bit, but it wasn't a trivial fix. Sorry. It's hard to get time to fix something, I'm not going to use. :)

I was actually thinking of just ripping out the json flag and everything that referred it, but that was a bit too ambitious.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants