Project

General

Profile

Bug #444

gromacs fails to build on OS/X 10.4 due to COPYFILE_DATA undefined

Added by Peter Kasson over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Affected version - extra info:
Affected version:
Difficulty:
uncategorized
Close

Description

On OS/X 10.4 with autoconf, I get the following compile error:
./../../gromacs/src/gmxlib/futil.c: In function 'gmx_file_copy':
../../../gromacs/src/gmxlib/futil.c:763: warning: implicit declaration of function 'copyfile'
../../../gromacs/src/gmxlib/futil.c:763: error: 'COPYFILE_DATA' undeclared (first use in this function)
../../../gromacs/src/gmxlib/futil.c:763: error: (Each undeclared identifier is reported only once
../../../gromacs/src/gmxlib/futil.c:763: error: for each function it appears in.)

And the following config.h snippet:
/* Define to 1 if you have the `copyfile' function. */
#define HAVE_COPYFILE 1

/* Define to 1 if you have the <copyfile.h> header file. /
/
#undef HAVE_COPYFILE_H */

History

#1 Updated by Peter Kasson over 9 years ago

Fixed by changing #ifdef HAVE_COPYFILE to #ifdef HAVE_COPYFILE_H

Also available in: Atom PDF