Red Hat Bugzilla – Bug 1000777
assertion should not be enabled in RPM
Last modified: 2013-08-27 19:28:54 EDT
Upstream Makefile suggest to use following build option
OPT ?= -O2 -DNDEBUG # (A) Production use (optimized mode)
# OPT ?= -g2 # (B) Debug mode, w/ full line-level debugging symbols
# OPT ?= -O2 -g2 -DNDEBUG # (C) Profiling mode: opt, but w/debugging symbols
In Fedora RPM, of course standard build options are used, BUT without -DNDEBUG, so assert are enable.
Using this seem to solve this issue
export CFLAGS="$RPM_OPT_FLAGS -DNDEBUG"
export CXXFLAGS="$RPM_OPT_FLAGS -DNDEBUG"
Note this should also fix bug #908800
I discover this working on the PHP connector for leveldb (php-pecl-leveldb) which raises a lot of assert during test suite.
Tested with leveldb 1.13.0 (released a few days ago), -DNDEBUG seems ok.
Thanks for the report - I'll fix it shortly.
Regarding update to 1.13 - that's more complicated since I have to check compatibility with few other apps dependent on leveldb.
leveldb-1.12.0-5.fc19 has been submitted as an update for Fedora 19.
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing leveldb-1.12.0-5.fc19'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
leveldb-1.12.0-5.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.