Skip to Content.
Sympa Menu

freetds - Re: [freetds] tsql Memory fault on HP-UX

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Kitt, Jeffrey" <jeffrey.kitt AT hrblock.com>
  • To: "FreeTDS Development Group" <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] tsql Memory fault on HP-UX
  • Date: Fri, 8 May 2009 12:21:19 -0500

Thanks for the suggestion. I tried to recompile freetds using the
--disable-libiconv option in the configure step. I received the
following warning messages during Make.

gcc -shared -Wl,+h -Wl,libct.so.4 -Wl,+nodefaultrpath -o
.libs/libct.so.4.0 .libs/ct.o .libs/cs.o .libs/blk.o .libs/ctutil.o
.libs/libct.lax/libtds.a/mem.o .libs/libct.lax/libtds.a/token.o
.libs/libct.lax/libtds.a/util.o .libs/libct.lax/libtds.a/login.o
.libs/libct.lax/libtds.a/read.o .libs/libct.lax/libtds.a/write.o
.libs/libct.lax/libtds.a/convert.o .libs/libct.lax/libtds.a/numeric.o
.libs/libct.lax/libtds.a/config.o .libs/libct.lax/libtds.a/query.o
.libs/libct.lax/libtds.a/iconv.o .libs/libct.lax/libtds.a/locale.o
.libs/libct.lax/libtds.a/challenge.o
.libs/libct.lax/libtds.a/threadsafe.o
.libs/libct.lax/libtds.a/vstrbuild.o .libs/libct.lax/libtds.a/md4.o
.libs/libct.lax/libtds.a/md5.o .libs/libct.lax/libtds.a/des.o
.libs/libct.lax/libtds.a/tdsstring.o .libs/libct.lax/libtds.a/getmac.o
.libs/libct.lax/libtds.a/data.o .libs/libct.lax/libtds.a/net.o
.libs/libct.lax/libtds.a/tds_checks.o .libs/libct.lax/libtds.a/log.o
.libs/libct.lax/libtds.a/gssapi.o .libs/libct.lax/libtds.a/hmac_md5.o
.libs/libct.lax/libreplacements.a/iconv.o
.libs/libct.lax/libreplacements.a/gettimeofday.o
.libs/libct.lax/libreplacements.a/asprintf.o
.libs/libct.lax/libreplacements.a/vasprintf.o
.libs/libct.lax/libreplacements.a/readpassphrase.o
.libs/libct.lax/libreplacements.a/strlcpy.o
.libs/libct.lax/libreplacements.a/strlcat.o -lxnet -lc -pthread
-Wl,-Bsymbolic
ld: (Warning) Cannot hide undefined symbol "tds_sys_iconv_open". Symbol
was referenced from file .libs/libct.lax/libtds.a/iconv.o
ld: (Warning) Cannot hide undefined symbol "tds_sys_iconv_close". Symbol
was referenced from file .libs/libct.lax/libtds.a/iconv.o
ld: (Warning) Cannot hide undefined symbol "tds_sys_iconv". Symbol was
referenced from file .libs/libct.lax/libtds.a/iconv.o
3 warnings.

