Intel® Software Guard Extensions (Intel® SGX)
Discussion board focused on hardware-based isolation and memory encryption to provide extended code protection in solutions.

Unable to link glib-2.0 library in enclave

Star__Star
Beginner
981 Views

Hi,

I need to use the glib-2.0 library in a program. So, I've tried to link the required library. However, I got an error that the functions used in my code (which are defined in glib-2.0 library) are not defined. Something like the following error.

LINK => nnenc.so

[check_symbol_table elfparser.cpp:231] symbol 'g_byte_array_set_size' is undefined

My makefile looks like the following (plus the SGX flags, because I just put the extra flags here):

Nnenc_Link_Flags := -lgmp \ -lpbc \ -lbswabe \ -lcrypto -lgmp\ -L/usr/local/lib -lpbc\ -Wl,-Bdynamic -L /usr/lib/x86_64-linux-gnu -lglib-2.0

It is worth mentioning that I have tried the following options as well and I got the same error.

Nnenc_Link_Flags := -lgmp \ -lpbc \ -lbswabe \ -lcrypto -lgmp\ -L/usr/local/lib -lpbc\ -L/usr/lib/x86_64-linux-gnu -lglib-2.0

I do not know what is wrong with my linker because I included the required headers and libraries.

Would you please let me know how can I solve this problem.

LINK => nnenc.so

[check_symbol_table elfparser.cpp:231] symbol 'g_byte_array_set_size' is undefined

0 Kudos
0 Replies
Reply