linker input file unused/linking not done gcc warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 08/02/2016 10:38 AM, jonetsu wrote:
> 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/

The later usage makes it seem like this should be
-I/usr/include/openssl/ , including the "-I".

-Ben

>   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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mta.openssl.org/pipermail/openssl-users/attachments/20160802/97b95197/attachment-0001.html>


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux