First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 149533
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Robin Johnson <robbat2@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Duane Griffin <duaneg@dghda.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
libodbc++-0.2.3-cast.patch Proposed fix for the compilation problems patch Duane Griffin 2006-09-29 09:11 0000 917 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 149533 depends on: Show dependency tree
Show dependency graph
Bug 149533 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

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







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


Description:   Opened: 2006-09-29 09:07 0000
libodbc++ fails to build on amd64 with a couple of errors like this:

/var/tmp/portage/libodbc++-0.2.3-r1/work/libodbc++-0.2.3/src/preparedstatement.cpp:
In member function 'bool odbc::PreparedStatement::execute()':
/var/tmp/portage/libodbc++-0.2.3-r1/work/libodbc++-0.2.3/src/preparedstatement.cpp:306:
error: cast from 'void*' to 'int' loses precision

------- Comment #1 From Duane Griffin 2006-09-29 09:11:26 0000 -------
Created an attachment (id=98384) [edit]
Proposed fix for the compilation problems

This fixes the compilation by converting the casts from void * to int to void *
to long. The compiler will then implicitly cast to int to call the appropriate
function. While this is a pretty horrendous thing to do, I *think* it is OK in
this context, since the information was originaly cast from an int to a void *.

------- Comment #2 From Robin Johnson 2006-09-30 11:14:38 0000 -------
fixed in cvs.

First Last Prev Next    No search results available      Search page      Enter new bug