Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: MakeMaker and Library filename extensions ( :nosearch )

by Anonymous Monk
on Jan 18, 2013 at 10:11 UTC ( #1014016=note: print w/ replies, xml ) Need Help??


in reply to MakeMaker and Library filename extensions

use :nosearch, as in

perl Makefile.PL INC="-Ithis -Ithat/the/other" LIBS=":nosearch -Lthat/the/other -lblahblah.a -l/that/the/other/foo.a"

If it works it will work, if not you may need DEFINE="-DSOMETIHNG ... " or if Makefile.PL is being clever you may need to edit Makefile.PL and prefix :nosearch


Comment on Re: MakeMaker and Library filename extensions ( :nosearch )
Re^2: MakeMaker and Library filename extensions ( :nosearch )
by Anonymous Monk on Jan 18, 2013 at 11:50 UTC
    The results ...
    Potential libraries are ':nosearch -L/usr/local/lib -lmylib -liconv -l +z': Unrecognized argument in LIBS ignored: ':nosearch' '-lmylib' found at /usr/local/lib/libmylib.so.1.0 '-liconv' found at /usr/local/lib/libiconv.so.7 '-lz' found at /usr/lib/libz.so

    Using -static ... It should be looking for .a.
    Remove all versions of so's and it works.

    I am the Makefile.pl creator. So there has been plenty of Makefile.pl editing and circumvention of MakeMaker's choking intelligence.

    From you inclusion of full paths I take that to mean 'if' :nosearch worked MakeMaker, would accept a fully qualified filename?
    Something it should do anyhoo!

    -Enjoy

      Unrecognized argument in LIBS ignored: ':nosearch'

      Upgrade ExtUtils::Liblist

      Using -static ... It should be looking for .a.

      What is this "-static"?

      would accept a fully qualified filename?

      It has always accepted those

      I am the Makefile.pl creator. So there has been plenty of Makefile.pl editing and circumvention of MakeMaker's choking intelligence.

      Very few succeed at improving Makefile.PL, and those that do don't ask questions like this

        What is this "-static"?
        With questions like this

        Very few succeed at improving Makefile.PL, and those that do don't ask questions like this
        I don't wonder about answers like that ...

        Very few succeed at improving Makefile.PL, and those that do don't ask questions like this

        Why would one NOT want to improve their Makefile.PL ... That would be utterly ignorant!

        Now if you meant improve MakeMaker et al ... I agree!

        Upgrade ExtUtils::Liblist = 6.63_02 with Perl 5.16

        It has always accepted those

        It has, The following log bits would beg to differ ...
        Shared build ...

        Potential libraries are '-L/usr/local/lib -lMyLib -liconv': '-lMyLib' found at /usr/local/lib/libMyLib.so '-liconv' found at /usr/local/lib/libiconv.so.7

        Shared build, fully qualified filename, using -l ...

        Potential libraries are '-L/usr/local/lib -l/usr/local/lib/libMyLib.so + -liconv': /usr/local/lib/libMyLib.so not found in /usr/local/lib /usr/local/lib/libMyLib.so not found in /usr/lib /usr/local/lib/libMyLib.so not found in /usr/local/lib Note (probably harmless): No library found for -l/usr/local/lib/libMyL +ib.so '-liconv' found at /usr/local/lib/libiconv.so.7

        Shared build, full path and filename w/o extension, using -l ...

        Potential libraries are '-L/usr/local/lib -l/usr/local/lib/libMyLib -l +iconv': /usr/local/lib/libMyLib not found in /usr/local/lib /usr/local/lib/libMyLib not found in /usr/lib /usr/local/lib/libMyLib not found in /usr/local/lib Note (probably harmless): No library found for -l/usr/local/lib/libMyL +ib '-liconv' found at /usr/local/lib/libiconv.so.7

        Shared build, fully qualified filename, without using -l ...
        A valid Make tool chain argument ...

        Potential libraries are '-L/usr/local/lib /usr/local/lib/libMyLib.so - +liconv': Unrecognized argument in LIBS ignored: '/usr/local/lib/libMyLib.so' '-liconv' found at /usr/local/lib/libiconv.so.7

        Shared build, full path and filename w/o extension, without using -l ...

        Potential libraries are '-L/usr/local/lib /usr/local/lib/libMyLib -lic +onv': Unrecognized argument in LIBS ignored: '/usr/local/lib/libMyLib' '-liconv' found at /usr/local/lib/libiconv.so.7

        Shared build with full path, HACKED filename using -l ...

        Potential libraries are '-L/usr/local/lib -l/usr/local/lib/MyLib.so -l +iconv': /usr/local/lib/MyLib.so not found in /usr/local/lib /usr/local/lib/MyLib.so not found in /usr/lib /usr/local/lib/MyLib.so not found in /usr/local/lib Note (probably harmless): No library found for -l/usr/local/lib/MyLib. +so '-liconv' found at /usr/local/lib/libiconv.so.7

        Shared build with full path, HACKED filename w/o extension using -l ...

        Potential libraries are '-L/usr/local/lib -l/usr/local/lib/MyLib -lico +nv': /usr/local/lib/MyLib not found in /usr/local/lib /usr/local/lib/MyLib not found in /usr/lib /usr/local/lib/MyLib not found in /usr/local/lib Note (probably harmless): No library found for -l/usr/local/lib/MyLib '-liconv' found at /usr/local/lib/libiconv.so.7

        Static build with both the .a and .so in /usr/local/lib ...
        Should have picked up the .a ...

        Potential libraries are '-L/usr/local/lib -lMyLib -lz -liconv': '-lMyLib' found at /usr/local/lib/libMyLib.so z not found in /usr/local/lib '-lz' found at /usr/lib/libz.so '-liconv' found at /usr/local/lib/libiconv.so.7

        Static build with /usr/local/lib/libMyLib.so removed ...

        Potential libraries are '-L/usr/local/lib -lMyLib -lz -liconv': '-lMyLib' found at /usr/local/lib/libMyLib.a z not found in /usr/local/lib '-lz' found at /usr/lib/libz.so '-liconv' found at /usr/local/lib/libiconv.so.7

        Think I got all logical and a couple illogical permutations covered ...

        -Enjoy

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1014016]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2014-07-10 10:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (206 votes), past polls