Hi. Thanks for your reply.
Perl seems to be installed on my CentOS server, so it wasn't that. But the errors seemed to not just be warnings, as the installation stopped. I can't remember exactly, as I am trying to do something else now.
I've made a small change to the keys.c file in the source. I've done this many times on Debian based distros, but I'm new to rpmbuild. I've set everything up according to instructions, made the patch, but when I try to rebuild I get this error:
actions.c:1690:15: error: redefinition of 'i'
for(int64_t i = 0; i < c && !(error = capitalize(b)) && !stop; i++);
^
actions.c:1681:15: note: previous definition of 'i' was here
for(int64_t i = 0; i < c && !(error = to_lower(b)) && !stop; i++);
^
actions.c:1690:3: error: 'for' loop initial declarations are only allowed in C99 mode
for(int64_t i = 0; i < c && !(error = capitalize(b)) && !stop; i++);
^
actions.c:1700:15: error: redefinition of 'i'
for(int64_t i = 0; i < c && !(error = center(b)) && !stop; i++) {
^
actions.c:1690:15: note: previous definition of 'i' was here
for(int64_t i = 0; i < c && !(error = capitalize(b)) && !stop; i++);
^
actions.c:1700:3: error: 'for' loop initial declarations are only allowed in C99 mode
for(int64_t i = 0; i < c && !(error = center(b)) && !stop; i++) {
^
actions.c:1715:15: error: redefinition of 'i'
for(int64_t i = 0; i < c && !(error = paragraph(b)) && !stop; i++);
^
actions.c:1700:15: note: previous definition of 'i' was here
for(int64_t i = 0; i < c && !(error = center(b)) && !stop; i++) {
^
actions.c:1715:3: error: 'for' loop initial declarations are only allowed in C99 mode
for(int64_t i = 0; i < c && !(error = paragraph(b)) && !stop; i++);
^
actions.c:1781:15: error: redefinition of 'i'
for(int64_t i = 0; i < c && !(error = undo(b)) && !stop; i++);
^
actions.c:1715:15: note: previous definition of 'i' was here
for(int64_t i = 0; i < c && !(error = paragraph(b)) && !stop; i++);
^
actions.c:1781:3: error: 'for' loop initial declarations are only allowed in C99 mode
for(int64_t i = 0; i < c && !(error = undo(b)) && !stop; i++);
^
actions.c:1794:15: error: redefinition of 'i'
for(int64_t i = 0; i < c && !(error = redo(b)) && !stop; i++);
^
actions.c:1781:15: note: previous definition of 'i' was here
for(int64_t i = 0; i < c && !(error = undo(b)) && !stop; i++);
^
actions.c:1794:3: error: 'for' loop initial declarations are only allowed in C99 mode
for(int64_t i = 0; i < c && !(error = redo(b)) && !stop; i++);
^
make: *** [actions.o] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.MUlx94 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.MUlx94 (%build)
Do I ignore all these previous errors? The last one stops the whole rebuild.
# cat /var/tmp/rpm-tmp.MUlx94
#!/bin/sh
RPM_SOURCE_DIR="/root/rpmbuild/SOURCES"
RPM_BUILD_DIR="/root/rpmbuild/BUILD"
RPM_OPT_FLAGS="-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic"
RPM_LD_FLAGS="-Wl,-z,relro "
RPM_ARCH="x86_64"
RPM_OS="linux"
export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_LD_FLAGS RPM_ARCH RPM_OS
RPM_DOC_DIR="/usr/share/doc"
export RPM_DOC_DIR
RPM_PACKAGE_NAME="ne"
RPM_PACKAGE_VERSION="3.1.2"
RPM_PACKAGE_RELEASE="1"
export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE
LANG=C
export LANG
unset CDPATH DISPLAY ||:
RPM_BUILD_ROOT="/root/rpmbuild/BUILDROOT/ne-3.1.2-1.x86_64"
export RPM_BUILD_ROOT
PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:/usr/lib64/pkgconfig:/usr/share/pkgconfig"
export PKG_CONFIG_PATH
set -x
umask 022
cd "/root/rpmbuild/BUILD"
cd 'ne-3.1.2'
cd src; make NE_GLOBAL_DIR=/usr/share/ne LIBS=-lncurses; strip ne
exit 0
What is the problem here?
Thanks.