[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gnulib] Getopt fix installed
From: |
Simon Josefsson |
Subject: |
[Bug-gnulib] Getopt fix installed |
Date: |
Thu, 11 Nov 2004 16:40:31 +0100 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) |
On powerpc-apple-darwin5.5 I get:
/usr/bin/ld: warning unused multiple definitions of symbol _opterr
../gl/.libs/libgnu.a(getopt.o) definition of _opterr in section (__DATA,__data)
/usr/lib/libSystem.dylib(getopt.o) unused definition of _opterr
It seems that the mapping of opterr was forgotten.
Or was that intentional somehow?
I have installed the patch below.
Btw, for every file that include config.h, I get warnings:
checking whether optreset is declared... no
...
internal.h:58: warning: could not use precompiled header
'/usr/include/unistd.p', because:
internal.h:58: warning: macro 'optarg' defined by ../config.h conflicts with
precomp
2004-11-11 Simon Josefsson <address@hidden>
* getopt.m4: Replace opterr.
--- getopt.m4 16 Oct 2004 00:52:59 +0200 1.4
+++ getopt.m4 11 Nov 2004 16:25:58 +0100
@@ -1,4 +1,4 @@
-# getopt.m4 serial 4
+# getopt.m4 serial 5
dnl Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
@@ -19,6 +19,8 @@
[Define to rpl_optarg if the replacement variable should be used.])
AC_DEFINE([optind], [rpl_optind],
[Define to rpl_optind if the replacement variable should be used.])
+ AC_DEFINE([opterr], [rpl_opterr],
+ [Define to rpl_opterr if the replacement variable should be used.])
AC_DEFINE([optopt], [rpl_optopt],
[Define to rpl_optopt if the replacement variable should be used.])
AC_DEFINE([getopt], [rpl_getopt],
- [Bug-gnulib] Getopt fix installed,
Simon Josefsson <=