conda-forge / libtiff-feedstock

A conda-smithy repository for libtiff.
BSD 3-Clause "New" or "Revised" License
1 stars 25 forks source link

libwebp run dependency is not installed #52

Closed sdebionne closed 4 years ago

sdebionne commented 4 years ago
$ conda install -c conda-forge libtiff=4.1

## Package Plan ##

  added / updated specs:
    - libtiff=4.1

The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    libtiff-4.1.0              |       h2733197_0         447 KB
    ------------------------------------------------------------
                                           Total:         447 KB

The following packages will be UPDATED:

  libtiff                                 4.0.10-h2733197_2 --> 4.1.0-h2733197_0

with

$ conda info

     active environment : foobar
            shell level : 2
 populated config files :
          conda version : 4.8.1
    conda-build version : not installed
         python version : 3.7.3.final.0
       virtual packages : __glibc=2.24
           channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /home/debionne/miniconda3/pkgs
                          /home/debionne/.conda/pkgs
               platform : linux-64
             user-agent : conda/4.8.1 requests/2.22.0 CPython/3.7.3 Linux/4.4.0-18362-Microsoft debian/9 glibc/2.24                     UID:GID : 1000:1000
             netrc file : None
           offline mode : False

The issue shows up when linking to libtiff with version 4.10:

$ld: warning: libwebp.so.7, needed by $PREFIX/lib/libtiff.so, not found (try using -rpath or -rpath-link)
$ld: $PREFIX/lib/libtiff.so: undefined reference to `WebPPictureImportRGB'
$ld: $PREFIX/lib/libtiff.so: undefined reference to `WebPInitDecBufferInternal'
$ld: $PREFIX/lib/libtiff.so: undefined reference to `WebPPictureFree'
$ld: $PREFIX/lib/libtiff.so: undefined reference to `WebPIAppend'
$ld: $PREFIX/lib/libtiff.so: undefined reference to `WebPIDecGetRGB'
$ld: $PREFIX/lib/libtiff.so: undefined reference to `WebPINewDecoder'
$ld: $PREFIX/lib/libtiff.so: undefined reference to `WebPPictureImportRGBA'
$ld: $PREFIX/lib/libtiff.so: undefined reference to `WebPConfigInitInternal'
$ld: $PREFIX/lib/libtiff.so: undefined reference to `WebPEncode'
$ld: $PREFIX/lib/libtiff.so: undefined reference to `WebPValidateConfig'
$ld: $PREFIX/lib/libtiff.so: undefined reference to `WebPPictureInitInternal'
$ld: $PREFIX/lib/libtiff.so: undefined reference to `WebPFreeDecBuffer'
$ld: $PREFIX/lib/libtiff.so: undefined reference to `WebPIDelete'
collect2: error: ld returned 1 exit status
ocefpaf commented 4 years ago

Can you give specific steps to what you are trying to do? The build number 0 should be OK and we pulled build number 4, the one that requited libwebp.

sdebionne commented 4 years ago

I have indeed build 4 in my failing pipeline and libwebp is installed:

libtiff:          4.1.0-hc3755c2_4          conda-forge                 
libwebp:          1.1.0-h56121f0_1          conda-forge

So I guess I just need to clean up the cache. Sorry for the misleading report, the devil is in the build number...

ocefpaf commented 4 years ago

No problem. Cleaning up the cache should fix it. Please reopen if you are still experiencing this.