-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
geo: WKT writing not working with GEOS bundled with CockroachDB #54841
Comments
Hello, I am Blathers. I am here to help you get the issue triaged. Hoot - a bug! Though bugs are the bane of my existence, rest assured the wretched thing will get the best of care here. I have CC'd a few people who may be able to assist you:
If we have not gotten back to your issue within a few business days, you can try the following:
🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is otan. |
the WKT unit tests work, so I'm not sure how this came about. |
Could you point to how Incidentally, is it possible to make it so that |
https://github.com/cockroachdb/cockroach/blob/master/Makefile#L798 You can try fudge with this if you are willing --
I took a look at this and it was quite complicated with our build setup, and we're revamping that in the upcoming release anyway (the issue in particular is that Note we already special case mac because of this, but the patchelf tool was not available in the builder. |
does
avoid the need for the symlink? |
Yes. I ran those commands from |
I ruled out issues with the Cockroach GEOS fork by compiling it from source. All Django tests pass with that Perhaps it's best to wait and see if the revamp to the build process that you mentioned happens to fix this issue. |
55129: build: correct ELF info for libgeos r=petermattis a=otan Looks like cross compiling with rpath does not work, so install patchelf and use them on the given .so files such that dlopen works using the regular pattern. Refs #54841 Release note (general change, bug fix): Fixed the rpath and so names of libgeos.so and libgeos_c.so such that a dlopen to libgeos.so is not needed. Co-authored-by: Oliver Tan <[email protected]>
I confirmed Django works without creating a symlink and modifying the libgeos files in Cockroach 21.1 beta 1. The strange WKT writing issues described here still remain. |
This started working in v22.1 alpha 4. |
Describe the problem
Django's
WKTWriter.write()
doesn't work with the GEOS library bundled with CockroachDB.To Reproduce
Expected behavior
Ouput of:
POINT (5.0000000000000000 23.0000000000000000)
.The expected behavior happens with GEOS 3.8.1 compiled from source but not with the GEOS 3.8.1 included with CockroachDB.
Additional information
Here's Django's interface to GEOSWKTWriter_write.
If no one has any idea what the cause may be, I can investigate further. I'm not intimately familiar with how this all works.
Environment:
Jira issue: CRDB-3710
The text was updated successfully, but these errors were encountered: