Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Star__Star
Beginner
106 Views

Unable to link glib-2.0 library in enclave

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