Skip to content

Instantly share code, notes, and snippets.

@hiroyuki-sato
Created August 30, 2020 10:00
Show Gist options
  • Select an option

  • Save hiroyuki-sato/b7bafed9555f9444d1b74b7a952b7017 to your computer and use it in GitHub Desktop.

Select an option

Save hiroyuki-sato/b7bafed9555f9444d1b74b7a952b7017 to your computer and use it in GitHub Desktop.
make util/libucm_la-reloc.lo
make util/libucm_la-reloc.lo
  CC       util/libucm_la-reloc.lo
util/reloc.c:52:5: error: type name requires a specifier or qualifier
    ElfW(Addr)         libucm_base_addr;  /* Base address to store previ...
    ^
util/reloc.c:52:10: error: a parameter list without types is only allowed in a
      function definition
    ElfW(Addr)         libucm_base_addr;  /* Base address to store previ...
         ^
util/reloc.c:52:15: error: expected ';' at end of declaration list
    ElfW(Addr)         libucm_base_addr;  /* Base address to store previ...
              ^
              ;
util/reloc.c:79:21: error: type specifier missing, defaults to 'int'
      [-Werror,-Wimplicit-int]
ucm_reloc_get_entry(ElfW(Addr) base, const ElfW(Phdr) *dphdr, ElfW(Sxword) tag)
                    ^
util/reloc.c:79:26: error: a parameter list without types is only allowed in a
      function definition
ucm_reloc_get_entry(ElfW(Addr) base, const ElfW(Phdr) *dphdr, ElfW(Sxword) tag)
                         ^
util/reloc.c:79:32: error: expected ')'
ucm_reloc_get_entry(ElfW(Addr) base, const ElfW(Phdr) *dphdr, ElfW(Sxword) tag)
                               ^
util/reloc.c:79:20: note: to match this '('
ucm_reloc_get_entry(ElfW(Addr) base, const ElfW(Phdr) *dphdr, ElfW(Sxword) tag)
                   ^
util/reloc.c:81:10: error: use of undeclared identifier 'Dyn'; did you mean
      'yn'?
    ElfW(Dyn) *entry;
         ^~~
         yn
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/math.h:681:15: note:
      'yn' declared here
extern double yn(int, double) __API_AVAILABLE(macos(10.0), ios(3.2));
              ^
util/reloc.c:81:16: error: use of undeclared identifier 'entry'
    ElfW(Dyn) *entry;
               ^
util/reloc.c:82:26: error: use of undeclared identifier 'base'
    for (entry = (void*)(base + dphdr->p_vaddr); entry->d_tag != 0; ++entry) {
                         ^
util/reloc.c:82:33: error: use of undeclared identifier 'dphdr'
    for (entry = (void*)(base + dphdr->p_vaddr); entry->d_tag != 0; ++entry) {
                                ^
util/reloc.c:82:10: error: use of undeclared identifier 'entry'
    for (entry = (void*)(base + dphdr->p_vaddr); entry->d_tag != 0; ++entry) {
         ^
util/reloc.c:82:50: error: use of undeclared identifier 'entry'
    for (entry = (void*)(base + dphdr->p_vaddr); entry->d_tag != 0; ++entry) {
                                                 ^
util/reloc.c:82:71: error: use of undeclared identifier 'entry'
    for (entry = (void*)(base + dphdr->p_vaddr); entry->d_tag != 0; ++entry) {
                                                                      ^
util/reloc.c:83:13: error: use of undeclared identifier 'entry'
        if (entry->d_tag == tag) {
            ^
util/reloc.c:83:29: error: use of undeclared identifier 'tag'; did you mean
      'tan'?
        if (entry->d_tag == tag) {
                            ^~~
                            tan
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/math.h:333:15: note:
      'tan' declared here
extern double tan(double);
              ^
util/reloc.c:84:20: error: use of undeclared identifier 'entry'
            return entry->d_un.d_val;
                   ^
util/reloc.c:146:73: error: use of undeclared identifier 'AT_NULL'
  ...(auxv = buffer; (auxv < (buffer + count)) && (auxv->type != AT_NULL);
                                                                 ^
util/reloc.c:149:32: error: use of undeclared identifier 'AT_PHENT'
            if ((auxv->type == AT_PHENT) && (auxv->value > 0)) {
                               ^
util/reloc.c:175:12: error: expected function body after function declarator
ElfW(Rela) *ucm_reloc_find_sym(void *table, size_t table_size, const cha...
           ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [util/libucm_la-reloc.lo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment