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

Unknown file format name raw #31

Open
RoccoMathijn opened this issue Jul 12, 2023 · 4 comments
Open

Unknown file format name raw #31

RoccoMathijn opened this issue Jul 12, 2023 · 4 comments

Comments

@RoccoMathijn
Copy link

RoccoMathijn commented Jul 12, 2023

Hi!

I'm working on an Apple M2. I have snappy 1.1.10 and snzip 1.0.5 installed via Homebrew,
When I try to run a command using raw format I get an error. For example:

λ ~ snzip -t raw
Unknown file format name raw

Readme says The raw format support is enabled only when snzip is compiled for snappy 1.1.3 or upper. so I tried to compile from source but also then it's not working.

λ ~/Downloads/snzip-1.0.5 ./configure --with-snappy=/opt/homebrew/Cellar/snappy/1.1.10`
...
checking snappy::Uncompress(snappy::Source*, snappy::Sink*)... no
configure: WARNING: raw format is not supported with this snappy version.
...

Any ideas?

@kubo
Copy link
Owner

kubo commented Jul 13, 2023

Could you post config.log to gist?
It is created in the current directory when configure runs.

@RoccoMathijn
Copy link
Author

@kubo
Copy link
Owner

kubo commented Jul 13, 2023

Could you run the configure with CXXFLAGS=-std=c++11?

$ ./configure CXXFLAGS=-std=c++11

In config.log:

configure:5688: checking snappy::Uncompress(snappy::Source*, snappy::Sink*)
configure:5701: g++ -o conftest -g -O2 -Wall -I/opt/homebrew/Cellar/snappy/1.1.10/include   -L/opt/homebrew/Cellar/snappy/1.1.10/lib conftest.cpp -lsnappy  >&5
In file included from conftest.cpp:38:
/opt/homebrew/Cellar/snappy/1.1.10/include/snappy.h:212:10: error: unknown type name 'constexpr'
  static constexpr int kBlockLog = 16;
         ^

constexpr requires C++11 or later.

@RoccoMathijn
Copy link
Author

Yes now it works!

For my understanding: Is this a bug in the Homebrew formula? Should that flag be set there?

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