Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Compilation failure for zsh-5.0.5



On 11/01/14 00:55, Bart Schaefer wrote:
On Jan 10, 11:05pm, Bernd Steinhauser wrote:
}
} In file included from /usr/include/sys/capability.h:30:0,
}                   from ../../Src/zsh_system.h:510,
}                   from ../../Src/zsh.mdh:17,
}                   from attr.mdh:17,
}                   from attr.c:30:
} /usr/include/sys/xattr.h:31:3: error: expected identifier before numeric constant
}     XATTR_CREATE = 1, /* set value, fail if attr already exists.  */
}     ^
} [...]
}
} The used glibc version is 2.17. Anyone can help?

That error is coming from a system-level header file ... we need to know
not just the glibc version, but the compiler and also operating system you
are compiling on, whether you're cross-compiling for something else, etc.

Even then our ability to help will be determined by whether we have a
similar platform to try out.

Operating System is Exherbo Linux with kernel 3.13.0-rc7 running on amd64:
uname -a
Linux orionis 3.13.0-rc7 #1 SMP PREEMPT Tue Jan 7 23:45:18 CET 2014 x86_64 GNU/Linux

There is no cross compiling, I'm compiling on this computer for exactly this platform and this computer. I didn't do any special setup for the build environment, just ran configure (without any options) and make.

compiler:
gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.8.2/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/paludis/build/sys-devel-gcc-4.8.2-r2/work/gcc-4.8.2/configure --prefix=/usr --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-silent-rules --enable-fast-install --libdir=/usr/lib64 --cache-file=config.cache --libdir=/usr/lib64 --with-pkgversion='exherbo gcc-4.8.2-r2' --program-suffix=-4.8 --disable-bootstrap --enable-clocale=gnu --enable-languages=c,c++,fortran,objc,obj-c++ --enable-lto --enable-multilib --enable-nls --enable-serial-configure --enable-libquadmath --enable-libquadmath-support --without-cloog --enable-libgomp --disable-libobjc --disable-libssp --with-as=x86_64-pc-linux-gnu-as --with-ld=x86_64-pc-linux-gnu-ld --with-system-zlib
Thread model: posix
gcc version 4.8.2 (exherbo gcc-4.8.2-r2)

In case this might be useful, binutils is version 2.24. Linux headers are from 3.12.

Currently, I have zsh 5.0.2 installed, which was built using gcc 4.7 and glibc 2.17. So this might be related to the new gcc (4.8) I have installed since 2 approx. weeks. Unfortunately, I removed the old gcc already, otherwise I would just check with that one and see if it compiles. I also noticed that glibc 2.17 has been build with gcc 4.7, no idea if that might be important. I will try to build it with the newer one and check if that helps.



Messages sorted by: Reverse Date, Date, Thread, Author