build error [was: Re: lftp 4.5.0]

Noël Köthe <[email protected]>
Newsgroups gmane.network.lftp.user
Organization Debian GNU/Linux, www.debian.org
Message-ID <[email protected]>
Hello Alexander,

Am Freitag, den 23.05.2014, 11:16 +0400 schrieb Alexander V. Lukyanov:

> lftp-4.5.0 has been released. Changes:

I'm trying to build this new version but run into this error:

....
/bin/bash ../libtool --silent  --tag=CXX   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../lib  -I../lib -I../trio  -I/usr/include/p11-kit-1  -D_FORTIFY_SOURCE=2  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -g -Wall -Wall -Wwrite-strings -Woverloaded-virtual -fno-exceptions -fno-rtti -fno-implement-inlines -MT SleepJob.lo -MD -MP -MF .deps/SleepJob.Tpo -c -o SleepJob.lo SleepJob.cc
mv -f .deps/SleepJob.Tpo .deps/SleepJob.Plo
/bin/bash ../libtool --silent  --tag=CXX   --mode=link gcc  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -g -Wall -Wall -Wwrite-strings -Woverloaded-virtual -fno-exceptions -fno-rtti -fno-implement-inlines -module -avoid-version -rpath /usr/lib/lftp/4.5.0 -Wl,-z,relro -o cmd-sleep.la  SleepJob.lo  -lutil -ltinfo -ldl -lsupc++ 
/bin/bash ../libtool --silent  --tag=CXX   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../lib  -I../lib -I../trio  -I/usr/include/p11-kit-1  -D_FORTIFY_SOURCE=2  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -g -Wall -Wall -Wwrite-strings -Woverloaded-virtual -fno-exceptions -fno-rtti -fno-implement-inlines -MT Torrent.lo -MD -MP -MF .deps/Torrent.Tpo -c -o Torrent.lo Torrent.cc
Torrent.cc: In member function 'virtual int TorrentPeer::Do()':
Torrent.cc:2869:69: error: format not a string literal and no format arguments [-Werror=format-security]
         LogError(4,dc=_("peer closed connection (before handshake)"));
                                                                     ^
Torrent.cc:2983:50: error: format not a string literal and no format arguments [-Werror=format-security]
   LogError(2,dc=_("invalid peer response format"));
                                                  ^
Torrent.cc: In member function 'void Torrent::SaveMetadata() const':
Torrent.cc:611:32: warning: ignoring return value of 'int ftruncate(int, __off_t)', declared with attribute warn_unused_result [-Wunused-result]
    ftruncate(fd,bytes_to_write);
                                ^
cc1plus: some warnings being treated as errors
Makefile:2223: recipe for target 'Torrent.lo' failed
make[2]: *** [Torrent.lo] Error 1
make[2]: Leaving directory '/tmp/buildd/lftp-4.5.0/src'
Makefile:1584: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/tmp/buildd/lftp-4.5.0'

gcc is 4.8.3. Do you need the whole buildlog?

Thanks alot.

Regard

	Noël

_______________________________________________
lftp mailing list
[email protected]
http://univ.uniyar.ac.ru/mailman/listinfo/lftp
signature.asc (application/pgp-signature, 836 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iQIcBAABCAAGBQJTf0DrAAoJEGjAeL6I+AzaFIIQAJkgeQzJP4dlB30Qq5O7T9sS
aZDbno3MywY8EEy6edQA1uoKN/eBBtZlK3ofhZSqJB7H5Xm8DtnjBPhzSzksuvMb
+6PVl23sVEa0ZvXO3Z823gUwpfPKNz1gPZI8O8z2cK+dXOPK+LnLxdSn8q2ALM5S
hmF2jQ+dG/Lfn/X1Sjpw3LiD1hBN6sOmWam42MI8l0TPdjgCplHmaBhQkrxMinYB
ZpHQj5S/2gGPhM/GtASvxTp6oyeOhWGYSnRHQmwKhID9Q7+PbLfmkvd8wfrbID1p
+OclWQ44tOF6ovDw3AYImonZkMnh8oIqYI/zdy3EKvzljS2/XzQLLoTzpQ26HI1c
F4ldKGGBCeYjggeAOVnRRiVIy3AR66g4n6BVCioEJhFqmlrzbFFRMP30EiqYfZOP
LkjAarBDT1nC04X9D9k8gVxO7oVMoOBxTlSRdl5DZix/9Zb7Yw3RHY56ppBZYbAa
MjTOtET/5aifm2ByXSZYYicbVGC/Mc38+cpqid4Fu+PLv2ANIluZyse+5wlRrXmA
oAn/uX1VhpFvAWg5Y27CfnfJfpMv9+3b8y4OYk/jn+0u3eFSGd8KQb72ox86MHUQ
reubUsABkEJS/OneoisnarUVe/IqnLKEOZWmLo9W6xeuZQO9/6qwqGF9q3wTXmoA
ckfyx1K4Z2Vebb0PgtL/
=E23f
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.