Re: ABI incompatible in dblib
Frediano Ziglio <[email protected]>
| Newsgroups | gmane.comp.db.tds.freetds |
|---|---|
| Message-ID | <[email protected]> |
2009/2/28 James K. Lowden <[email protected]>: > Frediano Ziglio wrote: >> >> Looking at change to sybdb.h >> >> http://freetds.cvs.sourceforge.net/viewvc/freetds/freetds/include/sybdb.h?r1=1.87&r2=1.88 >> >> you could see change from DBINT to long. This break ABI compatibility >> for systems where sizeof(long) == 8. Is this intentional? > > Yes. That's the definition of according to the vendor: > > http://manuals.sybase.com/onlinebooks/group-cnarc/cng1110e/dblib/@Generic__BookTextView/15108 > > I don't see any other choice. Perhaps we need to bump the .so major? > > Good to know you're checking, Governor! ;-) > Mmmm... I was looking at new warnings, specifically those at t0012 test. At first sight I changed %d to %ld but after a bit (luckyly) I realized that abi was changed so I checked in vendor headers and I realize they use long only if sizeof(long) == 4 (that is they use int if long is.. too long :) ). I think we should rollback or follow vendor way (always 32 bit). freddy77 _______________________________________________ FreeTDS mailing list [email protected] http://lists.ibiblio.org/mailman/listinfo/freetds