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

zlib: unable to build & update #36403

Closed
apprehensions opened this issue Mar 29, 2022 · 1 comment
Closed

zlib: unable to build & update #36403

apprehensions opened this issue Mar 29, 2022 · 1 comment

Comments

@apprehensions
Copy link
Contributor

apprehensions commented Mar 29, 2022

System

  • xuname:
    Void 5.16.18_1 x86_64 GenuineIntel uptodate rFFFFFFFFFFFFFF
  • package:
    zlib-1.2.11_4

Expected behavior

successful build

Actual behavior

=> zlib-1.2.11_5: running do-fetch hook: 00-distfiles ...
=> zlib-1.2.11_5: fetching distfile 'zlib-1.2.11.tar.gz'...
http://www.zlib.net/zlib-1.2.11.tar.gz: Not Found
=> ERROR: zlib-1.2.11_5: failed to fetch zlib-1.2.11.tar.gz.

Steps to reproduce the behavior

./xbps-src pkg zlib

zlib 1.2.12 came out as well, which i think removes the old version 1.2.11,
i tried to update it but i get a patch failure, remove CVE-2018-25032.patch as it was solved in 1.2.12.

Expected Behavior

successful update and build

Actual behavior

/bin/ld: trees.lo: warning: relocation against `_length_code' in read-only section `.text'
/bin/ld: deflate.lo: relocation R_X86_64_PC32 against symbol `_length_code' can not be used when making a shared object; recompile with -fPIC
/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make: *** [Makefile:282: libz.so.1.2.12] Error 1

i think this is due to

sed -i "s/^\([ \t]*tmp_sharedflag\)='-shared'/\1='-shared -Wl,--as-needed'/" ${conf_script}

not sure how i can fix it.

@apprehensions apprehensions mentioned this issue Mar 29, 2022
@apprehensions
Copy link
Contributor Author

solved with #36405

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

1 participant