Philipp Thomas
2013-10-07 18:08:12 UTC
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
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