Opened 14 years ago
Closed 14 years ago
#990 closed Enhancement (fixed)
Warnings when compiling for OpenSUSE
Reported by: | saigkill | Owned by: | davea |
---|---|---|---|
Priority: | Minor | Milestone: | Undetermined |
Component: | Client - Daemon | Version: | 6.10.56 |
Keywords: | Cc: |
Description (last modified by )
Hello Mates, i´m compiling for openSUSE. ATM i´m getting:
boinc-client.x86_64: W: shared-lib-calls-exit /usr/lib64/libboinc_graphics2.so.6.10.56 exit@GLIBC_2.2.5 boinc-client.x86_64: W: shared-lib-calls-exit /usr/lib64/libboinc_api.so.6.10.56 exit@GLIBC_2.2.5 This library package calls exit() or _exit(), probably in a non-fork() context. Doing so from a library is strongly discouraged - when a library function calls exit(), it prevents the calling program from handling the error, reporting it to the user, closing files properly, and cleaning up any state that the program has. It is preferred for the library to return an actual error code and let the calling program decide how to handle the situation. boinc-client.x86_64: W: binary-or-shlib-calls-gethostbyname /usr/lib64/libboinc.so.6.10.56 boinc-client.x86_64: W: binary-or-shlib-calls-gethostbyname /usr/bin/boinc-client The binary calls gethostbyname(). Please port the code to use getaddrinfo().
Can we fix this?
cu Sascha
Change History (4)
comment:1 Changed 14 years ago by
Description: | modified (diff) |
---|---|
Summary: | BOINC 6.10.56: Compiler output → Warnings when compiling for OpenSUSE |
comment:2 Changed 14 years ago by
comment:3 Changed 14 years ago by
Component: | Undetermined → Client - Daemon |
---|---|
Owner: | set to davea |
gethostbyname() is deprecated and should be replaced by getaddrinfo()
comment:4 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
fixed in Linux/Mac?.
I didn't fix in Windows because
- modern network calls are supported only on Vista+
- WxWidgets? uses old network calls, and you can't mix the two
Note: See
TracTickets for help on using
tickets.
The first error isn't actually a problem. The BOINC API has a function called
boinc_exit
that cleans up some things and callsexit
. If a science app calls that, it knows it will exit afterwards.