diff options
-rwxr-xr-x | Configure | 115 | ||||
-rw-r--r-- | Cross/config.sh-arm-linux | 3 | ||||
-rw-r--r-- | Cross/config.sh-arm-linux-n770 | 3 | ||||
-rw-r--r-- | INSTALL | 21 | ||||
-rw-r--r-- | MANIFEST | 1 | ||||
-rw-r--r-- | NetWare/config.wc | 3 | ||||
-rw-r--r-- | NetWare/config_H.wc | 11 | ||||
-rw-r--r-- | Porting/Glossary | 13 | ||||
-rw-r--r-- | Porting/config.sh | 3 | ||||
-rw-r--r-- | Porting/config_H | 11 | ||||
-rwxr-xr-x | cflags.SH | 2 | ||||
-rwxr-xr-x | config_h.SH | 11 | ||||
-rw-r--r-- | configure.com | 3 | ||||
-rw-r--r-- | hints/genix.sh | 1 | ||||
-rw-r--r-- | perl.h | 15 | ||||
-rw-r--r-- | plan9/config.plan9 | 11 | ||||
-rw-r--r-- | plan9/config_h.sample | 11 | ||||
-rw-r--r-- | plan9/config_sh.sample | 3 | ||||
-rw-r--r-- | uconfig.h | 15 | ||||
-rw-r--r-- | uconfig.sh | 3 | ||||
-rw-r--r-- | uconfig64.sh | 3 | ||||
-rw-r--r-- | win32/config.ce | 3 | ||||
-rw-r--r-- | win32/config.gc | 3 | ||||
-rw-r--r-- | win32/config.vc | 3 | ||||
-rw-r--r-- | win32/config_H.ce | 11 | ||||
-rw-r--r-- | win32/config_H.gc | 11 | ||||
-rw-r--r-- | win32/config_H.vc | 11 |
27 files changed, 4 insertions, 300 deletions
@@ -1078,9 +1078,6 @@ i_unistd='' i_ustat='' i_utime='' i_values='' -i_stdarg='' -i_varargs='' -i_varhdr='' i_vfork='' i_wchar='' d_inc_version_list='' @@ -23279,115 +23276,6 @@ set i_termio; eval $setvar val=$val2; set i_sgtty; eval $setvar val=$val3; set i_termios; eval $setvar -: see if stdarg is available -echo " " -if $test `./findhdr stdarg.h`; then - echo "<stdarg.h> found." >&4 - valstd="$define" -else - echo "<stdarg.h> NOT found." >&4 - valstd="$undef" -fi - -: see if varargs is available -echo " " -if $test `./findhdr varargs.h`; then - echo "<varargs.h> found." >&4 -else - echo "<varargs.h> NOT found, but that's ok (I hope)." >&4 -fi - -: set up the varargs testing programs -$cat > varargs.c <<EOP -#ifdef I_STDARG -#include <stdarg.h> -#endif -#ifdef I_VARARGS -#include <varargs.h> -#endif - -#ifdef I_STDARG -int f(char *p, ...) -#else -int f(va_alist) -va_dcl -#endif -{ - va_list ap; -#ifndef I_STDARG - char *p; -#endif -#ifdef I_STDARG - va_start(ap,p); -#else - va_start(ap); - p = va_arg(ap, char *); -#endif - va_end(ap); - return 0; -} -EOP -$cat > varargs <<EOP -$startsh -if $cc -c $ccflags -D\$1 varargs.c >/dev/null 2>&1; then - echo "true" -else - echo "false" -fi -$rm -f varargs$_o -EOP -chmod +x varargs - -: now check which varargs header should be included -echo " " -i_varhdr='' -val='' -case "$valstd" in -"$define") - if `./varargs I_STDARG`; then - val='stdarg.h' - elif `./varargs I_VARARGS`; then - val='varargs.h' - fi - ;; -*) - if `./varargs I_VARARGS`; then - val='varargs.h' - fi - ;; -esac -case "$val" in -'') - echo " " - echo "*** WHOA THERE!!! ***" >&4 - echo " Your C compiler \"$cc\" doesn't seem to support stdarg or varargs!" >&4 - case "$knowitall" in - '') - echo " I'm giving up; maybe you can try again with a different compiler?" >&4 - exit 1 - ;; - esac -echo "I could not find the definition for va_dcl... You have problems..." >&4 - val="$undef"; set i_stdarg; eval $setvar - val="$undef"; set i_varargs; eval $setvar - ;; -*) - set i_varhdr - eval $setvar - case "$i_varhdr" in - stdarg.h) - val="$define"; set i_stdarg; eval $setvar - val="$undef"; set i_varargs; eval $setvar - ;; - varargs.h) - val="$undef"; set i_stdarg; eval $setvar - val="$define"; set i_varargs; eval $setvar - ;; - esac - echo "We'll include <$i_varhdr> to get va_dcl definition." >&4;; -esac -$rm -f varargs* - : see if stdbool is available : we want a real compile instead of Inhdr because some Solaris systems : have stdbool.h, but it can only be used if the compiler indicates it @@ -24821,7 +24709,6 @@ i_rpcsvcdbm='$i_rpcsvcdbm' i_sgtty='$i_sgtty' i_shadow='$i_shadow' i_socks='$i_socks' -i_stdarg='$i_stdarg' i_stdbool='$i_stdbool' i_stddef='$i_stddef' i_stdint='$i_stdint' @@ -24864,8 +24751,6 @@ i_unistd='$i_unistd' i_ustat='$i_ustat' i_utime='$i_utime' i_values='$i_values' -i_varargs='$i_varargs' -i_varhdr='$i_varhdr' i_vfork='$i_vfork' i_wchar='$i_wchar' i_xlocale='$i_xlocale' diff --git a/Cross/config.sh-arm-linux b/Cross/config.sh-arm-linux index aac122166d..80cfbec377 100644 --- a/Cross/config.sh-arm-linux +++ b/Cross/config.sh-arm-linux @@ -772,7 +772,6 @@ i_rpcsvcdbm='undef' i_sgtty='undef' i_shadow='define' i_socks='undef' -i_stdarg='define' i_stdbool='undef' i_stddef='define' i_stdint='define' @@ -815,8 +814,6 @@ i_unistd='define' i_ustat='define' i_utime='define' i_values='define' -i_varargs='undef' -i_varhdr='stdarg.h' i_vfork='undef' i_wchar='undef' i_xlocale='undef' diff --git a/Cross/config.sh-arm-linux-n770 b/Cross/config.sh-arm-linux-n770 index a9e9c24489..95c653f8eb 100644 --- a/Cross/config.sh-arm-linux-n770 +++ b/Cross/config.sh-arm-linux-n770 @@ -632,7 +632,6 @@ i_rpcsvcdbm='undef' i_sgtty='undef' i_shadow='define' i_socks='undef' -i_stdarg='define' i_stddef='define' i_stdlib='define' i_string='define' @@ -673,8 +672,6 @@ i_unistd='define' i_ustat='define' i_utime='define' i_values='define' -i_varargs='undef' -i_varhdr='stdarg.h' i_vfork='undef' ignore_versioned_solibs='y' inc_version_list=' ' @@ -1532,27 +1532,6 @@ PERL5LIB, and PERL5OPT will influence the behaviour of the test suite. So if you are getting strange test failures, you may want to try retesting with the various PERL variables unset. -=item varargs - -If you get varargs problems with gcc, be sure that gcc is installed -correctly and that you are not passing -I/usr/include to gcc. When using -gcc, you should probably have i_stdarg='define' and i_varargs='undef' -in config.sh. The problem is usually solved by installing gcc -correctly. If you do change config.sh, don't forget to propagate -your changes (see L<"Propagating your changes to config.sh"> below). - -=item util.c - -If you get error messages such as the following (the exact line -numbers and function name may vary in different versions of perl): - - util.c: In function 'Perl_form': - util.c:1107: number of arguments doesn't match prototype - proto.h:125: prototype declaration - -it might well be a symptom of the gcc "varargs problem". See the -previous L<"varargs"> item. - =item LD_LIBRARY_PATH If you run into dynamic loading problems, check your setting of @@ -4452,7 +4452,6 @@ hints/esix4.sh Hints for named architecture hints/fps.sh Hints for named architecture hints/freebsd.sh Hints for named architecture hints/freemint.sh Hints for named architecture -hints/genix.sh Hints for named architecture hints/gnu.sh Hints for named architecture hints/gnukfreebsd.sh Hints for named architecture hints/gnuknetbsd.sh Hints for named architecture diff --git a/NetWare/config.wc b/NetWare/config.wc index 8e3b475f02..8a6df03e10 100644 --- a/NetWare/config.wc +++ b/NetWare/config.wc @@ -754,7 +754,6 @@ i_rpcsvcdbm='define' i_sgtty='undef' i_shadow='undef' i_socks='undef' -i_stdarg='define' i_stdbool='define' i_stddef='define' i_stdint='undef' @@ -797,8 +796,6 @@ i_unistd='undef' i_ustat='undef' i_utime='define' i_values='undef' -i_varargs='undef' -i_varhdr='varargs.h' i_vfork='undef' i_wchar='undef' i_xlocale='undef' diff --git a/NetWare/config_H.wc b/NetWare/config_H.wc index a25166b274..8598a5a8a1 100644 --- a/NetWare/config_H.wc +++ b/NetWare/config_H.wc @@ -3233,17 +3233,6 @@ /*#define SETUID_SCRIPTS_ARE_SECURE_NOW /**/ /*#define DOSUID /**/ -/* I_STDARG: - * This symbol, if defined, indicates that <stdarg.h> exists and should - * be included. - */ -/* I_VARARGS: - * This symbol, if defined, indicates to the C program that it should - * include <varargs.h>. - */ -#define I_STDARG /**/ -/*#define I_VARARGS /**/ - /* USE_CROSS_COMPILE: * This symbol, if defined, indicates that Perl is being cross-compiled. */ diff --git a/Porting/Glossary b/Porting/Glossary index b462f20689..df598c0464 100644 --- a/Porting/Glossary +++ b/Porting/Glossary @@ -3601,11 +3601,6 @@ i_socks (i_socks.U): This variable conditionally defines the I_SOCKS symbol, and indicates whether a C program should include <socks.h>. -i_stdarg (i_varhdr.U): - This variable conditionally defines the I_STDARG symbol, which - indicates to the C program that <stdarg.h> exists and should - be included. - i_stdbool (i_stdbool.U): This variable conditionally defines the I_STDBOOL symbol, which indicates to the C program that <stdbool.h> exists and should @@ -3788,14 +3783,6 @@ i_values (i_values.U): whether a C program may include <values.h> to get symbols like MAXLONG and friends. -i_varargs (i_varhdr.U): - This variable conditionally defines I_VARARGS, which indicates - to the C program that it should include <varargs.h>. - -i_varhdr (i_varhdr.U): - Contains the name of the header to be included to get va_dcl definition. - Typically one of varargs.h or stdarg.h. - i_vfork (i_vfork.U): This variable conditionally defines the I_VFORK symbol, and indicates whether a C program should include vfork.h. diff --git a/Porting/config.sh b/Porting/config.sh index d534584f02..a67c756c4e 100644 --- a/Porting/config.sh +++ b/Porting/config.sh @@ -790,7 +790,6 @@ i_rpcsvcdbm='undef' i_sgtty='undef' i_shadow='undef' i_socks='undef' -i_stdarg='define' i_stdbool='define' i_stddef='define' i_stdint='define' @@ -833,8 +832,6 @@ i_unistd='define' i_ustat='undef' i_utime='define' i_values='undef' -i_varargs='undef' -i_varhdr='stdarg.h' i_vfork='undef' i_wchar='undef' i_xlocale='define' diff --git a/Porting/config_H b/Porting/config_H index 564848becc..97622adcd0 100644 --- a/Porting/config_H +++ b/Porting/config_H @@ -2846,17 +2846,6 @@ */ #define I_SYSUIO /**/ -/* I_STDARG: - * This symbol, if defined, indicates that <stdarg.h> exists and should - * be included. - */ -/* I_VARARGS: - * This symbol, if defined, indicates to the C program that it should - * include <varargs.h>. - */ -#define I_STDARG /**/ -/*#define I_VARARGS / **/ - /* Free_t: * This variable contains the return type of free(). It is usually * void, but occasionally int. @@ -79,9 +79,7 @@ cat >_cflags.c <<__EOT__ #ifdef I_STDDEF #include <stddef.h> #endif -#ifdef I_STDARG #include <stdarg.h> -#endif #ifdef I_LIMITS #include <limits.h> #endif diff --git a/config_h.SH b/config_h.SH index 812fd02e28..a8c9672796 100755 --- a/config_h.SH +++ b/config_h.SH @@ -2292,17 +2292,6 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un #$i_termios I_TERMIOS /**/ #$i_sgtty I_SGTTY /**/ -/* I_STDARG: - * This symbol, if defined, indicates that <stdarg.h> exists and should - * be included. - */ -/* I_VARARGS: - * This symbol, if defined, indicates to the C program that it should - * include <varargs.h>. - */ -#$i_stdarg I_STDARG /**/ -#$i_varargs I_VARARGS /**/ - /* Free_t: * This variable contains the return type of free(). It is usually * void, but occasionally int. diff --git a/configure.com b/configure.com index 9f463661a5..19b62c9ddb 100644 --- a/configure.com +++ b/configure.com @@ -6579,7 +6579,6 @@ $ WC "i_rpcsvcdbm='undef'" $ WC "i_sgtty='undef'" $ WC "i_shadow='" + i_shadow + "'" $ WC "i_socks='" + i_socks + "'" -$ WC "i_stdarg='define'" $ IF ccname .EQS. "DEC" .AND. F$INTEGER(Dec_C_Version).GE.60400000 $ THEN $ WC "i_stdbool='define'" @@ -6627,8 +6626,6 @@ $ WC "i_unistd='" + i_unistd + "'" $ WC "i_ustat='undef'" $ WC "i_utime='" + i_utime + "'" $ WC "i_values='undef'" -$ WC "i_varargs='undef'" -$ WC "i_varhdr='stdarg.h'" $ WC "i_vfork='undef'" $ WC "i_wchar='undef'" $ WC "i_xlocale='undef'" diff --git a/hints/genix.sh b/hints/genix.sh deleted file mode 100644 index 16b6879b46..0000000000 --- a/hints/genix.sh +++ /dev/null @@ -1 +0,0 @@ -i_varargs=undef @@ -693,12 +693,6 @@ #include <sys/types.h> -#ifdef __cplusplus -# ifndef I_STDARG -# define I_STDARG 1 -# endif -#endif - /* EVC 4 SDK headers includes a bad definition of MB_CUR_MAX in stdlib.h which is included from stdarg.h. Bad definition not present in SD 2008 SDK headers. wince.h is not yet included, so we cant fix this from there @@ -708,13 +702,8 @@ #if defined(UNDER_CE) && (_MSC_VER < 1300) # define MB_CUR_MAX 1 #endif -#ifdef I_STDARG -# include <stdarg.h> -#else -# ifdef I_VARARGS -# include <varargs.h> -# endif -#endif + +# include <stdarg.h> #ifdef I_STDINT # include <stdint.h> diff --git a/plan9/config.plan9 b/plan9/config.plan9 index 1be10e85ba..0fcfa82d9f 100644 --- a/plan9/config.plan9 +++ b/plan9/config.plan9 @@ -3619,17 +3619,6 @@ */ /*#define I_NDBM / **/ -/* I_STDARG: - * This symbol, if defined, indicates that <stdarg.h> exists and should - * be included. - */ -/* I_VARARGS: - * This symbol, if defined, indicates to the C program that it should - * include <varargs.h>. - */ -#define I_STDARG /**/ -/*#define I_VARARGS / **/ - /* SH_PATH: * This symbol contains the full pathname to the shell used on this * on this system to execute Bourne shell scripts. Usually, this will be diff --git a/plan9/config_h.sample b/plan9/config_h.sample index cd44e9910a..bd8861027e 100644 --- a/plan9/config_h.sample +++ b/plan9/config_h.sample @@ -3549,17 +3549,6 @@ */ /*#define I_NDBM / **/ -/* I_STDARG: - * This symbol, if defined, indicates that <stdarg.h> exists and should - * be included. - */ -/* I_VARARGS: - * This symbol, if defined, indicates to the C program that it should - * include <varargs.h>. - */ -#define I_STDARG /**/ -/*#define I_VARARGS / **/ - /* SH_PATH: * This symbol contains the full pathname to the shell used on this * on this system to execute Bourne shell scripts. Usually, this will be diff --git a/plan9/config_sh.sample b/plan9/config_sh.sample index f0f38fca12..8f1447757a 100644 --- a/plan9/config_sh.sample +++ b/plan9/config_sh.sample @@ -766,7 +766,6 @@ i_rpcsvcdbm='undef' i_sgtty='undef' i_shadow='undef' i_socks='undef' -i_stdarg='define' i_stdbool='undef' i_stddef='define' i_stdint='undef' @@ -809,8 +808,6 @@ i_unistd='define' i_ustat='undef' i_utime='define' i_values='undef' -i_varargs='undef' -i_varhdr='stdarg.h' i_vfork='undef' i_wchar='undef' i_xlocale='undef' @@ -2257,17 +2257,6 @@ /*#define I_TERMIOS / **/ /*#define I_SGTTY / **/ -/* I_STDARG: - * This symbol, if defined, indicates that <stdarg.h> exists and should - * be included. - */ -/* I_VARARGS: - * This symbol, if defined, indicates to the C program that it should - * include <varargs.h>. - */ -#define I_STDARG /**/ -/*#define I_VARARGS / **/ - /* Free_t: * This variable contains the return type of free(). It is usually * void, but occasionally int. @@ -5292,6 +5281,6 @@ #endif /* Generated from: - * 6c763f32474aeeec2af78bc744f36dcb8ec9c9cad13e888b624596dc4f0efb08 config_h.SH - * 51a3d2a1b0cd9329ef5b65d93eca04f6f0769a86b8c16db672fda17ea1308fd3 uconfig.sh + * 9ac22558a2db3bead054c2b016d0b70095e52fce40430a65015f21cd91dcc943 config_h.SH + * 408e88881e8a567afeba7b56cb949d7886e8473896575932bfdef72ee9c32249 uconfig.sh * ex: set ro: */ diff --git a/uconfig.sh b/uconfig.sh index c39cb81458..a3a955c91a 100644 --- a/uconfig.sh +++ b/uconfig.sh @@ -680,7 +680,6 @@ i_rpcsvcdbm='undef' i_sgtty='undef' i_shadow='undef' i_socks='undef' -i_stdarg='define' i_stdbool='undef' i_stddef='define' i_stdint='undef' @@ -723,8 +722,6 @@ i_unistd='undef' i_ustat='undef' i_utime='undef' i_values='undef' -i_varargs='undef' -i_varhdr='stdarg.h' i_vfork='undef' i_wchar='undef' i_xlocale='undef' diff --git a/uconfig64.sh b/uconfig64.sh index 3e8d3255a4..a1f7126248 100644 --- a/uconfig64.sh +++ b/uconfig64.sh @@ -680,7 +680,6 @@ i_rpcsvcdbm='undef' i_sgtty='undef' i_shadow='undef' i_socks='undef' -i_stdarg='define' i_stdbool='undef' i_stddef='define' i_stdint='undef' @@ -723,8 +722,6 @@ i_unistd='undef' i_ustat='undef' i_utime='undef' i_values='undef' -i_varargs='undef' -i_varhdr='stdarg.h' i_vfork='undef' i_wchar='undef' i_xlocale='undef' diff --git a/win32/config.ce b/win32/config.ce index ccbc0d8221..76676a4a21 100644 --- a/win32/config.ce +++ b/win32/config.ce @@ -750,7 +750,6 @@ i_rpcsvcdbm='undef' i_sgtty='undef' i_shadow='undef' i_socks='undef' -i_stdarg='define' i_stdbool='undef' i_stddef='define' i_stdint='undef' @@ -793,8 +792,6 @@ i_unistd='undef' i_ustat='undef' i_utime='define' i_values='undef' -i_varargs='undef' -i_varhdr='varargs.h' i_vfork='undef' i_wchar='undef' i_xlocale='undef' diff --git a/win32/config.gc b/win32/config.gc index 4b6c470aae..70eefc9a09 100644 --- a/win32/config.gc +++ b/win32/config.gc @@ -764,7 +764,6 @@ i_rpcsvcdbm='undef' i_sgtty='undef' i_shadow='undef' i_socks='undef' -i_stdarg='define' i_stdbool='define' i_stddef='define' i_stdint='undef' @@ -807,8 +806,6 @@ i_unistd='undef' i_ustat='undef' i_utime='define' i_values='undef' -i_varargs='undef' -i_varhdr='varargs.h' i_vfork='undef' i_wchar='undef' i_xlocale='undef' diff --git a/win32/config.vc b/win32/config.vc index 50493cdcbc..33f2dadf6c 100644 --- a/win32/config.vc +++ b/win32/config.vc @@ -761,7 +761,6 @@ i_rpcsvcdbm='undef' i_sgtty='undef' i_shadow='undef' i_socks='undef' -i_stdarg='define' i_stdbool='undef' i_stddef='define' i_stdint='undef' @@ -804,8 +803,6 @@ i_unistd='undef' i_ustat='undef' i_utime='define' i_values='undef' -i_varargs='undef' -i_varhdr='varargs.h' i_vfork='undef' i_wchar='undef' i_xlocale='undef' diff --git a/win32/config_H.ce b/win32/config_H.ce index a4842656ad..71007f3ed9 100644 --- a/win32/config_H.ce +++ b/win32/config_H.ce @@ -3728,17 +3728,6 @@ */ /*#define I_NDBM /**/ -/* I_STDARG: - * This symbol, if defined, indicates that <stdarg.h> exists and should - * be included. - */ -/* I_VARARGS: - * This symbol, if defined, indicates to the C program that it should - * include <varargs.h>. - */ -#define I_STDARG /**/ -/*#define I_VARARGS /**/ - /* SH_PATH: * This symbol contains the full pathname to the shell used on this * on this system to execute Bourne shell scripts. Usually, this will be diff --git a/win32/config_H.gc b/win32/config_H.gc index 757295cfa4..7451d62b32 100644 --- a/win32/config_H.gc +++ b/win32/config_H.gc @@ -2266,17 +2266,6 @@ /*#define I_TERMIOS / **/ /*#define I_SGTTY / **/ -/* I_STDARG: - * This symbol, if defined, indicates that <stdarg.h> exists and should - * be included. - */ -/* I_VARARGS: - * This symbol, if defined, indicates to the C program that it should - * include <varargs.h>. - */ -#define I_STDARG /**/ -/*#define I_VARARGS / **/ - /* Free_t: * This variable contains the return type of free(). It is usually * void, but occasionally int. diff --git a/win32/config_H.vc b/win32/config_H.vc index 38df7a63be..6af02b3164 100644 --- a/win32/config_H.vc +++ b/win32/config_H.vc @@ -2257,17 +2257,6 @@ /*#define I_TERMIOS / **/ /*#define I_SGTTY / **/ -/* I_STDARG: - * This symbol, if defined, indicates that <stdarg.h> exists and should - * be included. - */ -/* I_VARARGS: - * This symbol, if defined, indicates to the C program that it should - * include <varargs.h>. - */ -#define I_STDARG /**/ -/*#define I_VARARGS / **/ - /* Free_t: * This variable contains the return type of free(). It is usually * void, but occasionally int. |