-
Notifications
You must be signed in to change notification settings - Fork 233
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
What happened to libstdc++ statically linked builds? #17
Comments
linking libstd++ has been temporary removed due to a compilation problem in Ubuntu. I think using CentOS 5 for building snappy-java looks good for supporting wide-range of Linux distributions. Here is a snapshot version that probably fixes this problem (compiled with statically linked libstdc++ in CentOS5): |
Yes, M4-SNAPSHOT loads fine, thanks! |
Integrated to 1.0.5 milestone |
Hi Guys, I m not sure if this is still working, but i m seeing the same issue again in 1.0.5. thanks |
Please use 1.1.0-M4, which has no dependency to libstdc++. Here is the ldd result. It only has the dependencies to libc and libm and the other linux libraries.
|
Thanks a lot xerial, it works perfectly. |
Hi @xerial, I need a version of 1.0.5 with libstdc++ statically included. The link (https://oss.sonatype.org/content/repositories/snapshots/org/xerial/snappy/snappy-java/1.0.5-M4-SNAPSHOT/ ) that you gave above no longer has the jar. Can you please point me to a 1.0.5 jar that is statically compiled or tell how you built that one? Thanks!!! |
@theduderog |
I tried substituting 1.1.1.3 for 1.0.5 in Kafka but it seems to cause the producer to hang. Is it generally safe to swap 1.1.x for 1.0.5 without any code changes? Sent from my iPhone
|
API of snappy-java-1.1.1.3 and 1.0.5.x is compatible, but I'm not sure what causes the hang. If you have some error message, please report it in another ticket. As a quick fix, I have just deployed 1.0.5.4, which embeds libstdc++ to the 1.0.5.3 version. This will be synchronized to Maven central within a hew hours. |
Awesome. Thank you! I'll give it a try. On Thu, Sep 11, 2014 at 10:35 PM, Taro L. Saito notifications@github.com
|
@xerial , thank you for the reply and the new jar. I investigated more and found that the producer error/hang was being caused by an error on the broker side. I needed to replace the snappy-java.jar file on the broker as well as the producer to get it working. Thanks again for your help. |
This fixes all problems seen with xerial/snappy-java#17 on e.g. CentOS 5 by replacing the included library version 1.0.5 with the latest version as suggested by xerial. This is proposed to go into Kafka proper, see https://issues.apache.org/jira/browse/KAFKA-1369
This fixes all problems seen with xerial/snappy-java#17 on e.g. CentOS 5 by replacing the included library version 1.0.5 with the latest version as suggested by xerial. This is proposed to go into Kafka proper, see https://issues.apache.org/jira/browse/KAFKA-1369
Snappy won't work on some systems with following (and similar) configuration(s):
CentOS 5.5 (x86_64):
libstdc++-4.1.2-52.el5_8.1
glibc-2.5-81.el5_8.7
Previously, it was resolved here: http://code.google.com/p/snappy-java/issues/detail?id=12
by doing a build with statically libstdc++ linked and included snappy version.
And some of the older builds actually do work there, for example:
http://maven.xerial.org/repository/snapshot/org/xerial/snappy/snappy-java/1.0.1-rc5-SNAPSHOT/ .
The text was updated successfully, but these errors were encountered: