Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 212581
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Linux MySQL bugs team <mysql-bugs@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Sektor van Skijlen <ethouris@gmail.com>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
mysql++-2.3.2-gcc-4.3.patch mysql++-2.3.2-gcc-4.3.patch patch Ryan Hill 2008-03-22 22:30 0000 358 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 212581 depends on: Show dependency tree
Bug 212581 blocks: 198121
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2008-03-07 13:25 0000
dev-db/mysql++ fails.

Reports: from lib/const_string.h file, no definition of 'memcpy' found.
Reason: The #include <cstring> is missing from const_string.h file.

The type of the bug is that it "may fail on some systems or some gcc versions".

It really doesn't matter, which version of gcc I was using (ok, I used 4.3.0
pre-release). Thing that matter is that the code is ISO C++ standard
counter-correct.

It *may work* on some compilers anyway (or some compilers' versions) by the
reason that '#include <string>' declaration includes <cstring> as well, but
*programmer should never state this a sure thing*. Need 'memcpy' or 'strcpy' =
use '#include <cstring>'.

Reproducible: Always

Steps to Reproduce:
1. Try to install mysql++ (I used paludis)

Actual Results:  
Reports compile errors: in lib/const_sring.h definition for 'memcpy' is not
found.

Expected Results:  
Should report no compile errors. :)

Severity: normal, however note that it blocks using other packages that depend
on mysql++.
How to fix:

In lib/const_string.h file, after this line:

#include <string>

add the following:

#include <cstring>

Note: *not replace* <string> with <cstring>. Both are needed, as the class
defined in this file uses both 'memcpy' and 'std::string'.

------- Comment #1 From Ryan Hill 2008-03-22 22:30:05 0000 -------
Created an attachment (id=146956) [details]
mysql++-2.3.2-gcc-4.3.patch

------- Comment #2 From Ryan Hill 2008-04-21 03:00:54 0000 -------
Applied.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug