Skip to content
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

Closed
odhiambo opened this issue Jan 20, 2019 · 3 comments
Closed

Can't compile on FreeBSD 12 #6

odhiambo opened this issue Jan 20, 2019 · 3 comments

Comments

@odhiambo
Copy link

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

grosjo added a commit that referenced this issue Jan 20, 2019
grosjo added a commit that referenced this issue Jan 20, 2019
@grosjo
Copy link
Owner

grosjo commented Jan 20, 2019

Please kindly try again with latest correction

@odhiambo
Copy link
Author

odhiambo commented Jan 20, 2019 via email

@grosjo
Copy link
Owner

grosjo commented Jan 20, 2019

As long as the version installed in your server(s) is working fine, you do not need to update anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants