lasote / conan-libcurl

Lib curl library package for conan
2 stars 12 forks source link

Building x86 packages on all OSes - Consuming x86 and x86_64 libcurl packages in OSx #8

Open eliaskousk opened 7 years ago

eliaskousk commented 7 years ago

Hi,

I have a couple of strange behaviors when 1. building (in x86) and 2. consuming (in both x86 and x86_64) libcurl with Conan.

  1. Is there any specific reason that the x86 packages are not built by the build script in this repo? In my fork for v7.52.1 I am generating the x86 packages in travis and I don't have any issues besides a strange endless stream of BN_CTX stuff on the x86 build logs that I think is harmless and related to a binary test of the linked OpenSSL (you can see the travis log for GCC 5.4 ).

  2. When libcurl is consumed by a package on OSx I get undefined references when linking. You can find travis logs for curl c++ wrapper on x86 and curl c++ wrapper on x86_64. The missing references are for zlib (your package) and a package fork of libssh2, both libraries that am building with Conan without any issues.

I'm only using packages for x86_64 Linux and thus both issues don't really bother at all. Conan is great and I really enjoy using it, I've waited for a long time for such a solution on packaging libraries / dependency management when using C/C++. I'm just reporting these in case you have any insights on them (especially on OSx since I've never owned a Mac) and we can improve the libcurl package for other users that might require them for x86 and / or on OSx.

Best, Elias

lasote commented 7 years ago

Hi Elias!

Usually when I exclude the x86 packages are because it fails in some point and I don't get time enough to find how to fix it :rofl: I'll try to dedicate some time and see if I can fix them. Any help is welcomed!

About the libcurl consumed with OSx, its little strange. Which package is requiring libssh2? I've by default disabled in libcurl because I didn't have a conan's libssh2 package but I don't see that you are requiring the libssh2 package, right? About the zlib linker errors I don't really understand... libcurl always require zlib.

I really would love to have time enough to get your project setup perfect but we have tons of pending work, try to summarize your dependency graph and will try to find some time! Thanks so much for using conan!

Best, Luis