MSYS2-packages icon indicating copy to clipboard operation
MSYS2-packages copied to clipboard

global: update to 6.6.14

Open striezel opened this issue 3 months ago • 4 comments

striezel avatar Sep 13 '25 23:09 striezel

Fails to compile:

   getopt.c: In function '_getopt_initialize':
  getopt.c:287:28: error: too many arguments to function 'getenv'; expected 0, have 1
    287 |   d->__posixly_correct = !!getenv ("POSIXLY_CORRECT");
        |                            ^~~~~~  ~~~~~~~~~~~~~~~~~
  getopt.c:150:14: note: declared here
    150 | extern char *getenv ();
        |              ^~~~~~
  getopt.c: At top level:
  getopt.c:1136:1: error: conflicting types for 'getopt'; have 'int(int,  char * const*, const char *)'
   1136 | getopt (int argc, char *const *argv, const char *optstring)
        | ^~~~~~
  regex.c: In function 're_set_syntax':
  In file included from getopt.c:102:
  getopt.h:155:12: note: previous declaration of 'getopt' with type 'int(void)'
    155 | extern int getopt ();
        |            ^~~~~~

Code seems to redefine getenv(), so it's should probably be removed / patched out.

striezel avatar Sep 14 '25 05:09 striezel

Use gcc 13.4.0-2. global-6.6.14-1-x86_64-build.log

piotrvv avatar Nov 02 '25 18:11 piotrvv

Use gcc 13.4.0-2.

That's not really an option, because we currently have GCC 15.2.0 in MSYS2. However, it could possibly still build, if we forced C17 instead of C23 as the default C standard during the build. GCC 15 uses C23 as the default standard version, and that can sometimes cause problems for older code bases.

striezel avatar Nov 04 '25 01:11 striezel

also if memory serves I believe those getopt files are copied around, and upstream probably has a new version of them.

jeremyd2019 avatar Nov 04 '25 19:11 jeremyd2019