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

Conflicting zlib versions in "make check" #777

Open
cponder opened this issue Feb 6, 2023 · 3 comments
Open

Conflicting zlib versions in "make check" #777

cponder opened this issue Feb 6, 2023 · 3 comments

Comments

@cponder
Copy link

cponder commented Feb 6, 2023

I run this command as part of my normal install:

+ make -i -k check

With version 1.2.13 I get this output:

hello world
zlib version 1.2.13 = 0x12d0, compile flags = 0xa9
uncompress(): hello, hello!
gzread(): hello, hello!
gzgets() after gzseek:  hello!
inflate(): hello, hello!
large_inflate(): OK
after inflateSync(): hello, hello!
inflate with dictionary: hello, hello!
		*** zlib test OK ***
hello world
warning: different zlib version linked: 1.2.11
inflate should report Z_STREAM_END
zlib version 1.2.13 = 0x12d0, compile flags = 0xa9
uncompress(): hello, hello!
gzread(): hello, hello!
gzgets() after gzseek:  hello!
inflate(): hello, hello!
large_inflate(): OK
		*** zlib shared test FAILED ***
make: [Makefile:94: testshared] Error 1 (ignored)
hello world
zlib version 1.2.13 = 0x12d0, compile flags = 0xa9
uncompress(): hello, hello!
gzread(): hello, hello!
gzgets() after gzseek:  hello!
inflate(): hello, hello!
large_inflate(): OK
after inflateSync(): hello, hello!
inflate with dictionary: hello, hello!
		*** zlib 64-bit test OK ***

It looks like the second case is finding a different "zlib" than the one I built.
The directory (with the zlibzso* that I just built) is at the front of the $LD_LIBRARY_PATH and $LD_RUN_PATH.
Is there something else that's set up wrong?

@cponder
Copy link
Author

cponder commented Feb 6, 2023

I do see this installed on the system:

lrwxrwxrwx 1 root root    14 Oct 24 10:16 /usr/lib64/libz.so -> libz.so.1.2.11
lrwxrwxrwx 1 root root    14 Oct 24 10:16 /usr/lib64/libz.so.1 -> libz.so.1.2.11
-rwxr-xr-x 1 root root 99648 Oct 24 10:16 /usr/lib64/libz.so.1.2.11

@cponder
Copy link
Author

cponder commented Feb 6, 2023

Adding this to the linkage

export LDFLAGS="-L $PWD/lib"

didn't help either.

@fredgan
Copy link

fredgan commented Feb 9, 2023

How do you compile your zlib? Did you add export LDFLAGS="-L $PWD/lib" in your compile phase?

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