You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "lidavidm (via GitHub)" <gi...@apache.org> on 2023/09/02 01:17:59 UTC

[GitHub] [arrow-cookbook] lidavidm commented on issue #323: [C++] C++ cookbooks are failing to find zlib

lidavidm commented on issue #323:
URL: https://github.com/apache/arrow-cookbook/issues/323#issuecomment-1703614341

   It looks like it installs libzlib, which has libz.so, but not the header. zlib contains the actual header. 
   
   I suppose:
   - Arrow depends on zlib at build time, but only libzlib at runtime.
   - This is sufficient for anyone just linking to Arrow.
   - But if you also want to link to zlib yourself, you need to also install the headers.
   - I'm not sure what the policy of conda-forge is on transitive compilation dependencies: gRPC appears to require zlib as well if you want to build against gRPC, but of course if you're just using gRPC that's not necessary.
   - So we should just explicitly list zlib. (I think.)
   
   ```
   > jq .files $CONDA_PREFIX/conda-meta/libzlib-1.2.13-hd590300_5.json                                                                                                   (arrow-cookbook) 
   [
     "lib/libz.so.1",
     "lib/libz.so.1.2.13"
   ]
   > jq .files $CONDA_PREFIX/conda-meta/zlib-1.2.13-hd590300_5.json                                                                                                      (arrow-cookbook) 
   [
     "include/zconf.h",
     "include/zlib.h",
     "lib/libz.a",
     "lib/libz.so",
     "lib/pkgconfig/zlib.pc"
   ]
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org