Discussion:
lftp 4.4.9 doesn't compile
Philipp Thomas
2013-10-07 18:08:12 UTC
Permalink
Compilation for openSUSE factory (gcc 4.8.1, glibc 2.18) fails. Seems that
somewhere c++defs.h is not being included/referenced. BTW, shouldn't g++ be
called on this file instead of gcc?

Please keep me in CC as I'm not subscribed.


gcc -DHAVE_CONFIG_H -I. -I../lib -I../lib -I../trio \
-I/usr/include/p11-kit-1 -DUSE_VARARGS -DPREFER_STDARGS -fmessage-length=0 \
-grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 \
--fstack-protector -funwind-tables -fasynchronous-unwind-tables -g
-fstack-protector -Wall -Wwrite-strings -Woverloaded-virtual
--fno-exceptions -fno-rtti -c -o example1.o example1.cc

In file included from /usr/include/sys/types.h:219:0,
from ../lib/sys/types.h:27,
from /usr/include/stdlib.h:314,
from ../lib/stdlib.h:36,
from lftp-wrapper.c:22:
../lib/unistd.h:580:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
_GL_CXXALIAS_SYS (chown, int, (const char *file, uid_t uid, gid_t gid));
^
In file included from ../lib/string.h:27:0,
from lftp-wrapper.c:26:
/usr/include/string.h:42:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
extern void *memcpy (void *__restrict __dest, const void *__restrict __src,
^
In file included from lftp-wrapper.c:29:0:
../lib/sys/socket.h:67:1: error: unknown type name '_GL_INLINE_HEADER_BEGIN'
_GL_INLINE_HEADER_BEGIN
^

Philipp
Alexander Lukyanov
2013-12-27 15:08:08 UTC
Permalink
examples are not really needed, so you can still install lftp.
--
Alexander.
Post by Philipp Thomas
Compilation for openSUSE factory (gcc 4.8.1, glibc 2.18) fails. Seems that
somewhere c++defs.h is not being included/referenced. BTW, shouldn't g++ be
called on this file instead of gcc?
Please keep me in CC as I'm not subscribed.
gcc -DHAVE_CONFIG_H -I. -I../lib -I../lib -I../trio \
-I/usr/include/p11-kit-1 -DUSE_VARARGS -DPREFER_STDARGS -fmessage-length=0 \
-grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 \
--fstack-protector -funwind-tables -fasynchronous-unwind-tables -g
-fstack-protector -Wall -Wwrite-strings -Woverloaded-virtual
--fno-exceptions -fno-rtti -c -o example1.o example1.cc
In file included from /usr/include/sys/types.h:219:0,
from ../lib/sys/types.h:27,
from /usr/include/stdlib.h:314,
from ../lib/stdlib.h:36,
../lib/unistd.h:580:1: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'extern'
_GL_CXXALIAS_SYS (chown, int, (const char *file, uid_t uid, gid_t gid));
^
In file included from ../lib/string.h:27:0,
/usr/include/string.h:42:1: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'extern'
extern void *memcpy (void *__restrict __dest, const void *__restrict __src,
^
../lib/sys/socket.h:67:1: error: unknown type name
'_GL_INLINE_HEADER_BEGIN'
_GL_INLINE_HEADER_BEGIN
^
Philipp
_______________________________________________
lftp mailing list
http://univ.uniyar.ac.ru/mailman/listinfo/lftp
Loading...