Mailinglist Archive: opensuse-buildservice (348 mails)

< Previous Next >
Re: [opensuse-buildservice] compiler flags issue on openSUSE 11.2 (gcc4.4.1) and factory
  • From: Marcus Meissner <meissner@xxxxxxx>
  • Date: Fri, 16 Apr 2010 15:46:15 +0200
  • Message-id: <20100416134615.GE12244@xxxxxxx>
On Fri, Apr 16, 2010 at 06:39:59AM -0700, Di Pe wrote:

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:

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@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
This Thread
Follow Ups