sbsigntool failed to compile on Solaris system " sbkeysync.c", line 281: warning: pointer to void or function used in arithmetic"

Asked by mat troi

Hi,

When I compile sbsigntool package on a Solaris system, I got warnings below and compilation failed:
"/home/mt/sbsigntool/sbsigntool-0.6/src/sbkeysync.c", line 281: warning: pointer to void or function used in arithmetic
"/home/mt/sbsigntool/sbsigntool-0.6/src/sbkeysync.c", line 286: warning: pointer to void or function used in arithmetic
"/home/mt/sbsigntool/sbsigntool-0.6/src/sbkeysync.c", line 303: warning: pointer to void or function used in arithmetic
"/home/mt/sbsigntool/sbsigntool-0.6/src/sbkeysync.c", line 393: warning: attribute "format" is unknown, ignored
"/home/mt/sbsigntool/sbsigntool-0.6/src/sbkeysync.c", line 463: warning: pointer to void or function used in arithmetic

I looked online and it looks like arithmetic on void pointer is not supported in C standard, but is supported with GNU C. Has anyone seen similar issue and know how to fix?

Thanks,
Mat

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu sbsigntool Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

This is Ubuntu support only, not Solaris. I suggest you post on a Solaris forum.

Revision history for this message
Jeremy Kerr (jk-ozlabs) said :
#2

sbsigntool does use pointer arithmetic on void * types, which is a gcc extension. With the code as it is now, you'll need to use gcc to compile it.

However, even if it does compile, it'll probably be useless on a Solaris system. The EFI variable interface that sbkeysync uses is specific to the Linux kernel.

Can you help with this problem?

Provide an answer of your own, or ask mat troi for more information if necessary.

To post a message you must log in.