geoffleach has asked for the wisdom of the Perl Monks concerning the following question:

A reference to "inflate" is being inserted into my module's .so. Any ideas on from whence it might be coming? Environment is linux and I'm not using zlib, MakeMaker is up-to-date and This is perl 5, version 22, subversion 2 (v5.22.2).

Any suggestions?

Thanks

Replies are listed 'Best First'.
Re: undefined symbol: inflate
by syphilis (Archbishop) on Jun 27, 2016 at 07:41 UTC
    Environment is linux and I'm not using zlib

    I'd try linking explicitly to libz anyway and see if that fixes it.
    Perhaps there's a library somewhere in the chain that *does* need the link to libz.
    (Certainly, on Windows, I need the '-lz' to build Audio::TagLib. I have "-ltag -liconv -lz".)

    Cheers,
    Rob
      That did it. Thanks.
Re: undefined symbol: inflate
by Anonymous Monk on Jun 27, 2016 at 03:51 UTC
      :) provide a real answer :P

        Try ldd -v ...my.so and look at a list of dlls, then look for "inflate" in those files (objdump -x my.so ...)

        I checked my

        Encode/Unicode/Unicode.dll Cwd/Cwd.dll Encode/Encode.dll Tk/Tk.dll Tk/Event/Event.dll Encode/Byte/Byte.dll Time/HiRes/HiRes.dll
        they don't mention inflate