Print this page
4853 illumos-gate is not lint-clean when built with openssl 1.0


  43                 http_errorstr.o \
  44                 p12access.o \
  45                 p12auxpars.o \
  46                 p12auxutl.o \
  47                 p12err.o \
  48                 p12misc.o \
  49                 parseURL.o
  50 COM_SRCS =      $(COM_OBJS:%.o=$(COM_DIR)/%.c)
  51 
  52 # List of common DHCP modules.
  53 DHCP_DIR =      $(SRC)/common/net/dhcp
  54 DHCP_OBJS =     dhcpinfo.o
  55 DHCP_SRCS =     $(DHCP_OBJS:%.o=$(DHCP_DIR)/%.c)
  56 
  57 OBJECTS =       $(LOC_OBJS) $(COM_OBJS) $(DHCP_OBJS)
  58 
  59 include ../../Makefile.lib
  60 
  61 LIBS +=         $(LINTLIB)
  62 LDLIBS +=       -lnvpair -lresolv -lnsl -lsocket -ldevinfo -ldhcputil \
  63                 -linetutil -lc -lcrypto -lssl





  64 CPPFLAGS =      -I$(SRC)/common/net/wanboot/crypt $(CPPFLAGS.master)
  65 CERRWARN +=     -_gcc=-Wno-switch
  66 CERRWARN +=     -_gcc=-Wno-parentheses
  67 CERRWARN +=     -_gcc=-Wno-unused-value
  68 CERRWARN +=     -_gcc=-Wno-uninitialized
  69 
  70 # Must override SRCS from Makefile.lib since sources have
  71 # multiple source directories.
  72 SRCS =          $(LOC_SRCS) $(COM_SRCS) $(DHCP_SRCS)
  73 
  74 # Must define location of lint library source.
  75 SRCDIR =        $(LOC_DIR)
  76 $(LINTLIB) :=   SRCS = $(SRCDIR)/$(LINTSRC)
  77 
  78 # OpenSSL requires us to turn this off
  79 LINTFLAGS   +=    -erroff=E_BAD_PTR_CAST_ALIGN
  80 LINTFLAGS64 +=    -erroff=E_BAD_PTR_CAST_ALIGN





  81 
  82 CFLAGS +=       $(CCVERBOSE)
  83 CPPFLAGS +=     -I$(LOC_DIR) -I$(COM_DIR) -I$(DHCP_DIR)
  84 
  85 .KEEP_STATE:
  86 
  87 all: $(LIBS)
  88 
  89 lint: lintcheck
  90 
  91 pics/%.o: $(COM_DIR)/%.c
  92         $(COMPILE.c) -o $@ $<
  93         $(POST_PROCESS_O)
  94 
  95 pics/%.o: $(DHCP_DIR)/%.c
  96         $(COMPILE.c) -o $@ $<
  97         $(POST_PROCESS_O)
  98 
  99 include ../../Makefile.targ


  43                 http_errorstr.o \
  44                 p12access.o \
  45                 p12auxpars.o \
  46                 p12auxutl.o \
  47                 p12err.o \
  48                 p12misc.o \
  49                 parseURL.o
  50 COM_SRCS =      $(COM_OBJS:%.o=$(COM_DIR)/%.c)
  51 
  52 # List of common DHCP modules.
  53 DHCP_DIR =      $(SRC)/common/net/dhcp
  54 DHCP_OBJS =     dhcpinfo.o
  55 DHCP_SRCS =     $(DHCP_OBJS:%.o=$(DHCP_DIR)/%.c)
  56 
  57 OBJECTS =       $(LOC_OBJS) $(COM_OBJS) $(DHCP_OBJS)
  58 
  59 include ../../Makefile.lib
  60 
  61 LIBS +=         $(LINTLIB)
  62 LDLIBS +=       -lnvpair -lresolv -lnsl -lsocket -ldevinfo -ldhcputil \
  63                 -linetutil -lc
  64 
  65 # libcrypto and libssl have no lint library, so we can only use it when
  66 # building
  67 $(DYNLIB) := LDLIBS += -lcrypto -lssl
  68 
  69 CPPFLAGS =      -I$(SRC)/common/net/wanboot/crypt $(CPPFLAGS.master)
  70 CERRWARN +=     -_gcc=-Wno-switch
  71 CERRWARN +=     -_gcc=-Wno-parentheses
  72 CERRWARN +=     -_gcc=-Wno-unused-value
  73 CERRWARN +=     -_gcc=-Wno-uninitialized
  74 
  75 # Must override SRCS from Makefile.lib since sources have
  76 # multiple source directories.
  77 SRCS =          $(LOC_SRCS) $(COM_SRCS) $(DHCP_SRCS)
  78 
  79 # Must define location of lint library source.
  80 SRCDIR =        $(LOC_DIR)
  81 $(LINTLIB) :=   SRCS = $(SRCDIR)/$(LINTSRC)
  82 
  83 # OpenSSL requires us to turn this off
  84 LINTFLAGS   +=    -erroff=E_BAD_PTR_CAST_ALIGN
  85 LINTFLAGS64 +=    -erroff=E_BAD_PTR_CAST_ALIGN
  86 
  87 # OpenSSLs API includes some macro expansions that are incompatible with lint,
  88 # depending on the version of OpenSSL used
  89 LINTFLAGS   +=    -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
  90 LINTFLAGS64 +=    -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
  91 
  92 CFLAGS +=       $(CCVERBOSE)
  93 CPPFLAGS +=     -I$(LOC_DIR) -I$(COM_DIR) -I$(DHCP_DIR)
  94 
  95 .KEEP_STATE:
  96 
  97 all: $(LIBS)
  98 
  99 lint: lintcheck
 100 
 101 pics/%.o: $(COM_DIR)/%.c
 102         $(COMPILE.c) -o $@ $<
 103         $(POST_PROCESS_O)
 104 
 105 pics/%.o: $(DHCP_DIR)/%.c
 106         $(COMPILE.c) -o $@ $<
 107         $(POST_PROCESS_O)
 108 
 109 include ../../Makefile.targ