Project

General

Profile

Bug #11106

elfedit: NULL pointer errors

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

Status:
Closed
Priority:
Normal
Assignee:
Category:
cmd - userland programs
Start date:
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/stdio_iso.h:53:0,
                     from /code/illumos-gate/proto/root_i386/usr/include/stdio.h:82,
                     from ../common/syminfo.c:27:
    ../common/syminfo.c: In function 'elfedit32_init':
    /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/syminfo.c:799:26: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_O, NULL,
                              ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_si_boundto[1].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/syminfo.c:799:26: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_O, NULL,
                              ^~~~
    /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/syminfo.c:823:28: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_AND, NULL, ELFEDIT_CMDOA_F_INHERIT,
                                ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_si_flags[0].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/syminfo.c:823:28: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_AND, NULL, ELFEDIT_CMDOA_F_INHERIT,
                                ^~~~
    /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/syminfo.c:825:28: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_CMP, NULL,
                                ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_si_flags[1].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/syminfo.c:825:28: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_CMP, NULL,
                                ^~~~
    /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/syminfo.c:827:26: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_O, NULL,
                              ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_si_flags[2].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/syminfo.c:827:26: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_O, NULL,
                              ^~~~
    /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/syminfo.c:829:27: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_OR, NULL, ELFEDIT_CMDOA_F_INHERIT,
                               ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_si_flags[3].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/syminfo.c:829:27: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_OR, NULL, ELFEDIT_CMDOA_F_INHERIT,
                               ^~~~
    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/sym.c:29:
    ../common/sym.c: In function 'elfedit32_init':
    /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/sym.c:1692:29: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_NAME), NULL, 0 },
                                 ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_std[1].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/sym.c:1692:29: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_NAME), NULL, 0 },
                                 ^~~~
    /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/sym.c:1697:30: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_INDEX), NULL, 0 },
                                  ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_std[3].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/sym.c:1697:30: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_INDEX), NULL, 0 },
                                  ^~~~
    /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/sym.c:1702:29: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_TYPE), NULL, 0 },
                                 ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_std[5].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/sym.c:1702:29: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_TYPE), NULL, 0 },
                                 ^~~~
    /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/sym.c:1706:26: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_O, NULL,
                              ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_std[7].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/sym.c:1706:26: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_O, NULL,
                              ^~~~
    /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/sym.c:1722:29: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_NAME), NULL, 0 },
                                 ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_dump[1].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/sym.c:1722:29: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_NAME), NULL, 0 },
                                 ^~~~
    /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/sym.c:1727:30: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_INDEX), NULL, 0 },
                                  ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_dump[3].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/sym.c:1727:30: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_INDEX), NULL, 0 },
                                  ^~~~
    /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/sym.c:1732:29: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_TYPE), NULL, 0 },
                                 ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_dump[5].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/sym.c:1732:29: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_TYPE), NULL, 0 },
                                 ^~~~
    /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/sym.c:1784:29: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_NAME), NULL, 0, 0 },
                                 ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_st_name[1].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/sym.c:1784:29: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_NAME), NULL, 0, 0 },
                                 ^~~~
    /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/sym.c:1789:30: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_INDEX), NULL, 0, 0 },
                                  ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_st_name[3].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/sym.c:1789:30: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_INDEX), NULL, 0, 0 },
                                  ^~~~
    /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/sym.c:1794:29: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_TYPE), NULL, 0, 0 },
                                 ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_st_name[5].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/sym.c:1794:29: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_TYPE), NULL, 0, 0 },
                                 ^~~~
    /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/sym.c:1803:26: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_O, NULL,
                              ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_st_name[8].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/sym.c:1803:26: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_O, NULL,
                              ^~~~
    /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/sym.c:1845:29: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_NAME), NULL, 0, 0 },
                                 ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_st_shndx[2].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/sym.c:1845:29: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_NAME), NULL, 0, 0 },
                                 ^~~~
    /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/sym.c:1850:30: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_INDEX), NULL, 0, 0 },
                                  ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_st_shndx[4].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/sym.c:1850:30: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_INDEX), NULL, 0, 0 },
                                  ^~~~
    /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/sym.c:1855:29: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_TYPE), NULL, 0, 0 },
                                 ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_st_shndx[6].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/sym.c:1855:29: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_TYPE), NULL, 0, 0 },
                                 ^~~~
    /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/sym.c:1860:26: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_O, NULL,
                              ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_st_shndx[8].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/sym.c:1860:26: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_O, NULL,
                              ^~~~
    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/str.c:27:
    ../common/str.c: In function 'elfedit32_init':
    /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/str.c:951:26: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_O, NULL,
                              ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_dump[1].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/str.c:951:26: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_O, NULL,
                              ^~~~
    /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/str.c:957:29: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_NAME), NULL, 0 },
                                 ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_dump[3].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/str.c:957:29: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_NAME), NULL, 0 },
                                 ^~~~
    /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/str.c:962:30: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_INDEX), NULL, 0 },
                                  ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_dump[5].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/str.c:962:30: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_INDEX), NULL, 0 },
                                  ^~~~
    /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/str.c:967:29: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_TYPE), NULL, 0 },
                                 ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_dump[7].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/str.c:967:29: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_TYPE), NULL, 0 },
                                 ^~~~
    /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/str.c:990:26: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_O, NULL,
                              ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_set[1].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/str.c:990:26: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_O, NULL,
                              ^~~~
    /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/str.c:1000:29: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_NAME), NULL, 0 },
                                 ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_set[4].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/str.c:1000:29: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_NAME), NULL, 0 },
                                 ^~~~
    /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/str.c:1005:30: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_INDEX), NULL, 0 },
                                  ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_set[6].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/str.c:1005:30: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_INDEX), NULL, 0 },
                                  ^~~~
    /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/str.c:1010:29: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_TYPE), NULL, 0 },
                                 ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_set[8].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/str.c:1010:29: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_TYPE), NULL, 0 },
                                 ^~~~
    /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/str.c:1033:26: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_O, NULL,
                              ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_add[0].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/str.c:1033:26: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_O, NULL,
                              ^~~~
    /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/str.c:1039:29: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_NAME), NULL, 0 },
                                 ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_add[2].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/str.c:1039:29: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_NAME), NULL, 0 },
                                 ^~~~
    /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/str.c:1044:30: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_INDEX), NULL, 0 },
                                  ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_add[4].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/str.c:1044:30: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_INDEX), NULL, 0 },
                                  ^~~~
    /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/str.c:1049:29: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_TYPE), NULL, 0 },
                                 ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_add[6].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/str.c:1049:29: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_TYPE), NULL, 0 },
                                 ^~~~
    /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/str.c:1068:26: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_O, NULL,
                              ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_zero[1].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/str.c:1068:26: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_O, NULL,
                              ^~~~
    /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/str.c:1074:29: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_NAME), NULL, 0 },
                                 ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_zero[3].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/str.c:1074:29: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_NAME), NULL, 0 },
                                 ^~~~
    /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/str.c:1079:30: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_INDEX), NULL, 0 },
                                  ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_zero[5].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/str.c:1079:30: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_INDEX), NULL, 0 },
                                  ^~~~
    /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/str.c:1084:29: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_TYPE), NULL, 0 },
                                 ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_zero[7].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/str.c:1084:29: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_TYPE), NULL, 0 },
                                 ^~~~

    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/shdr.c:27:
    ../common/shdr.c: In function 'elfedit32_init':
    /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/shdr.c:942:26: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_O, NULL,
                              ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_std[0].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/shdr.c:942:26: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_O, NULL,
                              ^~~~
    /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/shdr.c:960:26: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_O, NULL,
                              ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_infolink[0].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/shdr.c:960:26: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_O, NULL,
                              ^~~~
    /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/shdr.c:1055:28: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_AND, NULL,
                                ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_sh_flags[0].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/shdr.c:1055:28: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_AND, NULL,
                                ^~~~
    /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/shdr.c:1057:28: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_CMP, NULL,
                                ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_sh_flags[1].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/shdr.c:1057:28: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_CMP, NULL,
                                ^~~~
    /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/shdr.c:1059:26: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_O, NULL,
                              ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_sh_flags[2].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/shdr.c:1059:26: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_O, NULL,
                              ^~~~
    /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/shdr.c:1061:27: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_OR, NULL,
                               ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_sh_flags[3].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/shdr.c:1061:27: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_OR, NULL,
                               ^~~~
    /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/shdr.c:1123:26: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_O, NULL,
                              ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_sh_name[1].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/shdr.c:1123:26: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_O, NULL,
                              ^~~~

    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 ../../../include/elfedit.h:30,
                     from ../common/phdr.c:27:
    ../common/phdr.c: In function 'elfedit32_init':
    /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/phdr.c:1081:26: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_O, NULL,
                              ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_std[0].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/phdr.c:1081:26: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_O, NULL,
                              ^~~~
    /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/phdr.c:1206:28: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_AND, NULL,
                                ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_p_flags[0].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/phdr.c:1206:28: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_AND, NULL,
                                ^~~~
    /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/phdr.c:1208:28: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_CMP, NULL,
                                ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_p_flags[1].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/phdr.c:1208:28: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_CMP, NULL,
                                ^~~~
    /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/phdr.c:1214:26: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_O, NULL,
                              ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_p_flags[3].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/phdr.c:1214:26: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_O, NULL,
                              ^~~~
    /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/phdr.c:1216:27: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_OR, NULL,
                               ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_p_flags[4].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/phdr.c:1216:27: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_OR, NULL,
                               ^~~~
    /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/phdr.c:1250:26: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_O, NULL,
                              ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_interp[0].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/phdr.c:1250:26: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_O, NULL,
                              ^~~~

    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/ehdr.c:27:
    ../common/ehdr.c: In function 'elfedit32_init':
    /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/ehdr.c:1766:26: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_O, NULL,
                              ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_std[0].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/ehdr.c:1766:26: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_O, NULL,
                              ^~~~
    /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/ehdr.c:1864:28: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_AND, NULL,
                                ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_e_flags[0].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/ehdr.c:1864:28: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_AND, NULL,
                                ^~~~
    /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/ehdr.c:1866:28: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_CMP, NULL,
                                ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_e_flags[1].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/ehdr.c:1866:28: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_CMP, NULL,
                                ^~~~
    /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/ehdr.c:1868:26: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_O, NULL,
                              ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_e_flags[2].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/ehdr.c:1868:26: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_O, NULL,
                              ^~~~
    /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/ehdr.c:1870:27: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_OR, NULL,
                               ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_e_flags[3].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/ehdr.c:1870:27: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_OR, NULL,
                               ^~~~
    /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/ehdr.c:1941:26: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_O, NULL,
                              ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_e_shstrndx[0].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/ehdr.c:1941:26: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_O, NULL,
                              ^~~~
    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 ../../../include/elfedit.h:30,
                     from ../common/dyn.c:28:
    ../common/dyn.c: In function 'elfedit32_init':
    /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/dyn.c:1849:26: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_O, NULL,
                              ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_ostyle[0].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/dyn.c:1849:26: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_O, NULL,
                              ^~~~
    /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/dyn.c:1856:28: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_AND, NULL,
                                ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_ostyle_bitop[0].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/dyn.c:1856:28: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_AND, NULL,
                                ^~~~
    /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/dyn.c:1858:28: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_CMP, NULL,
                                ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_ostyle_bitop[1].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/dyn.c:1858:28: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_CMP, NULL,
                                ^~~~
    /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/dyn.c:1860:26: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_O, NULL,
                              ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_ostyle_bitop[2].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/dyn.c:1860:26: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_O, NULL,
                              ^~~~
    /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/dyn.c:1862:27: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_OR, NULL,
                               ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_ostyle_bitop[3].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/dyn.c:1862:27: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_OR, NULL,
                               ^~~~
    /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/dyn.c:1898:26: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_O, NULL,
                              ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_tag[1].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/dyn.c:1898:26: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_O, NULL,
                              ^~~~
    /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/dyn.c:1926:26: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_O, NULL,
                              ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_value[2].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/dyn.c:1926:26: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_O, NULL,
                              ^~~~
    /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/dyn.c:1993:28: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_AND, NULL,
                                ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_posflag1[0].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/dyn.c:1993:28: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_AND, NULL,
                                ^~~~
    /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/dyn.c:1995:28: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_CMP, NULL,
                                ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_posflag1[1].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/dyn.c:1995:28: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_CMP, NULL,
                                ^~~~
    /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/dyn.c:2002:30: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_INDEX), NULL, 0, 0 },
                                  ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_posflag1[3].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/dyn.c:2002:30: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_INDEX), NULL, 0, 0 },
                                  ^~~~
    /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/dyn.c:2008:31: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_PREFIX), NULL, 0, 0 },
                                   ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_posflag1[5].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/dyn.c:2008:31: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_PREFIX), NULL, 0, 0 },
                                   ^~~~
    /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/dyn.c:2009:26: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_O, NULL,
                              ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_posflag1[6].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/dyn.c:2009:26: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_O, NULL,
                              ^~~~
    /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/dyn.c:2011:27: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_OR, NULL,
                               ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_posflag1[7].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/dyn.c:2011:27: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_OR, NULL,
                               ^~~~
    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 ../../../include/elfedit.h:30,
                     from ../common/cap.c:29:
    ../common/cap.c: In function 'elfedit32_init':
    /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/cap.c:1240:28: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_AND, NULL,
                                ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_ostyle_capid_bitop[0].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/cap.c:1240:28: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_AND, NULL,
                                ^~~~
    /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/cap.c:1246:31: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_IDNAME), NULL, 0 },
                                   ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_ostyle_capid_bitop[2].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/cap.c:1246:31: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_IDNAME), NULL, 0 },
                                   ^~~~
    /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/cap.c:1247:28: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_CMP, NULL,
                                ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_ostyle_capid_bitop[3].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/cap.c:1247:28: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_CMP, NULL,
                                ^~~~
    /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/cap.c:1249:26: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_O, NULL,
                              ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_ostyle_capid_bitop[4].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/cap.c:1249:26: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_O, NULL,
                              ^~~~
    /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/cap.c:1251:27: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_OR, NULL,
                               ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_ostyle_capid_bitop[5].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/cap.c:1251:27: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_OR, NULL,
                               ^~~~
    /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/cap.c:1262:31: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_IDNAME), NULL, 0 },
                                   ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_capid_capndx[1].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/cap.c:1262:31: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_IDNAME), NULL, 0 },
                                   ^~~~
    /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/cap.c:1293:31: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_IDNAME), NULL, 0 },
                                   ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_tag[1].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/cap.c:1293:31: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_IDNAME), NULL, 0 },
                                   ^~~~
    /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/cap.c:1298:26: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_O, NULL,
                              ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_tag[3].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/cap.c:1298:26: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_O, NULL,
                              ^~~~
    /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/cap.c:1322:31: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_IDNAME), NULL, 0 },
                                   ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_value[1].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/cap.c:1322:31: note: in expansion of macro 'NULL'
       { MSG_ORIG(MSG_STR_IDNAME), NULL, 0 },
                                   ^~~~
    /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/cap.c:1327:26: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_O, NULL,
                              ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'opt_value[3].oa_help')
     #define NULL ((void *)0)
                  ^
    ../common/cap.c:1327:26: note: in expansion of macro 'NULL'
       { ELFEDIT_STDOA_OPT_O, NULL,
                              ^~~~
    ./common/elfedit.c: In function 'validate_optarg':
    ../common/elfedit.c:1679:22: error: comparison between pointer and integer [-Werror]
        if ((oa1->oa_help != NULL) || (oa1->oa_flags != 0) ||
                          ^~
    ../common/elfedit.c: In function 'cmd_match_fcn':
    ../common/elfedit.c:3228:55: error: comparison between pointer and integer [-Werror]
       if ((strcmp(argv[i], MSG_ORIG(MSG_STR_MINUS_MINUS)) == 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 9320f4959b6c72e7a6d056623827091cace259ee

commit  9320f4959b6c72e7a6d056623827091cace259ee
Author: Toomas Soome <tsoome@me.com>
Date:   2019-06-24T18:05:53.000Z

    11106 elfedit: NULL pointer errors
    Reviewed by: John Levon <john.levon@joyent.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Also available in: Atom PDF