Bug 45738

Summary: fakeroot: не собирается на архитектуре LoongArch
Product: Sisyphus Reporter: Alexey Sheplyakov <asheplyakov>
Component: fakerootAssignee: placeholder <placeholder>
Status: NEW --- QA Contact: qa-sisyphus
Severity: normal    
Priority: P5 CC: asheplyakov, glebfm, iv, ldv, nir, placeholder, sin
Version: unstable   
Hardware: all   
OS: Linux   
Bug Depends on:    
Bug Blocks: 45802    

Description Alexey Sheplyakov 2023-04-03 11:24:32 MSK
In file included from ../libfakeroot.c:276:
./symver.h:9:28: error: 'sym___lxstat_ver' undeclared here (not in a function); did you mean 'sym_wrap_lstat_ver'?
    9 | #define sym_wrap_lstat_ver sym___lxstat_ver
      |                            ^~~~~~~~~~~~~~~~
./wrapstruct.h:7:50: note: in expansion of macro 'sym_wrap_lstat_ver'
    7 |   {(void(*))&NEXT_LSTAT_NOARG, WRAP_LSTAT_QUOTE, sym_wrap_lstat_ver},
      |                                                  ^~~~~~~~~~~~~~~~~~
./symver.h:12:27: error: 'sym___xstat_ver' undeclared here (not in a function); did you mean 'sym_wrap_lstat_ver'?
   12 | #define sym_wrap_stat_ver sym___xstat_ver
      |                           ^~~~~~~~~~~~~~~
./wrapstruct.h:8:48: note: in expansion of macro 'sym_wrap_stat_ver'
    8 |   {(void(*))&NEXT_STAT_NOARG, WRAP_STAT_QUOTE, sym_wrap_stat_ver},
      |                                                ^~~~~~~~~~~~~~~~~
./symver.h:4:28: error: 'sym___fxstat_ver' undeclared here (not in a function); did you mean 'sym_wrap_stat_ver'?
    4 | #define sym_wrap_fstat_ver sym___fxstat_ver
      |                            ^~~~~~~~~~~~~~~~
./wrapstruct.h:9:50: note: in expansion of macro 'sym_wrap_fstat_ver'
    9 |   {(void(*))&NEXT_FSTAT_NOARG, WRAP_FSTAT_QUOTE, sym_wrap_fstat_ver},
      |                                                  ^~~~~~~~~~~~~~~~~~
./symver.h:6:30: error: 'sym___fxstatat_ver' undeclared here (not in a function); did you mean 'sym_wrap_fstatat_ver'?
    6 | #define sym_wrap_fstatat_ver sym___fxstatat_ver
      |                              ^~~~~~~~~~~~~~~~~~
./wrapstruct.h:11:54: note: in expansion of macro 'sym_wrap_fstatat_ver'
   11 |   {(void(*))&NEXT_FSTATAT_NOARG, WRAP_FSTATAT_QUOTE, sym_wrap_fstatat_ver},
      |                                                      ^~~~~~~~~~~~~~~~~~~~
./symver.h:8:30: error: 'sym___lxstat64_ver' undeclared here (not in a function); did you mean 'sym_wrap_lstat64_ver'?
    8 | #define sym_wrap_lstat64_ver sym___lxstat64_ver
      |                              ^~~~~~~~~~~~~~~~~~

[skipped]

In file included from ../communicate.h:19,
                 from ../libfakeroot.c:65:
./config.h:365:20: error: conflicting types for 'mknod'; have 'int(const char *, mode_t,  dev_t *)' {aka 'int(const char *, unsigned int,  long unsigned int *)'}
  365 | #define WRAP_MKNOD mknod
      |                    ^~~~~
../libfakeroot.c:1103:5: note: in expansion of macro 'WRAP_MKNOD'
 1103 | int WRAP_MKNOD MKNOD_ARG(int ver UNUSED,
      |     ^~~~~~~~~~
In file included from ../communicate.h:85:
/usr/include/sys/stat.h:404:12: note: previous declaration of 'mknod' with type 'int(const char *, __mode_t,  __dev_t)' {aka 'int(const char *, unsigned int,  long unsigned int)'}
  404 | extern int mknod (const char *__path, __mode_t __mode, __dev_t __dev)
      |            ^~~~~
./config.h:371:22: error: conflicting types for 'mknodat'; have 'int(int,  const char *, mode_t,  dev_t *)' {aka 'int(int,  const char *, unsigned int,  long unsigned int *)'}
  371 | #define WRAP_MKNODAT mknodat
      |                      ^~~~~~~
../libfakeroot.c:1140:5: note: in expansion of macro 'WRAP_MKNODAT'
 1140 | int WRAP_MKNODAT MKNODAT_ARG(int ver UNUSED,
      |     ^~~~~~~~~~~~
/usr/include/sys/stat.h:411:12: note: previous declaration of 'mknodat' with type 'int(int,  const char *, __mode_t,  __dev_t)' {aka 'int(int,  const char *, unsigned int,  long unsigned int)'}
  411 | extern int mknodat (int __fd, const char *__path, __mode_t __mode,
      |            ^~~~~~~
../libfakeroot.c:1399:7: error: redefinition of 'lstat'
 1399 |   int lstat(const char *file_name, struct stat *statbuf) {
      |       ^~~~~
/usr/include/sys/stat.h:313:12: note: previous definition of 'lstat' with type 'int(const char * restrict,  struct stat * restrict)'
  313 | extern int lstat (const char *__restrict __file,
Comment 1 Alexey Sheplyakov 2023-04-03 11:46:56 MSK
#317936 TESTED #1 [test-only] sisyphus fakeroot.git=1.29-alt2
Comment 2 Alexey Sheplyakov 2023-04-12 11:50:38 MSK
#317936 EPERM #3 sisyphus fakeroot.git=1.29-alt4
Comment 3 Alexey Sheplyakov 2023-04-12 11:51:19 MSK
ICMP_ECHO_REQUEST