-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't compile on FreeBSD 12 #6
Comments
Please kindly try again with latest correction |
root@gw:/usr/local/SRC/FTS-XAPIAN # cd fts-xapian/
root@gw:/usr/local/SRC/FTS-XAPIAN/fts-xapian # git pull
remote: Enumerating objects: 11, done.
remote: Counting objects: 100% (11/11), done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 8 (delta 6), reused 5 (delta 3), pack-reused 0
Unpacking objects: 100% (8/8), done.
From https://github.com/grosjo/fts-xapian
5d1cd95..8cc015e master -> origin/master
Updating 5d1cd95..8cc015e
Fast-forward
src/fts-backend-xapian.cpp | 15 ++++++---------
1 file changed, 6 insertions(+), 9 deletions(-)
root@gw:/usr/local/SRC/FTS-XAPIAN/fts-xapian # make
make all-recursive
Making all in src
/bin/sh ../libtool --tag=CXX --mode=compile c++ -DHAVE_CONFIG_H -I.
-I.. -I/usr/local/include/dovecot -I/usr/local/include
-I/usr/local/include/dovecot -g -O2 -MT fts-backend-xapian.lo -MD
-MP -MF .deps/fts-backend-xapian.Tpo -c -o fts-backend-xapian.lo
fts-backend-xapian.cpp
libtool: compile: c++ -DHAVE_CONFIG_H -I. -I..
-I/usr/local/include/dovecot -I/usr/local/include
-I/usr/local/include/dovecot -g -O2 -MT fts-backend-xapian.lo -MD -MP -MF
.deps/fts-backend-xapian.Tpo -c fts-backend-xapian.cpp -fPIC -DPIC -o
.libs/fts-backend-xapian.o
In file included from fts-backend-xapian.cpp:36:
./fts-backend-xapian-functions.cpp:741:13: warning: format string is not a
string literal (potentially insecure) [-Wformat-security]
i_error(e.get_msg().c_str());
^~~~~~~~~~~~~~~~~~~
./fts-backend-xapian-functions.cpp:741:13: note: treat the string as an
argument to avoid this
i_error(e.get_msg().c_str());
^
"%s",
1 warning generated.
libtool: compile: c++ -DHAVE_CONFIG_H -I. -I..
-I/usr/local/include/dovecot -I/usr/local/include
-I/usr/local/include/dovecot -g -O2 -MT fts-backend-xapian.lo -MD -MP -MF
.deps/fts-backend-xapian.Tpo -c fts-backend-xapian.cpp -o
fts-backend-xapian.o >/dev/null 2>&1
mv -f .deps/fts-backend-xapian.Tpo .deps/fts-backend-xapian.Plo
/bin/sh ../libtool --tag=CXX --mode=link c++
-I/usr/local/include/dovecot -g -O2 -module -avoid-version -o
lib21_fts_xapian_plugin.la -rpath /usr/local/lib/dovecot
fts-xapian-plugin.lo fts-backend-xapian.lo -L/usr/local/lib -lxapian
libtool: link: c++ -fPIC -DPIC -shared -nostdlib /usr/lib/crti.o
/usr/lib/crtbeginS.o .libs/fts-xapian-plugin.o .libs/fts-backend-xapian.o
-L/usr/local/lib -lxapian -L/usr/lib -lc++ -lm -lc -lgcc -lgcc_s
/usr/lib/crtendS.o /usr/lib/crtn.o -g -O2 -Wl,-soname
-Wl,lib21_fts_xapian_plugin.so -o .libs/lib21_fts_xapian_plugin.so
libtool: link: ar cru .libs/lib21_fts_xapian_plugin.a fts-xapian-plugin.o
fts-backend-xapian.o
libtool: link: ranlib .libs/lib21_fts_xapian_plugin.a
libtool: link: ( cd ".libs" && rm -f "lib21_fts_xapian_plugin.la" && ln -s
"../lib21_fts_xapian_plugin.la" "lib21_fts_xapian_plugin.la" )
root@gw:/usr/local/SRC/FTS-XAPIAN/fts-xapian # make install
Making install in src
.././install-sh -c -d '/usr/local/lib/dovecot'
/bin/sh ../libtool --mode=install /usr/bin/install -c
lib21_fts_xapian_plugin.la '/usr/local/lib/dovecot'
libtool: install: /usr/bin/install -c .libs/lib21_fts_xapian_plugin.so
/usr/local/lib/dovecot/lib21_fts_xapian_plugin.so
libtool: install: /usr/bin/install -c .libs/lib21_fts_xapian_plugin.lai
/usr/local/lib/dovecot/lib21_fts_xapian_plugin.la
libtool: install: /usr/bin/install -c .libs/lib21_fts_xapian_plugin.a
/usr/local/lib/dovecot/lib21_fts_xapian_plugin.a
libtool: install: chmod 644 /usr/local/lib/dovecot/lib21_fts_xapian_plugin.a
libtool: install: ranlib /usr/local/lib/dovecot/lib21_fts_xapian_plugin.a
Despite some warnings, that installs.
How often should I be updating my systems if I am using this??
…On Sun, 20 Jan 2019 at 22:32, Joan Moreau ***@***.***> wrote:
Please kindly try again with latest correction
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#6 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAyuXhwOs4jIPglKtyXmEZusOrAFCwkRks5vFMQ6gaJpZM4aJzdh>
.
--
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", grep ^[^#] :-)
|
As long as the version installed in your server(s) is working fine, you do not need to update anything. |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Source cloned from git at 22.20hrs on 20th Jan 2019.
[root@gw /usr/local/SRC/FTS-XAPIAN/fts-xapian]# make
make all-recursive
Making all in src
/bin/sh ../libtool --tag=CXX --mode=compile c++ -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include/dovecot -I/usr/local/include -I/usr/local/include/dovecot -g -O2 -MT fts-backend-xapian.lo -MD -MP -MF .deps/fts-backend-xapian.Tpo -c -o fts-backend-xapian.lo fts-backend-xapian.cpp
libtool: compile: c++ -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include/dovecot -I/usr/local/include -I/usr/local/include/dovecot -g -O2 -MT fts-backend-xapian.lo -MD -MP -MF .deps/fts-backend-xapian.Tpo -c fts-backend-xapian.cpp -fPIC -DPIC -o .libs/fts-backend-xapian.o
In file included from fts-backend-xapian.cpp:36:
./fts-backend-xapian-functions.cpp:741:13: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
i_error(e.get_msg().c_str());
^~~~~~~~~~~~~~~~~~~
./fts-backend-xapian-functions.cpp:741:13: note: treat the string as an argument to avoid this
i_error(e.get_msg().c_str());
^
"%s",
fts-backend-xapian.cpp:347:69: error: cannot pass non-trivial object of type 'std::string' (aka 'basic_string<char, char_traits, allocator >') to variadic function; expected type from format string was 'char *'
[-Wnon-pod-varargs]
char l[1000]; sprintf(l,"build_more UID=%d F=%s",ctx->tbi_uid,ctx->tbi_field);
~~ ^~~~~~~~~
fts-backend-xapian.cpp:347:69: note: did you mean to call the c_str() method?
char l[1000]; sprintf(l,"build_more UID=%d F=%s",ctx->tbi_uid,ctx->tbi_field);
^
.c_str()
fts-backend-xapian.cpp:494:12: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
i_error(e.get_msg().c_str());
^~~~~~~~~~~~~~~~~~~
fts-backend-xapian.cpp:494:12: note: treat the string as an argument to avoid this
i_error(e.get_msg().c_str());
^
"%s",
2 warnings and 1 error generated.
*** Error code 1
Stop.
make[2]: stopped in /usr/local/SRC/FTS-XAPIAN/fts-xapian/src
*** Error code 1
Stop.
make[1]: stopped in /usr/local/SRC/FTS-XAPIAN/fts-xapian
*** Error code 1
Stop.
make: stopped in /usr/local/SRC/FTS-XAPIAN/fts-xapian
The text was updated successfully, but these errors were encountered: