[
https://issues.apache.org/jira/browse/LOGCXX-520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17310999#comment-17310999
]
Nicholas Clark edited comment on LOGCXX-520 at 3/29/21, 9:36 PM:
-----------------------------------------------------------------
I'll also note that I am using a different sqlite3 version than what is on the
system, hence the different APR and APR-Util installs. So not necessarily
related to what this issue was for, but when I have the unixODBC-devel package
present, it seems to throw a bunch of errors during the build. I was able to
build without unixODBC support.
{code:java}
[ 55%] Linking CXX executable propertyconfiguratortest
../../main/cpp/liblog4cxx.so.11.0.0: undefined reference to `SQLDisconnect'
../../main/cpp/liblog4cxx.so.11.0.0: undefined reference to `SQLFreeHandle'
../../main/cpp/liblog4cxx.so.11.0.0: undefined reference to `SQLAllocHandle'
../../main/cpp/liblog4cxx.so.11.0.0: undefined reference to `SQLConnectW'
../../main/cpp/liblog4cxx.so.11.0.0: undefined reference to `SQLExecDirectW'
../../main/cpp/liblog4cxx.so.11.0.0: undefined reference to `SQLGetDiagRecA'
../../main/cpp/liblog4cxx.so.11.0.0: undefined reference to `SQLSetEnvAttr'
collect2: error: ld returned 1 exit status
make[2]: *** [src/test/cpp/propertyconfiguratortest] Error 1
make[1]: *** [src/test/cpp/CMakeFiles/propertyconfiguratortest.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 55%] Linking CXX executable streamtestcase
../../main/cpp/liblog4cxx.so.11.0.0: undefined reference to `SQLDisconnect'
../../main/cpp/liblog4cxx.so.11.0.0: undefined reference to `SQLFreeHandle'
../../main/cpp/liblog4cxx.so.11.0.0: undefined reference to `SQLAllocHandle'
../../main/cpp/liblog4cxx.so.11.0.0: undefined reference to `SQLConnectW'
../../main/cpp/liblog4cxx.so.11.0.0: undefined reference to `SQLExecDirectW'
../../main/cpp/liblog4cxx.so.11.0.0: undefined reference to `SQLGetDiagRecA'
../../main/cpp/liblog4cxx.so.11.0.0: undefined reference to `SQLSetEnvAttr'
collect2: error: ld returned 1 exit status
make[2]: *** [src/test/cpp/streamtestcase] Error 1
make[1]: *** [src/test/cpp/CMakeFiles/streamtestcase.dir/all] Error 2
[ 56%] Linking CXX executable multithreadtest
../../main/cpp/liblog4cxx.so.11.0.0: undefined reference to `SQLDisconnect'
../../main/cpp/liblog4cxx.so.11.0.0: undefined reference to `SQLFreeHandle'
../../main/cpp/liblog4cxx.so.11.0.0: undefined reference to `SQLAllocHandle'
../../main/cpp/liblog4cxx.so.11.0.0: undefined reference to `SQLConnectW'
../../main/cpp/liblog4cxx.so.11.0.0: undefined reference to `SQLExecDirectW'
../../main/cpp/liblog4cxx.so.11.0.0: undefined reference to `SQLGetDiagRecA'
../../main/cpp/liblog4cxx.so.11.0.0: undefined reference to `SQLSetEnvAttr'
collect2: error: ld returned 1 exit status
make[2]: *** [src/test/cpp/multithreadtest] Error 1
make[1]: *** [src/test/cpp/CMakeFiles/multithreadtest.dir/all] Error 2
make: *** [all] Error 2{code}
It's not that big of a concern if it doesn't have ODBC support as at the moment
I am not using ODBC with log4cxx.
was (Author: nicholas.clark):
I'll also note that I am using a different sqlite3 version than what is on the
system, hence the different APR and APR-Util installs. So not necessarily
related to what this issue was for, but when I have the unixODBC-devel package
present, it seems to through a bunch of errors during the build. I was able to
build without unixODBC support.
{code:java}
[ 55%] Linking CXX executable propertyconfiguratortest
../../main/cpp/liblog4cxx.so.11.0.0: undefined reference to `SQLDisconnect'
../../main/cpp/liblog4cxx.so.11.0.0: undefined reference to `SQLFreeHandle'
../../main/cpp/liblog4cxx.so.11.0.0: undefined reference to `SQLAllocHandle'
../../main/cpp/liblog4cxx.so.11.0.0: undefined reference to `SQLConnectW'
../../main/cpp/liblog4cxx.so.11.0.0: undefined reference to `SQLExecDirectW'
../../main/cpp/liblog4cxx.so.11.0.0: undefined reference to `SQLGetDiagRecA'
../../main/cpp/liblog4cxx.so.11.0.0: undefined reference to `SQLSetEnvAttr'
collect2: error: ld returned 1 exit status
make[2]: *** [src/test/cpp/propertyconfiguratortest] Error 1
make[1]: *** [src/test/cpp/CMakeFiles/propertyconfiguratortest.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 55%] Linking CXX executable streamtestcase
../../main/cpp/liblog4cxx.so.11.0.0: undefined reference to `SQLDisconnect'
../../main/cpp/liblog4cxx.so.11.0.0: undefined reference to `SQLFreeHandle'
../../main/cpp/liblog4cxx.so.11.0.0: undefined reference to `SQLAllocHandle'
../../main/cpp/liblog4cxx.so.11.0.0: undefined reference to `SQLConnectW'
../../main/cpp/liblog4cxx.so.11.0.0: undefined reference to `SQLExecDirectW'
../../main/cpp/liblog4cxx.so.11.0.0: undefined reference to `SQLGetDiagRecA'
../../main/cpp/liblog4cxx.so.11.0.0: undefined reference to `SQLSetEnvAttr'
collect2: error: ld returned 1 exit status
make[2]: *** [src/test/cpp/streamtestcase] Error 1
make[1]: *** [src/test/cpp/CMakeFiles/streamtestcase.dir/all] Error 2
[ 56%] Linking CXX executable multithreadtest
../../main/cpp/liblog4cxx.so.11.0.0: undefined reference to `SQLDisconnect'
../../main/cpp/liblog4cxx.so.11.0.0: undefined reference to `SQLFreeHandle'
../../main/cpp/liblog4cxx.so.11.0.0: undefined reference to `SQLAllocHandle'
../../main/cpp/liblog4cxx.so.11.0.0: undefined reference to `SQLConnectW'
../../main/cpp/liblog4cxx.so.11.0.0: undefined reference to `SQLExecDirectW'
../../main/cpp/liblog4cxx.so.11.0.0: undefined reference to `SQLGetDiagRecA'
../../main/cpp/liblog4cxx.so.11.0.0: undefined reference to `SQLSetEnvAttr'
collect2: error: ld returned 1 exit status
make[2]: *** [src/test/cpp/multithreadtest] Error 1
make[1]: *** [src/test/cpp/CMakeFiles/multithreadtest.dir/all] Error 2
make: *** [all] Error 2{code}
It's not that big of a concern if it doesn't have ODBC support as at the moment
I am not using ODBC with log4cxx.
> Support for defining APR and APR-Util install locations
> -------------------------------------------------------
>
> Key: LOGCXX-520
> URL: https://issues.apache.org/jira/browse/LOGCXX-520
> Project: Log4cxx
> Issue Type: Bug
> Components: Build
> Affects Versions: 0.12.0
> Reporter: Nicholas Clark
> Priority: Major
>
> Since commit bce24884809bd157cf2f85ef243d658e406a4259, autogen.sh and
> subsequent configure support were removed in favor of relying only on CMake
> for builds.
>
> I am unable to specify the paths where APR and APR-Util are installed at. The
> CMake definitions are unable to be redefined. Prior to the change I was able
> to define with apr and with apr-util parameters in configure. There doesn't
> appear to be a way to do this now or I have not found the documentation that
> specifies how this is done.
>
> Tested with commit 35431f12b477318ae9d4c554931fb116d9d7eb8a.
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)