Score:0

FreeTDS returned INT_EXIT for msgno 20109

cn flag

I am calling a binary on RedHat 7 that uses the FreeTDS library. It works fine in one environment set up long ago, but I'm trying to run the binary in other environments and I keep getting FreeTDS: db-lib: exiting because client error handler returned INT_EXIT for msgno 20109.

I've tried just copying the lib folder, copying the all of the files, and also downloading the files and doing configure/make/makeinstall. All those ways give the same error.

The FreeTDS lib folder is listed in the LD_LIBRARY_PATH environment variable.

When I look in the freetds code, I see:

#define SYBENULL 20109 /* NULL DBPROCESS pointer passed to DB-Library. */
#define CHECK_PARAMETER(x, msg, ret) if (!(x)) { dbperror(dbproc, (msg), 0); return ret; }

#CHECK_PARAMETER(dbproc, SYBENULL, FALSE);

That parameter check on dbproc is in many places in the freetds code.

How do I setup FreeTDS to avoid this error?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.