Topic: Linker Errors

I am attempting to use additional functions from libpbc in the ssl.c file, and it is giving these linker errors when i run make. I have attempted to add libpbc and libgmp paths to LDFLAGS on the configure line, as well as adding them to the includes in ssl.c and it still gives the same error. I have attached a diff file for the ssl changes, as well as the linker errors .

https://imagizer.imageshack.com/img924/497/qKkfa4.jpg

Any help would be greatly appreciated.
Thanks

Post's attachments

ssl.patch 6.43 kb, 1 downloads since 2021-08-30 

You don't have the permssions to download the attachments of this post.

Share

Re: Linker Errors

Hi Mohannad,

Looks like you are building a shared library. Please try building as a static lib:
`./configure --enable-static --disable-shared`

Thanks,
Eric @ wolfSSL Support

Re: Linker Errors

Hi Eric,

Thank you for your response! I tried building as a static lib, unfortunately it gives the same error

https://imagizer.imageshack.com/img924/7327/r4FlwW.jpg

Any other suggestions would be greatly appreciated,

Share

Re: Linker Errors

Hello Mohannad,

Can you post your full configure line including LDFLAGS?  Does adding libgmp/pbc LDflags like this help?  LDFLAGS="-lpbc -lgmp ./configure ..."

Thanks,
Kareem

Share