Search the web
Sign In
New User? Sign Up
DatabaseTemplateLibrary · The Database Template Library
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Compilation fails on Ubuntu 8.04 x86_64   Message List  
Reply | Forward Message #2403 of 2481 |
Ubuntu 8.04 x86_64 fully patched up to 20080610.
g++, unixODBC from Ubuntu repositories.
dtl.tar.gz 3.6.11 from
http://groups.yahoo.com/group/DatabaseTemplateLibrary/files/DTL36/dtl.tar.gz
downloaded 20080610.

1. Problems start with this message after every successful compilation:
sed: -e expression #1, char 299: unterminated address regex

2. Compilation fails on DBStmt.cpp:
c++ -g -Wall -O0 -g3 -DDTL_UC -DUNIX -DHAVE_LONG_LONG
-I/usr/local/include/unixodbc -D_DEBUG -c -MMD -o debug/DBStmt.o
DBStmt.cpp

with the following message:
DBStmt.cpp: In member function 'void dtl::DBStmt::BindParam(SDWORD,
SDWORD, SDWORD, SDWORD, SDWORD, SDWORD, void*, SDWORD, SDWORD*)':
DBStmt.cpp:906: error: cannot convert 'SQLINTEGER*' to 'SQLLEN*' for
argument '10' to 'SQLRETURN SQLBindParameter(void*, SQLUSMALLINT,
SQLSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLULEN, SQLSMALLINT, void*,
SQLLEN, SQLLEN*)'

I suppose that SQLINTEGER is int32 and SQLLEN is int64 or other way
round on this platform, and both types are int32 on 32 bit machine.




Tue Jun 10, 2008 8:30 pm

jan.kowalski62
Offline Offline
Send Email Send Email

Forward
Message #2403 of 2481 |
Expand Messages Author Sort by Date

Ubuntu 8.04 x86_64 fully patched up to 20080610. g++, unixODBC from Ubuntu repositories. dtl.tar.gz 3.6.11 from ...
jan.kowalski62
Offline Send Email
Jun 12, 2008
6:56 pm

... http://groups.yahoo.com/group/DatabaseTemplateLibrary/files/DTL36/dtl.tar.gz ... Yeah. I need to update the sed snippet that does makedepend in the make...
Corwin Joy
corwinjoy
Offline Send Email
Jun 12, 2008
9:08 pm

... sed expression is fixed, but main problem remains. Main problem lays in difference between sizeof(SQLINTEGER) = 4 and sizeof(SQLLEN) = 8 on Linux on...
jan.kowalski62
Offline Send Email
Jun 17, 2008
3:21 am

... Maybe. This version was compiled under Linux x86_64 where I ran and tested it myself so I know it works under 64 bit. (The linux flavor I used was...
Corwin Joy
corwinjoy
Offline Send Email
Jun 17, 2008
3:50 am

I've looked into this some more. According to the UnixODBC headers the difference between SQLLEN and SQLINTEGER is mostly smoke and mirrors. Unless you have a...
Corwin Joy
corwinjoy
Offline Send Email
Jun 17, 2008
2:39 pm

... And still it won't compile. I have the same problem as the OP, namely: bind_basics.cpp:789: error: cannot convert 'SQLINTEGER*' to 'SQLLEN*' for argument...
Robert Bielik
robert_bielik
Offline Send Email
Jan 15, 2009
3:53 pm

The type of that last column really should be SQLLEN *. Just change the variable declaration on line 775: SQLLEN cbPkCol, cbSQLType; This will then match the...
corwinjoy@...
corwinjoy
Offline Send Email
Jan 15, 2009
9:49 pm

... the ... Thnx Corwin, I figured that out too, so now I have a cleanly building DTL on 64bit Ubuntu. /Rob...
Robert Bielik
robert_bielik
Offline Send Email
Jan 16, 2009
12:43 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help