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

Greatings all
My question has evolved from issues I am having upgrading to 5.8. I have noticed that the definitions are different between config.h and uconfig.h for random_data. Does anyone know what the exact differences between config and uconfig are and should they look the same? This is on AIX.

Can one somehow simply use uconfig instead of config somehow?
Thanks
  • Comment on to Config or uconfig that is the question

Replies are listed 'Best First'.
Re: to Config or uconfig that is the question
by tomw1975 (Sexton) on May 26, 2004 at 17:49 UTC
    Yes you are correct - however the issue is comming from reentr.h which has the following code in it

    #ifdef HAS_RANDOM_R struct random_data _random_struct; #endif /* HAS_RANDOM_R */

    I am getting an error saying struct random_data is not defined, even though stdlib.h is included in reentr.h I noticed however that HAS_RANDOM_R is only defined in config.h and is commented out in uconfig.h I am pretty certain that if the defines we not there I would get a clean compile.

    it appears all the paths are set up correctly so I dont understand why it is having an issue with these random_data and also drand48 fields.

    thanks
      Ignore uconfig.h - it contains the config for microperl, which is not relevant to what you're doing.

      Dave.

Re: to Config or uconfig that is the question
by Anonymous Monk on May 26, 2004 at 17:42 UTC
    What are you talking about? Perl's config.h does not have random_data. The only random_data I know of comes from stdlib.h