New issue 6 by mirekm967: Compilation error with as-needed LDFLAG.
http://code.google.com/p/socket-sentry/issues/detail?id=6
If you perform forllowing:
LDFLAGS="-Wl,--as-needed" ./install.sh
Linking CXX shared library libsocketsent-client-common.so
[ 51%] Built target socketsent-client-common
[ 52%] Building CXX object socketsentry-service/CMakeFiles/socksent-
[ 54%] Building CXX object socketsentry-service/CMakeFiles/socksent-
[ 55%] Building CXX object socketsentry-service/CMakeFiles/socksent-
[ 56%] Building CXX object socketsentry-service/CMakeFiles/socksent-
[ 58%] Building CXX object socketsentry-service/CMakeFiles/socksent-
Scanning dependencies of target socksent-client
[ 59%] Building CXX object socketsentry-service/CMakeFiles/socksent-
[ 60%] Building CXX object socketsentry-service/CMakeFiles/socksent-
[ 62%] Building CXX object socketsentry-service/CMakeFiles/socksent-
Linking CXX executable socksent-client
libsocketsent-client-common.so.0.9.1: undefined reference to
`QHostAddress::toIPv6Address() const'
libsocketsent-client-common.so.0.9.1: undefined reference to
`qHash(QHostAddress const&)'
libsocketsent-client-common.so.0.9.1: undefined reference to
`QHostAddress::toString() const'
libsocketsent-client-common.so.0.9.1: undefined reference to
`QHostAddress::QHostAddress(QString const&)'
libsocketsent-client-common.so.0.9.1: undefined reference to
`QHostAddress::QHostAddress(QHostAddress const&)'
libsocketsent-client-common.so.0.9.1: undefined reference to
`QHostAddress::~QHostAddress()'
libsocketsent-client-common.so.0.9.1: undefined reference to
`QHostAddress::protocol() const'
libsocketsent-client-common.so.0.9.1: undefined reference to
`QHostAddress::operator==(QHostAddress const&) const'
libsocketsent-client-common.so.0.9.1: undefined reference to
`QHostAddress::QHostAddress()'
libsocketsent-client-common.so.0.9.1: undefined reference to
`QHostAddress::QHostAddress(unsigned int)'
libsocketsent-client-common.so.0.9.1: undefined reference to
`QHostAddress::operator=(QHostAddress const&)'
collect2: ld returned 1 exit status
This means, that there are missing apriori dependencies of requested
libraries.
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
Comment #1 on issue 6 by r...@hasselbaum.net: Compilation error with
as-needed LDFLAG.
http://code.google.com/p/socket-sentry/issues/detail?id=6
Could not reproduce this exactly on Kubuntu Karmic, but I did get a similar
error
when building the unit tests with LDFLAGS="-Wl,--as-needed".
Comment #2 on issue 6 by r...@hasselbaum.net: Compilation error with
as-needed LDFLAG.
http://code.google.com/p/socket-sentry/issues/detail?id=6
(No comment was entered for this change.)
Comment #3 on issue 6 by r...@hasselbaum.net: Compilation error with
as-needed LDFLAG.
http://code.google.com/p/socket-sentry/issues/detail?id=6
Fixed (I hope) in rev 1e4c345d27 to land in release 0.9.2. Moved Qt/libpcap
linkages
from executables to libraries.
Now it compile fine, with as-needed too.
Thank you.