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