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
undefined reference to `compress2' #4742
Comments
Since LLVM expects to link with It may very well be that |
I thought that the Julia build system automatically downloaded zlib and compiled it. But
I also see that
I tried uncommenting all the lines above but I'm still getting the unresolved symbols, but maybe I have some stale state. I'm rebuilding after a Is the commenting out of the code an indication that zlib is expected to be supplied separately? |
In v0.1, zlib was included specifically for reading and writing gzip Kevin On Wed, Nov 6, 2013 at 2:46 PM, ArchRobison notifications@github.comwrote:
|
@kmsquire so should we remove everything about Also, @vtjnash or @loladiro do you know if zlib is downloaded/built in this manner for our windows distributions? |
Thanks for the replies. From where should I get the ZLib package? I see now why the commented-out code won't work anyway: the |
The ZLib package would be installed after you compile julia, so it won't What flavor of Linux are you on? Your best bet is to install zlib-dev or Kevin On Wed, Nov 6, 2013 at 3:22 PM, ArchRobison notifications@github.comwrote:
|
@staticfloat, I wasn't aware of the LLVM requirement for zlib until this issue came up. Before that, I was under the impression that all of zlib was removed, so we should either
Since libLLVM-3.3.so definitely needs to link against it, 2) would probably be worthwhile. |
On windows I download zlib.dll as a separate, completely independent step (during install). The windows llvm has no dependency on zlib (since it detects that it is not available). |
We should probably remove the zlib build machinery. I had left it in there for cases such as this one, where one may want to get it manually, if they do not have root permissions. |
1 similar comment
We should probably remove the zlib build machinery. I had left it in there for cases such as this one, where one may want to get it manually, if they do not have root permissions. |
I would be inclined to remove the zlib build machinery since it's commented out and therefore not being tested on a regular basis. The root problem turned out to not be that zlib was missing. It's that the linker flags are in the wrong order. I'm on Ubuntu 12.0 Linux. The GNU linker inherited the annoying feature of Unix's |
@ArchRobison that patch seems reasonable enough. I know we've had mystery errors like this pop up from time to time regarding linker command order. Why don't you go ahead and submit a pull request and I'll ping the people who might care about this change. |
I did a fresh clone this afternoon, and got three undefined references. Here's an excerpt from the build:
When I last did a fresh clone a few weeks ago, I wasn't having this problem. Any suggestions on how to fix it? It looks like "-lz" is required on the link line.
The text was updated successfully, but these errors were encountered: