[openssl-users] linker input file unused/linking not done gcc warning

jonetsu jonetsu at teksavvy.com
Tue Aug 2 15:38:09 UTC 2016


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/

  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: http://openssl.6102.n7.nabble.com/linker-input-file-unused-linking-not-done-gcc-warning-tp67693.html
Sent from the OpenSSL - User mailing list archive at Nabble.com.


More information about the openssl-users mailing list