Files using libc string functions don't include neither <cstring> nor <string.h>

Bug #519443 reported by Alex Yurchenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
percona-tools
Confirmed
Medium
Aleksandr Kuzminsky

Bug Description

As a result on certain systems gcc complains about undeclared functions:

Ubuntu 9.10, gcc-4.4.1

$ make
g++ -g -O2 -Wall -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
`mysql_config --include` -DMYSQL_ODBC -DODBC_WRAPPER -DUSE_PREPARE -
DCOMPILE_FLAT_FILE_LOAD -c ../src/CE.cpp -o ../obj/CE.o
In file included from ../src/../inc/SecurityFile.h:46,
                 from ../src/../inc/EGenTables_stdafx.h:63,
                 from ../src/../inc/EGenLoader_stdafx.h:65,
                 from ../src/../inc/CETxnInputGenerator.h:44,
                 from ../src/../inc/CE.h:110,
                 from ../src/CE.cpp:42:
../src/../inc/CompanyFile.h: In member function ‘void
TPCE::CCompanyFile::CreateName(TIdent, char*, size_t)’:
../src/../inc/CompanyFile.h:188: error: ‘strncpy’ was not declared in
this scope.

summary: - Files using libc sting functions don't include neither <cstring> nor
+ Files using libc string functions don't include neither <cstring> nor
<string.h>
Changed in perconatools:
assignee: nobody → Aleksandr Kuzminsky (akuzminsky)
status: New → Confirmed
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.