Ticket #4103 (closed defect: fixed)
Name collision with nrand48
|Reported by:||briadam||Owned by:||jdsiiro|
I'm not able to appreciate the history enough to make a fix. Utilib's LCG.cpp has the following declaration
long nrand48(unsigned short *xsubi);
which collides with the system-provided one from stdlib.h on some systems, e.g., BlueGene?/P.
In the top-level configure.ac, there is AC_CHECK_FUNCS([nrand48]) which should test for this function and define HAVE_NRAND48 and consequently UTILIB_HAVE_NRAND48.
I'd suggest just removing the nrand48 prototype from LCG.cpp since it should be provided by cstdlib's wrapping of stdlib.h's nrand48.