<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On 08/02/2016 10:38 AM, jonetsu wrote:<br>
    <blockquote cite="mid:1470152289481-67693.post@n7.nabble.com"
      type="cite">
      <pre wrap="">Hello,

Is it normal to get a 'linker imput file unused because linking
not done' warning when compiling C code that uses OpenSSL in FIPS
mode, hence using fipsld ?

The object file is actually generated,a s well as the executable,
and it does execute in a meaningful manner.

The warning:

  [...]

  gcc: warning: /usr/include/openssl/: linker input file unused
  because linking not done

  FIPSLD_CC=gcc /usr/lib/ssl/fips-2.0/bin/fipsld -o
  fips_hmac-errCode fips_hmac-errCode.o /usr/lib/arm-li
  nux-gnueabihf/libcrypto.a -ldl -lz


The simple Makefile:

  OPENSSLDIR = /usr/lib/ssl
  LIBCRYPTO = /usr/lib/arm-linux-gnueabihf/libcrypto.a
  INCLUDES = /usr/include/openssl/
</pre>
    </blockquote>
    <br>
    The later usage makes it seem like this should be
    -I/usr/include/openssl/ , including the "-I".<br>
    <br>
    -Ben<br>
    <br>
    <blockquote cite="mid:1470152289481-67693.post@n7.nabble.com"
      type="cite">
      <pre wrap="">
  CMD = fips_hmac-errCode
  OBJS = $(CMD).o
  $(CMD): $(OBJS)
          FIPSLD_CC=$(CC) $(OPENSSLDIR)/fips-2.0/bin/fipsld -o $(CMD)
$(OBJS) $(LIBCRYPTO) -ldl -lz

  $(OBJS): $(CMD).c
          $(CC) -c $(CMD).c $(INCLUDES)
  clean:
          rm $(OBJS)


Thanks.




--
View this message in context: <a class="moz-txt-link-freetext" href="http://openssl.6102.n7.nabble.com/linker-input-file-unused-linking-not-done-gcc-warning-tp67693.html">http://openssl.6102.n7.nabble.com/linker-input-file-unused-linking-not-done-gcc-warning-tp67693.html</a>
Sent from the OpenSSL - User mailing list archive at Nabble.com.
</pre>
    </blockquote>
    <br>
  </body>
</html>