Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22032

Compilation differences between gcc on redhat vs gcc on Solaris [closed]

$
0
0

I have a C program.
If I build it in Red Hat:

gcc  -O2  -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wswitch -Wshadow -Wmissing-braces -Wparentheses   -I./include -I./../include -I./../../include -I. -I./analyze   -I./include/openssl    -fPIC -D_WITH_THREADS -DPCA4 -DCLNT -DRPCSSL -DCK_GENERIC -DAES_CMAC_CRYPTO -DOID2ECPARAM -D_24a -c file.c

It compiles without error. And in:

dumpelf file.o | grep C_GetFuncnew

…appear this function.
If I compile the same cone on solaris 11, it compiles without error but:

dumpelf file.o | grep C_GetFuncnew 

…does not appear.

static void set_functions(void){
...
ck_function_list.C_GetFuncnew=     &C_GetFuncnew;
...

Why is this function not appearing ?


Viewing all articles
Browse latest Browse all 22032

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>