unresolved external vms_convert_to_var_unix_filename (just because it is static) and globalref
Jay K
jay.krell@cornell.edu
Sat May 8 05:59:00 GMT 2010
here is warning free::
Index: bfd/vms-alpha.c
===================================================================
RCS file: /cvs/src/src/bfd/vms-alpha.c,v
retrieving revision 1.6
diff -u -r1.6 vms-alpha.c
--- bfd/vms-alpha.c 3 May 2010 16:04:31 -0000 1.6
+++ bfd/vms-alpha.c 8 May 2010 05:56:38 -0000
@@ -8724,7 +8724,7 @@
format. */
if (bfd_cache_close (abfd) != TRUE)
return FALSE;
- if (vms_convert_to_var_unix_filename (abfd->filename) != TRUE)
+ if (_bfd_vms_convert_to_var_unix_filename (abfd->filename) != TRUE)
return FALSE;
}
#endif
Index: bfd/vms-misc.c
===================================================================
RCS file: /cvs/src/src/bfd/vms-misc.c,v
retrieving revision 1.33
diff -u -r1.33 vms-misc.c
--- bfd/vms-misc.c 14 Apr 2010 09:24:59 -0000 1.33
+++ bfd/vms-misc.c 8 May 2010 05:56:38 -0000
@@ -33,6 +33,9 @@
#include "safe-ctype.h"
#ifdef VMS
+#if defined(__GNUC__) && !defined(globalref)
+#define globalref extern
+#endif
#include <rms.h>
#include <unixlib.h>
#include <starlet.h>
@@ -431,8 +434,8 @@
using undocumented system call sys$modify().
Unix filename version. */
-static int
-vms_convert_to_var_unix_filename (const char *unix_filename)
+int
+_bfd_vms_convert_to_var_unix_filename (const char *unix_filename)
{
if (decc$to_vms (unix_filename, &vms_convert_to_var_1, 0, 1) != 1)
return FALSE;
Index: bfd/vms.h
===================================================================
RCS file: /cvs/src/src/bfd/vms.h,v
retrieving revision 1.19
diff -u -r1.19 vms.h
--- bfd/vms.h 14 Apr 2010 09:24:59 -0000 1.19
+++ bfd/vms.h 8 May 2010 05:56:38 -0000
@@ -131,6 +131,7 @@
extern void _bfd_vms_output_counted (struct vms_rec_wr *, char *);
extern void _bfd_vms_output_dump (struct vms_rec_wr *, unsigned char *, int);
extern void _bfd_vms_output_fill (struct vms_rec_wr *, int, int);
+extern int _bfd_vms_convert_to_var_unix_filename (const char *);
/* vms-alpha.c */
More information about the Binutils
mailing list