in reply to Re^8: Perl for ARMv7le
in thread Perl for ARMv7le

It might be the wrong path or it might be that you need additional libraries for your environment. A good place to put them is in the hints/qnx.sh in your case. Maybe something like libm or some other math library is missing:

toke.c:(.text+0x27b82): undefined reference to `pow'

Replies are listed 'Best First'.
Re^10: Perl for ARMv7le
by monk88 (Novice) on Dec 21, 2016 at 16:32 UTC

    all the missing functions are from the math.h and the sysroot has the correct path to header files.

    also checked the hints/qnx.sh, even it has the correct path included in it. however i see its referencing hints/linux.pl right before the error

    INSTALLDIRS=perl INSTALLMAN1DIR=none INSTALLMAN3DIR=none \ PERL_CORE=1 LIBPERL_A=libperl.a PERL_CORE=1 PERL="../../miniperl_top"
    Processing hints file hints/linux.pl
    CONFIG key 'osname' does not exist in Config.pm
    Generating a Unix-style Makefile
    Writing Makefile for threads
    cd dist/threads-shared/ && ../../miniperl_top -I../../lib Makefile.PL \
    INSTALLDIRS=perl INSTALLMAN1DIR=none INSTALLMAN3DIR=none \ PERL_CORE=1 LIBPERL_A=libperl.a PERL_CORE=1
    PERL="../../miniperl_top"
    Processing hints file hints/linux.pl
    CONFIG key 'osname' does not exist in Config.pm
    Generating a Unix-style Makefile

    not sure why its referencing linux.pl, but for a quick test i overrided the linux.pl with qnx.pl, but ended running into same error

      The header files are not the problem, but the (missing) linked object files. I don't know where math.o or libm.lib or whatever its name is lives on your system. Consider consulting with your vendor on that.

        adding the -lm flag fixed the issue for me.