Project

General

Profile

Bug #11101

libld: NULL pointer errors

Added by Toomas Soome 5 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
lib - userland libraries
Start date:
2019-05-31
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:

Description

NULL pointer errors:

    In file included from /code/illumos-gate/proto/root_i386/usr/include/iso/string_iso.h:50:0,
                     from /code/illumos-gate/proto/root_i386/usr/include/string.h:33,
                     from ../common/machrel.intel.c:33:
    ../common/machrel.intel.c: In function 'ld_reloc_local':
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: error: passing argument 1 of 'ld_add_outrel' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../common/machrel.intel.c:1230:21: note: in expansion of macro 'NULL'
       if (ld_add_outrel(NULL, rsp, ofl) == S_ERROR)
                         ^~~~
    ../common/machrel.intel.c:1110:1: note: expected 'Word {aka long unsigned int}' but argument is of type 'void *'
     ld_add_outrel(Word flags, Rel_desc *rsp, Ofl_desc *ofl)
     ^~~~~~~~~~~~~
    In file included from /code/illumos-gate/proto/root_i386/usr/include/iso/string_iso.h:50:0,
                     from /code/illumos-gate/proto/root_i386/usr/include/string.h:33,
                     from ../common/machrel.intel.c:33:
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: error: passing argument 1 of 'ld32_add_actrel' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../common/machrel.intel.c:1274:24: note: in expansion of macro 'NULL'
      return (ld_add_actrel(NULL, rsp, ofl));
                            ^~~~
    In file included from ../common/machrel.intel.c:40:0:
    ../common/_libld.h:778:24: note: expected 'Word {aka long unsigned int}' but argument is of type 'void *'
     #define ld_add_actrel  ld32_add_actrel
                            ^
    ../common/_libld.h:879:18: note: in expansion of macro 'ld_add_actrel'
     extern uintptr_t ld_add_actrel(Word, Rel_desc *, Ofl_desc *);
                      ^~~~~~~~~~~~~
    In file included from /code/illumos-gate/proto/root_i386/usr/include/iso/string_iso.h:50:0,
                     from /code/illumos-gate/proto/root_i386/usr/include/string.h:33,
                     from ../common/machrel.intel.c:33:
    ../common/machrel.intel.c: In function 'ld_reloc_TLS':
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: error: passing argument 10 of 'ld32_assign_got_TLS' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../common/machrel.intel.c:1304:33: note: in expansion of macro 'NULL'
             rtype, R_386_TLS_TPOFF, NULL) == S_ERROR)
                                     ^~~~
    In file included from ../common/machrel.intel.c:40:0:
    ../common/_libld.h:784:27: note: expected 'Word {aka long unsigned int}' but argument is of type 'void *'
     #define ld_assign_got_TLS ld32_assign_got_TLS
                               ^
    ../common/_libld.h:886:18: note: in expansion of macro 'ld_assign_got_TLS'
     extern uintptr_t ld_assign_got_TLS(Boolean, Rel_desc *, Ofl_desc *,
                      ^~~~~~~~~~~~~~~~~
    In file included from /code/illumos-gate/proto/root_i386/usr/include/iso/string_iso.h:50:0,
                     from /code/illumos-gate/proto/root_i386/usr/include/string.h:33,
                     from ../common/machrel.intel.c:33:
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: error: passing argument 1 of 'ld_add_outrel' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../common/machrel.intel.c:1323:28: note: in expansion of macro 'NULL'
          return (ld_add_outrel(NULL, rsp, ofl));
                                ^~~~
    ../common/machrel.intel.c:1110:1: note: expected 'Word {aka long unsigned int}' but argument is of type 'void *'
     ld_add_outrel(Word flags, Rel_desc *rsp, Ofl_desc *ofl)
     ^~~~~~~~~~~~~
    In file included from /code/illumos-gate/proto/root_i386/usr/include/iso/string_iso.h:50:0,
                     from /code/illumos-gate/proto/root_i386/usr/include/string.h:33,
                     from ../common/machrel.intel.c:33:
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: error: passing argument 10 of 'ld32_assign_got_TLS' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../common/machrel.intel.c:1354:48: note: in expansion of macro 'NULL'
           FLG_REL_MTLS, rtype, R_386_TLS_DTPMOD32, NULL) == S_ERROR)
                                                    ^~~~
    In file included from ../common/machrel.intel.c:40:0:
    ../common/_libld.h:784:27: note: expected 'Word {aka long unsigned int}' but argument is of type 'void *'
     #define ld_assign_got_TLS ld32_assign_got_TLS
                               ^
    ../common/_libld.h:886:18: note: in expansion of macro 'ld_assign_got_TLS'
     extern uintptr_t ld_assign_got_TLS(Boolean, Rel_desc *, Ofl_desc *,
                      ^~~~~~~~~~~~~~~~~
    In file included from /code/illumos-gate/proto/root_i386/usr/include/iso/string_iso.h:50:0,
                     from /code/illumos-gate/proto/root_i386/usr/include/string.h:33,
                     from ../common/machrel.amd.c:29:
    ../common/machrel.amd.c: In function 'ld_reloc_local':
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: error: passing argument 1 of 'ld64_add_actrel' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../common/machrel.amd.c:1298:24: note: in expansion of macro 'NULL'
      return (ld_add_actrel(NULL, rsp, ofl));
                            ^~~~
    In file included from ../common/machrel.amd.c:37:0:
    ../common/_libld.h:680:24: note: expected 'Word {aka unsigned int}' but argument is of type 'void *'
     #define ld_add_actrel  ld64_add_actrel
                            ^
    ../common/_libld.h:879:18: note: in expansion of macro 'ld_add_actrel'
     extern uintptr_t ld_add_actrel(Word, Rel_desc *, Ofl_desc *);
                      ^~~~~~~~~~~~~
    In file included from /code/illumos-gate/proto/root_i386/usr/include/iso/string_iso.h:50:0,
                     from /code/illumos-gate/proto/root_i386/usr/include/string.h:33,
                     from ../common/machrel.amd.c:29:
    ../common/machrel.amd.c: In function 'ld_reloc_TLS':
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: error: passing argument 10 of 'ld64_assign_got_TLS' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../common/machrel.amd.c:1365:46: note: in expansion of macro 'NULL'
           FLG_REL_MTLS, rtype, R_AMD64_DTPMOD64, NULL) == S_ERROR)
                                                  ^~~~
    In file included from ../common/machrel.amd.c:37:0:
    ../common/_libld.h:686:27: note: expected 'Word {aka unsigned int}' but argument is of type 'void *'
     #define ld_assign_got_TLS ld64_assign_got_TLS
                               ^
    ../common/_libld.h:886:18: note: in expansion of macro 'ld_assign_got_TLS'
     extern uintptr_t ld_assign_got_TLS(Boolean, Rel_desc *, Ofl_desc *,
                      ^~~~~~~~~~~~~~~~~
    In file included from /code/illumos-gate/proto/root_i386/usr/include/iso/string_iso.h:50:0,
                     from /code/illumos-gate/proto/root_i386/usr/include/string.h:33,
                     from ../common/machrel.sparc.c:32:
    ../common/machrel.sparc.c: In function 'ld_reloc_local':
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: error: passing argument 1 of 'ld64_add_actrel' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../common/machrel.sparc.c:1662:24: note: in expansion of macro 'NULL'
      return (ld_add_actrel(NULL, rsp, ofl));
                            ^~~~
    In file included from ../common/machrel.sparc.c:39:0:
    ../common/_libld.h:680:24: note: expected 'Word {aka unsigned int}' but argument is of type 'void *'
     #define ld_add_actrel  ld64_add_actrel
                            ^
    ../common/_libld.h:879:18: note: in expansion of macro 'ld_add_actrel'
     extern uintptr_t ld_add_actrel(Word, Rel_desc *, Ofl_desc *);
                      ^~~~~~~~~~~~~
    In file included from /code/illumos-gate/proto/root_i386/usr/include/iso/string_iso.h:50:0,
                     from /code/illumos-gate/proto/root_i386/usr/include/string.h:33,
                     from ../common/machrel.sparc.c:32:
    ../common/machrel.sparc.c: In function 'ld_reloc_TLS':
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: error: passing argument 10 of 'ld64_assign_got_TLS' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../common/machrel.sparc.c:1746:27: note: in expansion of macro 'NULL'
             rtype, M_R_TPOFF, NULL) == S_ERROR)
                               ^~~~
    In file included from ../common/machrel.sparc.c:39:0:
    ../common/_libld.h:686:27: note: expected 'Word {aka unsigned int}' but argument is of type 'void *'
     #define ld_assign_got_TLS ld64_assign_got_TLS
                               ^
    ../common/_libld.h:886:18: note: in expansion of macro 'ld_assign_got_TLS'
     extern uintptr_t ld_assign_got_TLS(Boolean, Rel_desc *, Ofl_desc *,
                      ^~~~~~~~~~~~~~~~~
    In file included from /code/illumos-gate/proto/root_i386/usr/include/iso/string_iso.h:50:0,
                     from /code/illumos-gate/proto/root_i386/usr/include/string.h:33,
                     from ../common/relocate.c:36:
    ../common/relocate.c: In function 'ld64_reloc_GOT_relative':
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: error: passing argument 1 of 'ld64_add_actrel' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../common/relocate.c:926:24: note: in expansion of macro 'NULL'
      return (ld_add_actrel(NULL, rsp, ofl));
                            ^~~~
    In file included from ../common/relocate.c:41:0:
    ../common/_libld.h:680:24: note: expected 'Word {aka unsigned int}' but argument is of type 'void *'
     #define ld_add_actrel  ld64_add_actrel
                            ^
    ../common/relocate.c:795:1: note: in expansion of macro 'ld_add_actrel'
     ld_add_actrel(Word flags, Rel_desc *rsp, Ofl_desc *ofl)
     ^~~~~~~~~~~~~
    In file included from /code/illumos-gate/proto/root_i386/usr/include/iso/string_iso.h:50:0,
                     from /code/illumos-gate/proto/root_i386/usr/include/string.h:33,
                     from ../common/relocate.c:36:
    ../common/relocate.c: In function 'ld64_reloc_plt':
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: error: passing argument 1 of 'ld64_add_actrel' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../common/relocate.c:1005:25: note: in expansion of macro 'NULL'
       return (ld_add_actrel(NULL, rsp, ofl));
                             ^~~~
    In file included from ../common/relocate.c:41:0:
    ../common/_libld.h:680:24: note: expected 'Word {aka unsigned int}' but argument is of type 'void *'
     #define ld_add_actrel  ld64_add_actrel
                            ^
    ../common/relocate.c:795:1: note: in expansion of macro 'ld_add_actrel'
     ld_add_actrel(Word flags, Rel_desc *rsp, Ofl_desc *ofl)
     ^~~~~~~~~~~~~
    In file included from /code/illumos-gate/proto/root_i386/usr/include/iso/string_iso.h:50:0,
                     from /code/illumos-gate/proto/root_i386/usr/include/string.h:33,
                     from ../common/relocate.c:36:
    ../common/relocate.c: In function 'reloc_exec':
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: error: passing argument 1 of 'ld64_targ.t_mr.mr_add_outrel' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../common/relocate.c:1046:42: note: in expansion of macro 'NULL'
        return ((*ld_targ.t_mr.mr_add_outrel)(NULL, rsp, ofl));
                                              ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: expected 'Word {aka unsigned int}' but argument is of type 'void *'
     #define NULL ((void *)0)
                  ^
    ../common/relocate.c:1046:42: note: in expansion of macro 'NULL'
        return ((*ld_targ.t_mr.mr_add_outrel)(NULL, rsp, ofl));
                                              ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: error: passing argument 1 of 'ld64_add_actrel' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../common/relocate.c:1053:25: note: in expansion of macro 'NULL'
       return (ld_add_actrel(NULL, rsp, ofl));
                             ^~~~
    In file included from ../common/relocate.c:41:0:
    ../common/_libld.h:680:24: note: expected 'Word {aka unsigned int}' but argument is of type 'void *'
     #define ld_add_actrel  ld64_add_actrel
                            ^
    ../common/relocate.c:795:1: note: in expansion of macro 'ld_add_actrel'
     ld_add_actrel(Word flags, Rel_desc *rsp, Ofl_desc *ofl)
     ^~~~~~~~~~~~~
    In file included from /code/illumos-gate/proto/root_i386/usr/include/iso/string_iso.h:50:0,
                     from /code/illumos-gate/proto/root_i386/usr/include/string.h:33,
                     from ../common/relocate.c:36:
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: error: passing argument 1 of 'ld64_add_actrel' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../common/relocate.c:1067:26: note: in expansion of macro 'NULL'
        return (ld_add_actrel(NULL, rsp, ofl));
                              ^~~~
    In file included from ../common/relocate.c:41:0:
    ../common/_libld.h:680:24: note: expected 'Word {aka unsigned int}' but argument is of type 'void *'
     #define ld_add_actrel  ld64_add_actrel
                            ^
    ../common/relocate.c:795:1: note: in expansion of macro 'ld_add_actrel'
     ld_add_actrel(Word flags, Rel_desc *rsp, Ofl_desc *ofl)
     ^~~~~~~~~~~~~
    In file included from /code/illumos-gate/proto/root_i386/usr/include/iso/string_iso.h:50:0,
                     from /code/illumos-gate/proto/root_i386/usr/include/string.h:33,
                     from ../common/relocate.c:36:
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: error: passing argument 1 of 'ld64_targ.t_mr.mr_add_outrel' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../common/relocate.c:1069:42: note: in expansion of macro 'NULL'
        return ((*ld_targ.t_mr.mr_add_outrel)(NULL, rsp, ofl));
                                              ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: expected 'Word {aka unsigned int}' but argument is of type 'void *'
     #define NULL ((void *)0)
                  ^
    ../common/relocate.c:1069:42: note: in expansion of macro 'NULL'
        return ((*ld_targ.t_mr.mr_add_outrel)(NULL, rsp, ofl));
                                              ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: error: passing argument 1 of 'ld64_targ.t_mr.mr_add_outrel' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../common/relocate.c:1086:41: note: in expansion of macro 'NULL'
       return ((*ld_targ.t_mr.mr_add_outrel)(NULL, rsp, ofl));
                                             ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: expected 'Word {aka unsigned int}' but argument is of type 'void *'
     #define NULL ((void *)0)
                  ^
    ../common/relocate.c:1086:41: note: in expansion of macro 'NULL'
       return ((*ld_targ.t_mr.mr_add_outrel)(NULL, rsp, ofl));
                                             ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: error: passing argument 1 of 'ld64_add_actrel' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../common/relocate.c:1282:24: note: in expansion of macro 'NULL'
      return (ld_add_actrel(NULL, rsp, ofl));
                            ^~~~
    In file included from ../common/relocate.c:41:0:
    ../common/_libld.h:680:24: note: expected 'Word {aka unsigned int}' but argument is of type 'void *'
     #define ld_add_actrel  ld64_add_actrel
                            ^
    ../common/relocate.c:795:1: note: in expansion of macro 'ld_add_actrel'
     ld_add_actrel(Word flags, Rel_desc *rsp, Ofl_desc *ofl)
     ^~~~~~~~~~~~~
    In file included from /code/illumos-gate/proto/root_i386/usr/include/iso/string_iso.h:50:0,
                     from /code/illumos-gate/proto/root_i386/usr/include/string.h:33,
                     from ../common/relocate.c:36:
    ../common/relocate.c: In function 'reloc_generic':
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: error: passing argument 1 of 'ld64_targ.t_mr.mr_add_outrel' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../common/relocate.c:1305:41: note: in expansion of macro 'NULL'
       return ((*ld_targ.t_mr.mr_add_outrel)(NULL, rsp, ofl));
                                             ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: expected 'Word {aka unsigned int}' but argument is of type 'void *'
     #define NULL ((void *)0)
                  ^
    ../common/relocate.c:1305:41: note: in expansion of macro 'NULL'
       return ((*ld_targ.t_mr.mr_add_outrel)(NULL, rsp, ofl));
                                             ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: error: passing argument 1 of 'ld64_add_actrel' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../common/relocate.c:1310:24: note: in expansion of macro 'NULL'
      return (ld_add_actrel(NULL, rsp, ofl));
                            ^~~~
    In file included from ../common/relocate.c:41:0:
    ../common/_libld.h:680:24: note: expected 'Word {aka unsigned int}' but argument is of type 'void *'
     #define ld_add_actrel  ld64_add_actrel
                            ^
    ../common/relocate.c:795:1: note: in expansion of macro 'ld_add_actrel'
     ld_add_actrel(Word flags, Rel_desc *rsp, Ofl_desc *ofl)
     ^~~~~~~~~~~~~
    In file included from /code/illumos-gate/proto/root_i386/usr/include/iso/string_iso.h:50:0,
                     from /code/illumos-gate/proto/root_i386/usr/include/string.h:33,
                     from ../common/relocate.c:36:
    ../common/relocate.c: In function 'reloc_relobj':
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../common/relocate.c:1324:17: note: in expansion of macro 'NULL'
      Word  oflags = NULL;
                     ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: error: passing argument 1 of 'ld64_add_actrel' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../common/relocate.c:1337:25: note: in expansion of macro 'NULL'
       return (ld_add_actrel(NULL, rsp, ofl));
                             ^~~~
    In file included from ../common/relocate.c:41:0:
    ../common/_libld.h:680:24: note: expected 'Word {aka unsigned int}' but argument is of type 'void *'
     #define ld_add_actrel  ld64_add_actrel
                            ^
    ../common/relocate.c:795:1: note: in expansion of macro 'ld_add_actrel'
     ld_add_actrel(Word flags, Rel_desc *rsp, Ofl_desc *ofl)
     ^~~~~~~~~~~~~
    In file included from /code/illumos-gate/proto/root_i386/usr/include/iso/string_iso.h:50:0,
                     from /code/illumos-gate/proto/root_i386/usr/include/string.h:33,
                     from ../common/relocate.c:36:
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: error: passing argument 1 of 'ld64_add_actrel' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../common/relocate.c:1385:22: note: in expansion of macro 'NULL'
        if (ld_add_actrel(NULL, rsp, ofl) == S_ERROR)
                          ^~~~
    In file included from ../common/relocate.c:41:0:
    ../common/_libld.h:680:24: note: expected 'Word {aka unsigned int}' but argument is of type 'void *'
     #define ld_add_actrel  ld64_add_actrel
                            ^
    ../common/relocate.c:795:1: note: in expansion of macro 'ld_add_actrel'
     ld_add_actrel(Word flags, Rel_desc *rsp, Ofl_desc *ofl)
     ^~~~~~~~~~~~~
    In file included from /code/illumos-gate/proto/root_i386/usr/include/iso/string_iso.h:50:0,
                     from /code/illumos-gate/proto/root_i386/usr/include/string.h:33,
                     from ../common/relocate.c:36:
    ../common/relocate.c: In function 'ld64_process_sym_reloc':
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: error: passing argument 1 of 'ld64_targ.t_mr.mr_add_outrel' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../common/relocate.c:1676:41: note: in expansion of macro 'NULL'
       return ((*ld_targ.t_mr.mr_add_outrel)(NULL, reld, ofl));
                                             ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: expected 'Word {aka unsigned int}' but argument is of type 'void *'
     #define NULL ((void *)0)
                  ^
    ../common/relocate.c:1676:41: note: in expansion of macro 'NULL'
       return ((*ld_targ.t_mr.mr_add_outrel)(NULL, reld, ofl));
                                             ^~~~
    ../common/sections.c: In function 'make_cap':
    ../common/sections.c:1694:10: error: return makes integer from pointer without a cast [-Werror=int-conversion]
       return (NULL);
              ^
    ../common/sections.c: In function 'make_dynstr':
    ../common/sections.c:2379:29: error: comparison between pointer and integer [-Werror]
        if (sdp->sd_sym->st_name == NULL)
                                 ^~
    cc1: all warnings being treated as errors

    In file included from /code/illumos-gate/proto/root_i386/usr/include/iso/stdio_iso.h:53:0,
                     from /code/illumos-gate/proto/root_i386/usr/include/stdio.h:82,
                     from ../common/update.c:37:
    ../common/update.c: In function 'update_osym':
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../common/update.c:210:22: note: in expansion of macro 'NULL'
      Word  ldynsym_cnt = NULL; /* number of items in */
                          ^~~~
    ../common/update.c:310:13: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
       versym[0] = NULL;
                 ^
    ../common/update.c:1610:8: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
       spec = NULL;
            ^
    cc1: all warnings being treated as errors

History

#1

Updated by Electric Monk 4 months ago

  • % Done changed from 90 to 100
  • Status changed from In Progress to Closed

git commit fb8f92baa78fdf1ddda6f49125fbd59366393ac8

commit  fb8f92baa78fdf1ddda6f49125fbd59366393ac8
Author: Toomas Soome <tsoome@me.com>
Date:   2019-06-24T17:58:47.000Z

    11101 libld: NULL pointer errors
    Reviewed by: Jason Lippert <jason@glasspelican.ca>
    Approved by: Dan McDonald <danmcd@joyent.com>

Also available in: Atom PDF