Open anrichter opened 11 years ago
[pauloneves@gmail.com] Trying to fix the formatting:
From the screenshots, QSvn seems to be the best linux free subversion client. I'd like to recommend it as the standard in my department, but I'm failing to compile it:-( Would somebody here help me?
I'm using an old linux: CentOS release 5.2. It has an old svn client and QT3. I don't have root password, so I'm trying to install it in my work directory.
I have QT4.6 and Subversion 1.6.9 installed to my work dir (/Work/paulo). /Work/paulo/bin is is my $PATH and I'm using bash. Cmake isn't installed, but I have a binary of version 2.8.1.
Here are the steps that I followed:
1) export QTDIR=/Work/paulo 2) in qsvn-0.8.3/ I made the dir "buid" 3) inside "build" I executed this command:
/Work/paulo/Download/cmake-2.8.1-Linux-i386/bin/cmake -G "Unix Makefiles" -D CMAKE_BUILD_TYPE="Release" -DCMAKE_INSTALL_PREFIX=/Work/paulo -DSUBVERSION_INSTALL_PATH=/Work/paulo ../src
here is the output: {{{ -- Found apr include: /Work/paulo/include/apr-1 -- Found apu include: /Work/paulo/include/apr-1 -- Found apr cppflags: -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -- Found apr libs: -L/Work/paulo/lib -lapr-1 -luuid -lrt -lcrypt -lpthread -ldl -- Found apr extra ldflags: -- Found apu libs: -L/Work/paulo/lib -laprutil-1 -lsqlite3 -lexpat -- Found apu extra ldflags: -- Found subversion include: /Work/paulo/include/subversion-1 -- Found subversion client lib: /Work/paulo/lib/libsvn_client-1.so -- Found subversion diff lib: /Work/paulo/lib/libsvn_diff-1.so -- Found subversion fs lib: /Work/paulo/lib/libsvn_fs-1.so -- Found subversion ra lib: /Work/paulo/lib/libsvn_ra-1.so -- Found subversion repository lib: /Work/paulo/lib/libsvn_repos-1.so -- Found subversion subr lib: /Work/paulo/lib/libsvn_subr-1.so -- Found subversion wc lib: /Work/paulo/lib/libsvn_wc-1.so -- Qt: /Work/paulo/lib/libQtCore.so -- Configuring done -- Generating done -- Build files have been written to: /Work/paulo/Download/qsvn-0.8.3/build }}} 4) everything looks fine, so let's run make. Here is the failed output:
{{{ Work/paulo/Download/qsvn-0.8.3/build > make Scanning dependencies of target svnqt [ 1%] Building CXX object svnqt/CMakeFiles/svnqt.dir/apr.o [ 2%] Building CXX object svnqt/CMakeFiles/svnqt.dir/client_annotate.o /Work/paulo/include/svnqt/svnqttypes.hpp:53: error: expected initializer before ‘<’ token /Work/paulo/include/svnqt/svnqttypes.hpp:56: error: expected initializer before ‘<’ token /Work/paulo/include/svnqt/svnqttypes.hpp:57: error: expected initializer before ‘<’ token /Work/paulo/include/svnqt/svnqttypes.hpp:59: error: expected initializer before ‘<’ token /Work/paulo/include/svnqt/svnqttypes.hpp:61: error: ‘LogEntries’ was not declared in this scope /Work/paulo/include/svnqt/svnqttypes.hpp:61: error: template argument 1 is invalid /Work/paulo/include/svnqt/svnqttypes.hpp:61: error: invalid type in declaration before ‘;’ token /Work/paulo/include/svnqt/svnqttypes.hpp:69: error: expected initializer before ‘<’ token ... lots of similar messages ... /Work/paulo/Download/qsvn-0.8.3/src/svnqt/client_annotate.cpp:142: error: expected `}' at end of input make[2]: * [svnqt/CMakeFiles/svnqt.dir/client_annotate.o] Error 1 make[1]: * [svnqt/CMakeFiles/svnqt.dir/all] Error 2 make: *\ [all] Error 2 }}} Here is the error line of snvqttypes.hpp:
typedef QLIST
I've found the same error in this bug report: http://www.anrichter.net/projects/qsvn/ticket/99 the proposed patch suggested to remove the line ADD_SUBDIRECTORY(svnqt) of the file src/CMakeLists.txt. The error then happened at 53% of the compilation.
Any help?
kind regards, Paulo
[anrichter] Your mail arrived the list and i answered already.
Please take a look at the svnqt/svnqt_defines.h in your build-directory. There must be QLISTE defined as QList (for qt4). If it isn't your cmake-run have a problem with this part of svnqt/CMakeLists.txt
CONFIGURE_FILE( "${CMAKE_CURRENT_SOURCE_DIR}/svnqt_defines.h.in" "${CMAKE_CURRENT_BINARY_DIR}/svnqt_defines.h" IMMEDIATE @ONLY)
[anrichter] Just for the record: Remove
{{{
ADD_SUBDIRECTORY(svnqt)
}}}
from the CMakeLists.txt
is a bad idea. QSvn need the libsvnqt library to work.
[pauloneves@gmail.com] Thanks for the answer. I've advanced the problem is that I had a libsvnqt installed from another software installation. qsvn was using my installed lib instead of the one that comes with it.
Now I believe everything is compiled, but I'm having problems in the linking phase. The problem is with the lib libsvn_ra_neon-1.so.0. I've just reinstalled it from the subversion source and the problem persists. Here are the error messages:
{{{
[ 80%] Building CXX object CMakeFiles/qsvn.dir/qrc_qsvn.cxx.o
Linking CXX executable bin/qsvn
/Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to SSL_CTX_free' /Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to
X509_NAME_get_index_by_NID'
/Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to SSLv23_client_method' /Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to
gss_release_name'
/Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to X509_NAME_cmp' /Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to
SSL_get_ex_data_X509_STORE_CTX_idx'
/Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to X509_digest' /Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to
X509_dup'
/Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to SSL_CTX_get_cert_store' /Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to
i2d_X509'
/Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to X509_STORE_set_default_paths' /Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to
d2i_PKCS12_fp'
/Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to SSL_get_error' /Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to
SSL_CIPHER_get_name'
/Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to sk_free' /Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to
PKCS12_unpack_authsafes'
/Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to sk_value' /Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to
X509_cmp'
/Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to ASN1_STRING_to_UTF8' /Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to
sk_new_null'
/Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to sk_push' /Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to
MD4_Final'
/Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to PEM_write_X509' /Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to
SSL_SESSION_free'
/Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to SSL_get_peer_certificate' /Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to
GSS_C_NT_HOSTBASED_SERVICE'
/Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to PKCS12_SAFEBAG_free' /Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to
PKCS7_free'
/Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to SSLv2_server_method' /Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to
EVP_PKEY_free'
/Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to X509_get_ext_d2i' /Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to
SSL_CTX_load_verify_locations'
/Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to DES_set_key' /Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to
DES_ecb_encrypt'
/Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to X509_get_subject_name' /Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to
SSL_get1_session'
/Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to X509_free' /Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to
PKCS12_unpack_p7data'
/Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to PEM_read_X509' /Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to
SSL_library_init'
/Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to CRYPTO_free' /Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to
X509_NAME_entry_count'
/Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to gss_delete_sec_context' /Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to
X509_print_fp'
/Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to sk_pop_free' /Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to
gss_import_name'
/Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to MD4_Init' /Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to
SSLeay'
/Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to SSL_read' /Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to
PKCS12_get_friendlyname'
/Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to SSL_get_ex_data' /Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to
SSL_get_verify_result'
/Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to X509_NAME_get_entry' /Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to
X509_NAME_ENTRY_get_data'
/Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to SSL_accept' /Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to
SSLv23_server_method'
/Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to SSL_ctrl' /Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to
SSL_pending'
/Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to PKCS12_free' /Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to
SSL_get_client_CA_list'
/Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to SSL_SESSION_cmp' /Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to
SSL_shutdown'
/Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to gss_init_sec_context' /Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to
SSL_CTX_set_verify'
/Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to RAND_status' /Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to
X509_get_issuer_name'
/Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to OPENSSL_add_all_algorithms_noconf' /Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to
SSL_get_current_cipher'
/Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to SSL_get_peer_cert_chain' /Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to
MD4_Update'
/Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to EVP_sha1' /Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to
SSL_CTX_set_client_CA_list'
/Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to SSL_load_client_CA_file' /Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to
SSL_get_session'
/Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to X509_verify_cert_error_string' /Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to
X509_STORE_CTX_get_ex_data'
/Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to SSL_set_session' /Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to
SSL_CTX_new'
/Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to OBJ_cmp' /Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to
sk_num'
/Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to X509_STORE_CTX_get_error_depth' /Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to
ERR_reason_error_string'
/Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to CRYPTO_set_mem_functions' /Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to
X509_STORE_CTX_get_error'
/Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to SSL_CTX_use_certificate_chain_file' /Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to
SSL_connect'
/Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to gss_release_buffer' /Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to
RAND_pseudo_bytes'
/Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to gss_display_status' /Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to
ERR_clear_error'
/Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to SSL_load_error_strings' /Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to
SSL_set_ex_data'
/Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to SSL_free' /Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to
SSL_write'
/Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to SSL_set_fd' /Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to
OBJ_obj2nid'
/Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to PKCS12_parse' /Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to
X509_STORE_add_cert'
/Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to SSL_CTX_use_PrivateKey_file' /Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to
SSL_CTX_ctrl'
/Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to OBJ_nid2obj' /Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to
X509_check_private_key'
/Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to GENERAL_NAME_free' /Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to
ERR_get_error'
/Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to DES_set_odd_parity' /Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to
X509_alias_get0'
/Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to SSL_new' /Work/paulo/lib/libsvn_ra_neon-1.so.0: undefined reference to
d2i_X509'
collect2: ld returned 1 exit status
make[2]: * [bin/qsvn] Error 1
make[1]: * [CMakeFiles/qsvn.dir/all] Error 2
}}}
Do you have any idea about the problem?
kind regards
[anrichter] Replying to [comment:4 pauloneves@…]:
Do you have any idea about the problem?
Do you have compiled SSL support into neoon?
[pauloneves@gmail.com] I can access https repositories from subversion, so I believe ssl is compiled. Maybe the link isn't compiling ssl. In traditional automake files I can just repeat the last displayed command adding a -lssl, but I don't know how to see last executed command in cmake.
I've subscribed to the mailing list, but the message below never arrived. I'm trying to register it as a ticket.
From the screenshots, QSvn seems to be the best linux free subversion client. I'd like to recommend it as the standard in my department, but I'm failing to compile it:-( Would somebody here help me?
I'm using an old linux: CentOS release 5.2. It has an old svn client and QT3. I don't have root password, so I'm trying to install it in my work directory.
I have QT4.6 and Subversion 1.6.9 installed to my work dir (/Work/paulo). /Work/paulo/bin is is my $PATH and I'm using bash. Cmake isn't installed, but I have a binary of version 2.8.1.
Here are the steps that I followed:
1) export QTDIR=/Work/paulo 2) in qsvn-0.8.3/ I made the dir "buid" 3) inside "build" I executed this command:
/Work/paulo/Download/cmake-2.8.1-Linux-i386/bin/cmake -G "Unix Makefiles" -D CMAKE_BUILD_TYPE="Release" -DCMAKE_INSTALL_PREFIX=/Work/paulo -DSUBVERSION_INSTALL_PATH=/Work/paulo ../src
here is the output:
-- Found apr include: /Work/paulo/include/apr-1 -- Found apu include: /Work/paulo/include/apr-1 -- Found apr cppflags: -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -- Found apr libs: -L/Work/paulo/lib -lapr-1 -luuid -lrt -lcrypt -lpthread -ldl -- Found apr extra ldflags: -- Found apu libs: -L/Work/paulo/lib -laprutil-1 -lsqlite3 -lexpat -- Found apu extra ldflags: -- Found subversion include: /Work/paulo/include/subversion-1 -- Found subversion client lib: /Work/paulo/lib/libsvn_client-1.so -- Found subversion diff lib: /Work/paulo/lib/libsvn_diff-1.so -- Found subversion fs lib: /Work/paulo/lib/libsvn_fs-1.so -- Found subversion ra lib: /Work/paulo/lib/libsvn_ra-1.so -- Found subversion repository lib: /Work/paulo/lib/libsvn_repos-1.so -- Found subversion subr lib: /Work/paulo/lib/libsvn_subr-1.so -- Found subversion wc lib: /Work/paulo/lib/libsvn_wc-1.so -- Qt: /Work/paulo/lib/libQtCore.so -- Configuring done -- Generating done -- Build files have been written to: /Work/paulo/Download/qsvn-0.8.3/build
4) everything looks fine, so let's run make. Here is the failed output:
Work/paulo/Download/qsvn-0.8.3/build > make Scanning dependencies of target svnqt [ 1%] Building CXX object svnqt/CMakeFiles/svnqt.dir/apr.o [ 2%] Building CXX object svnqt/CMakeFiles/svnqt.dir/client_annotate.o /Work/paulo/include/svnqt/svnqttypes.hpp:53: error: expected initializer before ‘<’ token /Work/paulo/include/svnqt/svnqttypes.hpp:56: error: expected initializer before ‘<’ token /Work/paulo/include/svnqt/svnqttypes.hpp:57: error: expected initializer before ‘<’ token /Work/paulo/include/svnqt/svnqttypes.hpp:59: error: expected initializer before ‘<’ token /Work/paulo/include/svnqt/svnqttypes.hpp:61: error: ‘LogEntries’ was not declared in this scope /Work/paulo/include/svnqt/svnqttypes.hpp:61: error: template argument 1 is invalid /Work/paulo/include/svnqt/svnqttypes.hpp:61: error: invalid type in declaration before ‘;’ token /Work/paulo/include/svnqt/svnqttypes.hpp:69: error: expected initializer before ‘<’ token ... lots of similar messages ... /Work/paulo/Download/qsvn-0.8.3/src/svnqt/client_annotate.cpp:142: error: expected `}' at end of input make[2]: * [svnqt/CMakeFiles/svnqt.dir/client_annotate.o] Error 1 make[1]: * [svnqt/CMakeFiles/svnqt.dir/all] Error 2 make: *\ [all] Error 2
Here is the error line of snvqttypes.hpp: typedef QLIST AnnotatedFile;
I've found the same error in this bug report: http://www.anrichter.net/projects/qsvn/ticket/99 the proposed patch suggested to remove the line ADD_SUBDIRECTORY(svnqt) of the file src/CMakeLists.txt. The error then happened at 53% of the compilation.
Any help?
kind regards, Paulo