"Declaration Is Incompatible with "Int Getnameinfo(. .." While Installing Trimaran

"Declaration Is Incompatible with "Int Getnameinfo(. .." While Installing Trimaran

I'm having the same issue as posted here, but in my case, using Ubuntu 12.04 LTS Live USB, inside ~/trimaran/openimpact folder.

I try to execute ./install_openimpact, then the shell replies me at the end:

Processing platform/x86lin_gcc/IPA_lib/__impact_lib.c
gcc -w -E -m32 -DIMPACT_FIX -I/home/ubuntu/trimaran/openimpact/platform/x86lin_gcc/include -I/home/ubuntu/trimaran/openimpact/include -I/home/ubuntu/trimaran/openimpact/config/x86lin_c platform/x86lin_gcc/IPA_lib/__impact_lib.c > platform/x86lin_gcc/IPA_lib/__impact_lib.i
impact-edgcpfe --pcode -m -w platform/x86lin_gcc/IPA_lib/__impact_lib.i
"platform/x86lin_gcc/IPA_lib/__impact_lib.c", line 1943: error: declaration is
          incompatible with "int getnameinfo(const struct sockaddr
          *__restrict__, socklen_t, char *__restrict__, socklen_t, char
          *__restrict__, socklen_t, int)" (declared at line 679 of
          "/usr/include/netdb.h")
  int getnameinfo(const struct sockaddr *sa, socklen_t salen, char *host,
      ^

1 error detected in the compilation of "platform/x86lin_gcc/IPA_lib/__impact_lib.i".
Exiting: non-zero exit code
make[1]: *** [platform/x86lin_gcc/IPA_lib/__impact_lib.pst] Error 1
make[1]: Leaving directory `/home/ubuntu/trimaran/openimpact'
make: *** [all] Error 2

Any ideas?

1 Answer

Open the file platform/x86lin_gcc/IPA_lib/__impact_lib.c and go to line NO: 1943 then in the function getnameinfo( ) change the last parameter from unsigned int flags to only int flags then try installing and the software openimpact will install successfully.

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

David Miller
Author

David Miller

David Miller brings 15 years of experience in global economics, personal finance strategy, and market dynamics. He specializes in turning complex economic trends into actionable insights for everyday readers.