• ocaml-flac cannot find -lflac

    From Kyle Robbertze@21:1/5 to All on Mon Dec 6 09:20:02 2021
    Hi,

    I am running into the following error trying to build ocaml-flac from
    the new upstream version, which has moved the build to use Dune:

    dune build
    ocamlmklib src/dllflac_ogg_stubs.so,src/libflac_ogg_stubs.a (exit 2)
    (cd _build/default && /usr/bin/ocamlmklib.opt -g -o src/flac_ogg_stubs src/flac_ogg_stubs.o -logg -lflac)
    /usr/bin/ld: cannot find -lflac
    collect2: error: ld returned 1 exit status
    ocamlmklib src/dllflac_stubs.so,src/libflac_stubs.a (exit 2)
    (cd _build/default && /usr/bin/ocamlmklib.opt -g -o src/flac_stubs src/flac_stubs.o -lflac)
    /usr/bin/ld: cannot find -lflac
    collect2: error: ld returned 1 exit status
    make[1]: *** [debian/rules:11: override_dh_auto_build] Error 1
    make[1]: Leaving directory '/<<PKGBUILDDIR>>'
    make: *** [debian/rules:8: binary] Error 2
    dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

    Has anyone encountered anything similar, or is this an upstream issue? I
    have included libflac-dev as a build-dep. The current work-in-progress
    is on salsa [1].

    [1] https://salsa.debian.org/ocaml-team/ocaml-flac

    Thanks
    Kyle
    --
    ⢀⣴⠾⠻⢶⣦⠀
    ⣾⠁⢠⠒⠀⣿⡁ Kyle Robbertze
    ⢿⡄⠘⠷⠚⠋⠀ Debian Developer
    ⠈⠳⣄⠀⠀⠀⠀ https://wiki.debian.org/KyleRobbertze

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?St=c3=a9phane_Glondu?=@21:1/5 to All on Mon Dec 6 09:30:02 2021
    Le 06/12/2021 à 09:15, Kyle Robbertze a écrit :
    [...]
    /usr/bin/ld: cannot find -lflac
    [...]

    Has anyone encountered anything similar, or is this an upstream issue? I
    have included libflac-dev as a build-dep. The current work-in-progress
    is on salsa [1].
    libflac-dev provides /usr/lib/x86_64-linux-gnu/libFLAC.so. Have you
    tried with -lFLAC instead of -lflac?


    Cheers,

    --
    Stéphane

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Kyle Robbertze@21:1/5 to All on Mon Dec 6 09:40:05 2021
    Hi,

    On 2021/12/06 10:22, Stéphane Glondu wrote:
    Le 06/12/2021 à 09:15, Kyle Robbertze a écrit :
    [...]
    /usr/bin/ld: cannot find -lflac
    [...]

    Has anyone encountered anything similar, or is this an upstream issue? I
    have included libflac-dev as a build-dep. The current work-in-progress
    is on salsa [1].
    libflac-dev provides /usr/lib/x86_64-linux-gnu/libFLAC.so. Have you
    tried with -lFLAC instead of -lflac?

    Thanks. That worked as expected.

    --
    ⢀⣴⠾⠻⢶⣦⠀
    ⣾⠁⢠⠒⠀⣿⡁ Kyle Robbertze
    ⢿⡄⠘⠷⠚⠋⠀ Debian Developer
    ⠈⠳⣄⠀⠀⠀⠀ https://wiki.debian.org/KyleRobbertze

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)