None
closed
nobody
None
2018-09-02
2018-08-07
Anonymous
No

Last portion of make execution:
mv -f $depbase.Tpo $depbase.Plo
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I./common -Wall -Wno-unused -std=c++11 -I. -I./aspell -I./bincimapmime -I./common -I./index -I./internfile -I./rcldb -I./unac -I./utils -I./xaposix -DBUILDING_RECOLL -I/usr/local/include -DRECOLL_DATADIR=\"/usr/local/share/recoll\" -D_GNU_SOURCE -DHAVE_CONFIG_H -g -O2 -MT query/plaintorich.lo -MD -MP -MF query/.deps/plaintorich.Tpo -c query/plaintorich.cpp -fPIC -DPIC -o query/.libs/plaintorich.o
query/plaintorich.cpp: In function 'std::string activate_urls(const string&)':
query/plaintorich.cpp:161:66: error: no matching function for call to 'regex_replace(const string&, std::regex&, const char [20])'
return std::regex_replace(in, url_re, "$1");
^
query/plaintorich.cpp:161:66: note: candidates are:
In file included from /usr/include/c++/4.8.2/regex:62:0,
from query/plaintorich.cpp:26:
/usr/include/c++/4.8.2/bits/regex.h:2162:5: note: template _Out_iter std::regex_replace(_Out_iter, _Bi_iter, _Bi_iter, const std::basic_regex<_Ch_type, _Rx_traits>&, const std::basic_string<_Ch_type>&, std::regex_constants::match_flag_type)
regex_replace(_Out_iter out, _Bi_iter first, _Bi_iter last,
^
/usr/include/c++/4.8.2/bits/regex.h:2162:5: note: template argument deduction/substitution failed:
query/plaintorich.cpp:161:66: note: deduced conflicting types for parameter '_Bi_iter' ('std::basic_regex' and 'const char*')
return std::regex_replace(in, url_re, "$1");
^
In file included from /usr/include/c++/4.8.2/regex:62:0,
from query/plaintorich.cpp:26:
/usr/include/c++/4.8.2/bits/regex.h:2182:5: note: template std::basic_string<_Ch_type> std::regex_replace(const std::basic_string<_Ch_type>&, const std::basic_regex<_Ch_type, _Rx_traits>&, const std::basic_string<_Ch_type>&, std::regex_constants::match_flag_type)
regex_replace(const basic_string<_Ch_type>&
s,
^
/usr/include/c++/4.8.2/bits/regex.h:2182:5: note: template argument deduction/substitution failed:
query/plaintorich.cpp:161:66: note: mismatched types 'const std::basic_string<_Ch_type>' and 'const char [20]'
return std::regex_replace(in, url_re, "$1");
^
query/plaintorich.cpp:162:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
make[1]: [query/plaintorich.lo] Error 1
make[1]: Leaving directory `/root/download/recoll-1.24.1'
make:
[all] Error 2

Discussion

  • medoc
    medoc
    2018-08-07

    The c++ library is probably too old on your system. You can either use a slightly older version of the code (e.g. recoll 1.23, but this would work better with Xapian 1.2 then), or just replace the problem line with "return in;" (no link activation then, but this is a minor issue).

     
  • Anonymous
    Anonymous
    2018-08-07

    Yeah, changed it to "return in;", then this:

    rcldb/rclabsfromtext.cpp:60:1: warning: control reaches end of non-void function [-Wreturn-type]
    }
    ^
    make[1]: [rcldb/rclabsfromtext.lo] Error 1
    make[1]: Leaving directory `/root/download/recoll-1.24.1'
    make:
    [all] Error 2

     
  • medoc
    medoc
    2018-08-08

    I'm not sure what you changed, but probably not the right thing :)

    Here is how the activate_urls() function should look after the change:

    static string activate_urls(const string& in)
    {
        // return std::regex_replace(in, url_re, "<a href=\"$1\">$1</a>");
        return in;
    }
    
     
  • Anonymous
    Anonymous
    2018-08-08

    Yes, here is my change (with line numbers of plaintorich.cpp):
    157 static const string urlRE = "(https?://[[:alnum:]~_/.%?&=,#@]+)[[:space:]|]";
    158 static std::regex url_re(urlRE);
    159 static string activate_urls(const string& in)
    160 {
    161 // return std::regex_replace(in, url_re, "$1");
    162 return in;
    163 }


    This is NOW (my previous post) referring to a different source file: rcldb/rclabsfromtext.cpp

    Thanks!

     
  • medoc
    medoc
    2018-08-08

    Oops sorry, the email only listed the plaintorich error.

    I think that you can just use:

      return neutchars(infrag, cstr_nc);
    

    for this one

     
  • Anonymous
    Anonymous
    2018-08-08

    That got me further, now I'm on the hunt for QWebView:
    BUILDING_RECOLL -DPREFIX=\"/usr/local\" -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/lib64/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/QtXml -I/usr/include/QtWebKit -I/usr/include -I../common -I../common -I../index -I../internfile -I../query -I../unac -I../utils -I../aspell -I../rcldb -I../qtgui -I../xaposix -Iconfgui -Iwidgets -I.moc -I.ui -o .obj/main.o main.cpp
    In file included from .ui/ui_rclmain.h:23:0,
    from rclmain_w.h:49,
    from main.cpp:40:
    ./reslist.h:29:20: fatal error: QWebView: No such file or directory
    #include
    ^
    compilation terminated.
    make[2]: [.obj/main.o] Error 1
    make[2]: Leaving directory /root/download/recoll-1.24.1/qtgui' make[1]: *** [recollqt] Error 2 make[1]: Leaving directory/root/download/recoll-1.24.1'
    make:
    [all] Error 2

    Thanks!

     
  • medoc
    medoc
    2018-08-09

    QwebView should come with the Qt WebKit development package. It's absence should have been detected by qmake though, so I'm not too sure what may be happening there. Please check that the package is installed anyway.

    Possibly the package does not exist on CentOS, in which case you should be able to build by adding --disable-webkit to the configure options.

     
  • medoc
    medoc
    2018-09-02

    • status: open --> closed
    • milestone: -->
     
  • medoc
    medoc
    2018-09-02

    Just pushed cosmetic changes which let the build go through on centos 7

     

Cancel   Add attachment