On Friday 2010-04-16 18:47, Di Pe wrote:
ran it again but still the same error,
any other ideas?
+ STATUS=0 + '[' 0 -ne 0 ']' + cd msktutil-0.4 + /bin/chmod -Rf a+rX,u+w,g-w,o-w . + CXXFLAGS=' -I/usr/include/et' + export CXXFLAGS + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.fxzGZy + umask 022 + cd /usr/src/packages/BUILD + /bin/rm -rf /usr/src/packages/BUILDROOT/msktutil-0.4-42.1.x86_64 ++ dirname /usr/src/packages/BUILDROOT/msktutil-0.4-42.1.x86_64 + /bin/mkdir -p /usr/src/packages/BUILDROOT + /bin/mkdir /usr/src/packages/BUILDROOT/msktutil-0.4-42.1.x86_64 + cd msktutil-0.4 + export 'RPM_OPT_FLAGS=-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I/usr/include/et' + RPM_OPT_FLAGS='-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I/usr/include/et' + CXXFLAGS=' -I/usr/include/et' + export CXXFLAGS + CFLAGS='-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables' + export CFLAGS + CXXFLAGS=' -I/usr/include/et' + export CXXFLAGS + FFLAGS='-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables' + export FFLAGS + ./configure --host=x86_64-unknown-linux-gnu --build=x86_64-unknown-linux-gnu --target=x86_64-suse-linux --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/lib --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info checking for x86_64-unknown-linux-gnu-g++... no checking for x86_64-unknown-linux-gnu-c++... no checking for x86_64-unknown-linux-gnu-gpp... no checking for x86_64-unknown-linux-gnu-aCC... no checking for x86_64-unknown-linux-gnu-CC... no checking for x86_64-unknown-linux-gnu-cxx... no checking for x86_64-unknown-linux-gnu-cc++... no checking for x86_64-unknown-linux-gnu-cl.exe... no checking for x86_64-unknown-linux-gnu-FCC... no checking for x86_64-unknown-linux-gnu-KCC... no checking for x86_64-unknown-linux-gnu-RCC... no checking for x86_64-unknown-linux-gnu-xlC_r... no checking for x86_64-unknown-linux-gnu-xlC... no checking for g++... g++ checking for C++ compiler default output file name... a.out checking whether the C++ compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for install... /usr/bin/install checking for cat... /bin/cat checking for rm... /bin/rm checking for cp... /bin/cp checking for echo... /bin/echo checking for sed... /usr/bin/sed checking for mkdir... /bin/mkdir checking how to run the C++ preprocessor... g++ -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking krb5.h usability... yes checking krb5.h presence... yes checking for krb5.h... yes checking com_err.h usability... yes checking com_err.h presence... no configure: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor! configure: WARNING: com_err.h: proceeding with the compiler's result checking for com_err.h... yes checking heim_err.h usability... no checking heim_err.h presence... no checking for heim_err.h... no checking heimdal/heim_err.h usability... no checking heimdal/heim_err.h presence... no checking for heimdal/heim_err.h... no checking sasl.h usability... no checking sasl.h presence... no checking for sasl.h... no checking sasl/sasl.h usability... yes checking sasl/sasl.h presence... yes checking for sasl/sasl.h... yes checking for krb5_init_context in -lkrb5... yes checking for ldap_initialize in -lldap... yes checking whether com_err.h needs extern "C"... configure: error: Couldn't get error_message to work. error: Bad exit status from /var/tmp/rpm-tmp.fxzGZy (%build)
On Fri, Apr 16, 2010 at 7:47 AM, Di Pe
wrote: sorry, but there was a per cent sign missing, trying again....
On Fri, Apr 16, 2010 at 7:41 AM, Di Pe
wrote: Thanks, but it seems thast was not the issue:
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.iQNG49 + umask 022 + cd /usr/src/packages/BUILD + /bin/rm -rf /usr/src/packages/BUILDROOT/msktutil-0.4-41.1.x86_64 ++ dirname /usr/src/packages/BUILDROOT/msktutil-0.4-41.1.x86_64 + /bin/mkdir -p /usr/src/packages/BUILDROOT + /bin/mkdir /usr/src/packages/BUILDROOT/msktutil-0.4-41.1.x86_64 + cd msktutil-0.4 + export 'RPM_OPT_FLAGS=-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I{_includedir}/et' + RPM_OPT_FLAGS='-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I{_includedir}/et' + CXXFLAGS=' -I/usr/include/et' + export CXXFLAGS + CFLAGS='-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables' + export CFLAGS + CXXFLAGS=' -I/usr/include/et' + export CXXFLAGS + FFLAGS='-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables' + export FFLAGS + ./configure --host=x86_64-unknown-linux-gnu --build=x86_64-unknown-linux-gnu --target=x86_64-suse-linux --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/lib --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info checking for x86_64-unknown-linux-gnu-g++... no checking for x86_64-unknown-linux-gnu-c++... no checking for x86_64-unknown-linux-gnu-gpp... no checking for x86_64-unknown-linux-gnu-aCC... no checking for x86_64-unknown-linux-gnu-CC... no checking for x86_64-unknown-linux-gnu-cxx... no checking for x86_64-unknown-linux-gnu-cc++... no checking for x86_64-unknown-linux-gnu-cl.exe... no checking for x86_64-unknown-linux-gnu-FCC... no checking for x86_64-unknown-linux-gnu-KCC... no checking for x86_64-unknown-linux-gnu-RCC... no checking for x86_64-unknown-linux-gnu-xlC_r... no checking for x86_64-unknown-linux-gnu-xlC... no checking for g++... g++ checking for C++ compiler default output file name... a.out checking whether the C++ compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for install... /usr/bin/install checking for cat... /bin/cat checking for rm... /bin/rm checking for cp... /bin/cp checking for echo... /bin/echo checking for sed... /usr/bin/sed checking for mkdir... /bin/mkdir checking how to run the C++ preprocessor... g++ -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking krb5.h usability... yes checking krb5.h presence... yes checking for krb5.h... yes checking com_err.h usability... yes checking com_err.h presence... no configure: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor! configure: WARNING: com_err.h: proceeding with the compiler's result checking for com_err.h... yes checking heim_err.h usability... no checking heim_err.h presence... no checking for heim_err.h... no checking heimdal/heim_err.h usability... no checking heimdal/heim_err.h presence... no checking for heimdal/heim_err.h... no checking sasl.h usability... no checking sasl.h presence... no checking for sasl.h... no checking sasl/sasl.h usability... yes checking sasl/sasl.h presence... yes checking for sasl/sasl.h... yes checking for krb5_init_context in -lkrb5... yes checking for ldap_initialize in -lldap... yes checking whether com_err.h needs extern "C"... configure: error: Couldn't get error_message to work. error: Bad exit status from /var/tmp/rpm-tmp.iQNG49 (%build)
On Fri, Apr 16, 2010 at 6:46 AM, Marcus Meissner
wrote: On Fri, Apr 16, 2010 at 06:39:59AM -0700, Di Pe wrote:
Hi,
I am having this issue:
checking for sasl/sasl.h... yes checking for krb5_init_context in -lkrb5... yes checking for ldap_initialize in -lldap... yes checking whether com_err.h needs extern "C"... configure: error: Couldn't get error_message to work. error: Bad exit status from /var/tmp/rpm-tmp.kHT3OF (%build)
on opensuse <=11.1, centos, fedora, etc this can be fixed by adding this to the spec file:
%build CXXFLAGS="${CXXFLAGS} -I%{_includedir}/et"; export CXXFLAGS
I suspect it is overwritte by %configure , which uses RPM_OPT_FLAGS.
export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -I{_includedir}/et" ...
Ciao, Marcus
-- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
See config.log. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org