Project

General

Profile

Actions

Bug #35682

closed

34164d55c839acd35bbb1be5279e3e23e3bec1fd broke the librados examples

Added by Brad Hubbard over 5 years ago. Updated over 5 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
Dev Interfaces
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

$ cd examples/librados
$ make
g++ -std=c++11 -Wno-unused-parameter -Wall -Wextra -Werror -g -I../../src/include -L../../build/lib/ -Wl,-rpath,../../build/lib -o hello_world_cpp hello_world.cc -lrados -lradosstriper                                                    
In file included from ../../src/include/rados/librados.hpp:10:0,
                 from hello_world.cc:14:
../../src/include/rados/buffer.h: In member function ‘void ceph::buffer::ptr::set_offset(unsigned int)’:
../../src/include/rados/buffer.h:351:7: error: ‘assert’ was not declared in this scope
       assert(raw_length() >= o);
       ^~~~~~
../../src/include/rados/buffer.h:351:7: note: suggested alternative: ‘assertf’
       assert(raw_length() >= o);
       ^~~~~~
       assertf
../../src/include/rados/buffer.h: In member function ‘void ceph::buffer::ptr::set_length(unsigned int)’:
../../src/include/rados/buffer.h:359:7: error: ‘assert’ was not declared in this scope
       assert(raw_length() >= l);
       ^~~~~~
../../src/include/rados/buffer.h:359:7: note: suggested alternative: ‘assertf’
       assert(raw_length() >= l);
       ^~~~~~
       assertf
make: *** [Makefile:29: hello_world_cpp] Error 1

Related issues 1 (0 open1 closed)

Related to Ceph - Feature #15100: qa: test building a librados applicationResolvedNathan Cutler03/12/2016

Actions
Actions

Also available in: Atom PDF