Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Configuring perl such that HAS_STRTOD is not defined

by haukex (Canon)
on Jul 11, 2018 at 09:45 UTC ( #1218297=note: print w/replies, xml ) Need Help??


in reply to Configuring perl such that HAS_STRTOD is not defined

This worked for me:

$ git checkout v5.28.0 $ git clean -dxf $ sh Configure -des -U d_strtod $ grep -E '^d_strtod\b' config.sh d_strtod='undef' $ grep -E '#define.+HAS_STRTOD\b' config.h /*#define HAS_STRTOD / **/ $ make $ ./perl -Ilib -MConfig -le 'print $Config{d_strtod}//"undef"' undef

Another method is to patch config.sh (I've assumed you don't want d_strtod_l either):

$ sh Configure -des $ perl -i.bak -pe "s/^d_strtod(?:_l)?=\K.*$/'undef'/" config.sh $ sh Configure -S $ make # etc.

Replies are listed 'Best First'.
Re^2: Configuring perl such that HAS_STRTOD is not defined
by syphilis (Chancellor) on Jul 11, 2018 at 10:58 UTC
    sh Configure -des -U d_strtod

    Thanks - that works for me, too!! I removed the space after the "-U" and ran it as sh Configure -des -Ud_strtod
    With or without that space apparently makes no difference. Odd that it hadn't worked for choroba when he tried it.

    Cheers,
    Rob
      Probably because of the missing -Ilib *headdesk*

      It works now on a different machine, let me try again on the original one once I get to it.

      ($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (9)
As of 2018-10-19 16:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When I need money for a bigger acquisition, I usually ...














    Results (110 votes). Check out past polls.

    Notices?