[freetds] Failure in iconv.c
James K. Lowden
jklowden at schemamania.org
Mon Oct 11 00:29:03 EDT 2004
On Fri, 8 Oct 2004, "Lee, Gary" <GLee at etrade.com> wrote:
> I'm running the iodbctest.c test program sucessfully on one host machine
> with freetds' odbc driver. The host is a Sun Solaris platform.
> I tried to copy the test program and all relevent libraries to another
> Sun Solaris based host, i.e., without doing a build of the iodbc or
> freetds packages. (The two machines are not totally identical, but run
> the same OS version). The program starts up, seems to find all the
> relevent libraries, driver, and config files, but it dies in freetds'
> iconv.c routine. Here's the error:
> iconv.c:343: failed assertion `ret == 0'
> I looked at that module's source code and didn't really understand what
> it was doing.
> Is it possible to do what I'm trying to do, i.e., copy an application
> without building the packages on the target machine? Perhaps with some
> other configuration parameter, variable, or file?
If you turn on the TDSDUMP log, I think you'll see that tds_iconv_init()
returned an error indicating a fatal problem using the iconv library.
Without more information, I can't say whether that's because you didn't
recompile on the second machine. Based on your description, it seems to
me you should be able to copy the files, assuming all the requisite
libraries have matched versions and reside in the same directories.
FreeTDS can't use the Solaris libiconv. You need either GNU's, or to
configure without libiconv.
More information about the FreeTDS