patch to correct 'static declaration of ...' errors when building nfs addon using cygwin, gcc4.0.2
Thomas Fors
tom at fors.net
Tue Dec 27 23:06:15 UTC 2005
FYI,
The following patch is necessary to eliminate the
'static declaration of ... follows non-static declaration'
errors when compiling the nfs addon on a cygwin system using gcc 4.0.2.
Platform: cygwin
Target: uC5282
GCC: 4.0.2
rtems: cvs checkout -D 2005-12-26
addons: cvs checkout -D 2005-12-26
--
Thomas Fors <tfors at aps.anl.gov>
Advanced Photon Source
Argonne National Lab
--- orig/rtems-addon-packages/rtemsNfs/src/nfs.c 2005-09-02
10:40:51.000000000 -0500
+++ src/rtems-addon-packages/rtemsNfs/src/nfs.c 2005-12-27
13:31:16.757500000 -0600
@@ -582,10 +582,10 @@ static int
nfs_sattr(NfsNode node, sattr *arg, u_long mask);
extern struct _rtems_filesystem_operations_table nfs_fs_ops;
-extern struct _rtems_filesystem_file_handlers_r nfs_file_file_handlers;
-extern struct _rtems_filesystem_file_handlers_r nfs_dir_file_handlers;
-extern struct _rtems_filesystem_file_handlers_r nfs_link_file_handlers;
-extern rtems_driver_address_table drvNfs;
+static struct _rtems_filesystem_file_handlers_r nfs_file_file_handlers;
+static struct _rtems_filesystem_file_handlers_r nfs_dir_file_handlers;
+static struct _rtems_filesystem_file_handlers_r nfs_link_file_handlers;
+static rtems_driver_address_table drvNfs;
int
nfsMountsShow(FILE*);
More information about the users
mailing list