GithubHelp home page GithubHelp logo

Comments (3)

mnurzia avatar mnurzia commented on August 21, 2024 1

I just committed the fix described by patefoisgras on reddit. I will test this soon but it seems to be working according to the arch users I've encountered.

from even-better-ls.

phineas0fog avatar phineas0fog commented on August 21, 2024

I have the same error :/
I use manjaro

from even-better-ls.

bram-dingelstad avatar bram-dingelstad commented on August 21, 2024

I'm trying to compile it on Arch Linux as well, getting the same error.
Full message:

make[3]: Entering directory '/home/bram/tmp/coreutils-8.2/src'
  CC       ls.o
In file included from system.h:298:0,
                 from ls.c:70:
system.h: In function 'emit_size_note':
../lib/unlocked-io.h:80:22: warning: implicit declaration of function 'fputs_unlocked' [-Wimplicit-function-declaration]
 #  define fputs(x,y) fputs_unlocked (x,y)
                      ^
system.h:569:3: note: in expansion of macro 'fputs'
   fputs (_("\n\
   ^~~~~
ls.c: In function 'has_capability':
ls.c:2649:3: error: unknown type name 'cap_t'
   cap_t cap_d = cap_get_file (name);
   ^~~~~
ls.c:2649:17: warning: implicit declaration of function 'cap_get_file' [-Wimplicit-function-declaration]
   cap_t cap_d = cap_get_file (name);
                 ^~~~~~~~~~~~
ls.c:2650:13: warning: comparison between pointer and integer
   if (cap_d == NULL)
             ^~
ls.c:2653:12: warning: implicit declaration of function 'cap_to_text' [-Wimplicit-function-declaration]
   result = cap_to_text (cap_d, NULL);
            ^~~~~~~~~~~
ls.c:2653:10: warning: assignment makes pointer from integer without a cast [-Wint-conversio ]
   result = cap_to_text (cap_d, NULL);
          ^
ls.c:2654:3: warning: implicit declaration of function 'cap_free' [-Wimplicit-function-declaration]
   cap_free (cap_d);
   ^~~~~~~~
ls.c: In function 'gobble_file':
ls.c:2980:13: warning: In the GNU C Library, "major" is defined
 by <sys/sysmacros.h>. For historical compatibility, it is
 currently defined by <sys/types.h> as well, but we plan to
 remove this soon. To use "major", include <sys/sysmacros.h>
 directly. If you did not intend to use a system-defined macro
 "major", you should undefine it after including <sys/types.h>.
               int len = strlen (umaxtostr (major (f->stat.st_rdev), buf));
             ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                                                                                                                                                                                                                                          
ls.c:2983:13: warning: In the GNU C Library, "minor" is defined
 by <sys/sysmacros.h>. For historical compatibility, it is
 currently defined by <sys/types.h> as well, but we plan to
 remove this soon. To use "minor", include <sys/sysmacros.h>
 directly. If you did not intend to use a system-defined macro
 "minor", you should undefine it after including <sys/types.h>.
               len = strlen (umaxtostr (minor (f->stat.st_rdev), buf));
             ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                                                                                                                                                                                                                                              
ls.c: In function 'align_nstrftime':
ls.c:3464:18: warning: implicit declaration of function 'mempcpy' [-Wimplicit-function-declaration]
           pfmt = mempcpy (pfmt, fmt, pb - fmt);
                  ^~~~~~~
ls.c:3464:18: warning: incompatible implicit declaration of built-in function 'mempcpy'
ls.c: In function 'print_long_format':
ls.c:3724:13: warning: In the GNU C Library, "major" is defined
 by <sys/sysmacros.h>. For historical compatibility, it is
 currently defined by <sys/types.h> as well, but we plan to
 remove this soon. To use "major", include <sys/sysmacros.h>
 directly. If you did not intend to use a system-defined macro
 "major", you should undefine it after including <sys/types.h>.
                umaxtostr (major (f->stat.st_rdev), majorbuf),
             ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                                                                                                                                                                                                                                                       
ls.c:3726:13: warning: In the GNU C Library, "minor" is defined
 by <sys/sysmacros.h>. For historical compatibility, it is
 currently defined by <sys/types.h> as well, but we plan to
 remove this soon. To use "minor", include <sys/sysmacros.h>
 directly. If you did not intend to use a system-defined macro
 "minor", you should undefine it after including <sys/types.h>.
                umaxtostr (minor (f->stat.st_rdev), minorbuf));
             ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                                                                                                                                                                                                                                                      
ls.c: In function 'quote_name':
ls.c:3921:29: warning: implicit declaration of function 'wcwidth' [-Wimplicit-function-declaration]
                         w = wcwidth (wc);
                             ^~~~~~~
make[3]: *** [Makefile:2401: ls.o] Error 1
make[3]: Leaving directory '/home/bram/tmp/coreutils-8.2/src'
make[2]: *** [Makefile:1833: all] Error 2
make[2]: Leaving directory '/home/bram/tmp/coreutils-8.2/src'
make[1]: *** [Makefile:1244: all-recursive] Error 1
make[1]: Leaving directory '/home/bram/tmp/coreutils-8.2'
make: *** [Makefile:1199: all] Error 2

from even-better-ls.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.