in reply to YACQ (yet another compiler question)

It looks like the compiler isn't actually trying to link the math library (libm.a). Was this library located correctly during the Configure phase?

There is also one point in Configure where you have the option of modifying the list of libraries that perl will be linked against. Have you checked to see that '-lm' is on that list?

--rjray

  • Comment on Re: YACQ (yet another compiler question)

Replies are listed 'Best First'.
Re: Re: YACQ (yet another compiler question)
by dhammaBum (Acolyte) on Feb 07, 2002 at 01:30 UTC
    I looked thru the config.sh and added -lm to:

    lddlflags='-bhalt:4 -bM:SRE -bI:$(PERL_INC)/perl.exp -bE:$(BASEEXT).ex +p -b noentry -lC -lc -lm - L/usr/local/lib'
    I also added m to:

    libswanted='sfio socket bind inet nsl nm ndbm gdbm dbm db malloc dl dl +d ld sun m C c cposix posi x ndir dir crypt sec ucb bsd BSD PW x iconv'
    both to no avail. Strange, no?