gcc -shared -Wl,+h -Wl,libsybdb.so.5 -Wl,+nodefaultrpath -o
.libs/libsybdb.so.5.0 .libs/dblib.o .libs/dbutil.o .libs/rpc.o
.libs/bcp.o .libs/xact.o .libs/libsybdb.lax/libtds.a/mem.o
.libs/libsybdb.lax/libtds.a/token.o .libs/libsybdb.lax/libtds.a/util.o
.libs/libsybdb.lax/libtds.a/login.o .libs/libsybdb.lax/libtds.a/read.o
.libs/libsybdb.lax/libtds.a/write.o
.libs/libsybdb.lax/libtds.a/convert.o
.libs/libsybdb.lax/libtds.a/numeric.o
.libs/libsybdb.lax/libtds.a/config.o .libs/libsybdb.lax/libtds.a/query.o
.libs/libsybdb.lax/libtds.a/iconv.o .libs/libsybdb.lax/libtds.a/locale.o
.libs/libsybdb.lax/libtds.a/challenge.o
.libs/libsybdb.lax/libtds.a/threadsafe.o
.libs/libsybdb.lax/libtds.a/vstrbuild.o
.libs/libsybdb.lax/libtds.a/md4.o .libs/libsybdb.lax/libtds.a/md5.o
.libs/libsybdb.lax/libtds.a/des.o
.libs/libsybdb.lax/libtds.a/tdsstring.o
.libs/libsybdb.lax/libtds.a/getmac.o .libs/libsybdb.lax/libtds.a/data.o
.libs/libsybdb.lax/libtds.a/net.o
.libs/libsybdb.lax/libtds.a/tds_checks.o
.libs/libsybdb.lax/libtds.a/log.o .libs/libsybdb.lax/libtds.a/gssapi.o
.libs/libsybdb.lax/libtds.a/hmac_md5.o
.libs/libsybdb.lax/libreplacements.a/iconv.o
.libs/libsybdb.lax/libreplacements.a/gettimeofday.o
.libs/libsybdb.lax/libreplacements.a/asprintf.o
.libs/libsybdb.lax/libreplacements.a/vasprintf.o
.libs/libsybdb.lax/libreplacements.a/readpassphrase.o
.libs/libsybdb.lax/libreplacements.a/strlcpy.o
.libs/libsybdb.lax/libreplacements.a/strlcat.o -lxnet -lc -pthread
-Wl,-Bsymbolic
ld: (Warning) Cannot hide undefined symbol "tds_sys_iconv_open". Symbol
was referenced from file .libs/libsybdb.lax/libtds.a/iconv.o
ld: (Warning) Cannot hide undefined symbol "tds_sys_iconv_close". Symbol
was referenced from file .libs/libsybdb.lax/libtds.a/iconv.o
ld: (Warning) Cannot hide undefined symbol "tds_sys_iconv". Symbol was
referenced from file .libs/libsybdb.lax/libtds.a/iconv.o
3 warnings.


Then ultimately a fatal error when trying to compile the tsql
application...

gcc -D_REENTRANT -pthread -g -O2 -Wdeclaration-after-statement -o tsql
tsql.o ../tds/.libs/libtds.a ../replacements/.libs/libreplacements.a
-lxnet
ld: Unsatisfied hidden symbol "tds_sys_iconv_open". Symbol was
referenced from file ../tds/.libs/libtds.a[iconv.o]
ld: Unsatisfied hidden symbol "tds_sys_iconv_close". Symbol was
referenced from file ../tds/.libs/libtds.a[iconv.o]
ld: Unsatisfied hidden symbol "tds_sys_iconv". Symbol was referenced
from file ../tds/.libs/libtds.a[iconv.o]
3 errors.
collect2: ld returned 1 exit status

My C coding skills are very weak but I'm going to guess that this needs
to be fixed in the base code. Can someone confirm that for me? If
there is a work around please let me know that too.

Thanks

Jeffrey

-----Original Message-----
From: freetds-bounces AT lists.ibiblio.org
[mailto:freetds-bounces AT lists.ibiblio.org] On Behalf Of James K. Lowden
Sent: Thursday, May 07, 2009 11:01 PM
To: FreeTDS Development Group
Subject: Re: [freetds] tsql Memory fault on HP-UX

Kitt, Jeffrey wrote:
>
> Program received signal SIGSEGV, Segmentation fault
> si_code: 2 - SEGV_ACCERR - Invalid Permissions for object.
> 0x200000007eacf5b0:0 in .text + 0xd0 ()
> from /usr/lib/nls/iconv/hpux32/methods.1/lsbucode.so
> 1262txi
> 1266yrogram is running. Exit anyway? (y or n) /usr/local/freetds/bin
> (dolphin) $
>
> The gdb session does not terminate on its own so I can't get a
> backtrace listing from gdb.

You might try disabling iconv, if that suits your purpose, or using GNU
iconv instead. From the directory name, it appears the fault was in
that neighborhood.

HTH.

--jkl

_______________________________________________
FreeTDS mailing list
FreeTDS AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds




Archive powered by MHonArc 2.6.24.

Top of Page