Skip to Content.
Sympa Menu

freetds - RE: [freetds] MSSQL on AIX 5.1

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Frediano Ziglio <freddyz77 AT tin.it>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] MSSQL on AIX 5.1
  • Date: Tue, 29 Jun 2004 18:50:49 +0200

Il mar, 2004-06-29 alle 18:27, Thompson, Bill D (London) ha scritto:
> Somehow you are jot picking up one of the FreeTDS libraries when you try and
> build one of our executables - tsql.
>
> It's a bit difficult to see why as your setup is far from transparent:
>
> /usr/bin/../lib/gcc-lib/powerpc-ibm-aix5.1.0.0/2.9-aix51-020209/../../.. ?
>
> I make that
>
> /usr/lib
>
> :-0
>
> Bill

However he has -L../tds/.libs -ltds, so libtds is searched from current
directory (correct to me) however linker do not finds libtds symbols.
You can note also that symbols are '.' prefixed... it can be a wrong
name mangling... what does nm returns ??

For example on my machine (Linux) I get

[freddy@freddy apps]$ nm ../tds/.libs/libtds.so | grep tds_ge
0000ef2c T tds_get_byte
0001df30 t tds_get_cardinal_type
0000f104 T tds_get_char_data
00016938 t tds_get_column_declaration
0001620c T tds_get_compiletime_settings
00010140 T tds_get_conversion_type
0000ab94 t tds_get_data
0000a44c t tds_get_data_info
0001809c T tds_get_dynid
0001bdbc T tds_get_homedir
0001472c t tds_get_home_file
0001bd44 T tds_gethostbyaddr_r
0001bd04 T tds_gethostbyname_r
00019a5c t tds_get_iconv_name
0000eff4 T tds_get_int
0001b784 T tds_get_locale
0001dd70 T tds_getmac
0000f208 T tds_get_n
0000ba50 T tds_get_null
000139dc T tds_get_null_type
0000ce08 T tds_get_parent
0001bd88 T tds_getservbyname_r
0000f2d0 T tds_get_size_by_type
0000efc8 T tds_get_smallint
0000f020 T tds_get_string
0000bf78 T tds_get_token_size
0001dfa0 t tds_get_varint_size

[freddy@freddy apps]$ nm /lib/libc.so.6 | grep strcp
00076700 t __GI_strcpy
00076700 T strcpy
0007c450 T __strcpy_g
0007cc80 T __strcpy_small

as you can note symbols doesn't have any mangling...

freddy77

> > -----Original Message-----
> > From: Rafi Sheikh [SMTP:Rafi.Sheikh AT Ingenix.com]
> > Sent: 29 June 2004 17:07
> > To: 'FreeTDS Development Group'
> > Subject: RE: [freetds] MSSQL on AIX 5.1
> >
> > Resending this again please if you don't mind, let me know what is wrong
> > here (Aix 5.1)
> > TIA
> >
> > -----Original Message-----
> > From: Rafi Sheikh
> > Sent: Monday, June 28, 2004 3:37 PM
> > To: 'FreeTDS Development Group'
> > Subject: RE: [freetds] MSSQL on AIX 5.1
> >
> >
> > Here is the error my unix admin got when trying ot install FreeTDS on Aix
> > 5.1...any suggestions?
> >
> > TIA
> >
> > ---error starts here---
> > gcc -g -O2 -o .libs/tsql tsql.o -lcurses -L../tds/.libs -ltds -liconv -lc
> > -Wl,-blibpath:/usr/local/lib:/usr/bin/../lib/gcc-lib/powerpc-ibm-aix5.1.0.
> > 0/
> > 2.9-aix51-020209:/usr/bin/../lib/gcc-lib:/opt/freeware/GNUPro/lib/gcc-lib/
> > po
> > werpc-ibm-aix5.1.0.0/2.9-aix51-020209:/usr/bin/../lib/gcc-lib/powerpc-ibm-
> > ai
> > x5.1.0.0/2.9-aix51-020209/../../..:/opt/freeware/GNUPro/lib/gcc-lib/powerp
> > c-
> > ibm-aix5.1.0.0/2.9-aix51-020209/../../..:/usr/lib:/lib
> > ld: 0711-317 ERROR: Undefined symbol: .tds_submit_query
> > ld: 0711-317 ERROR: Undefined symbol: .tds_get_null
> > ld: 0711-317 ERROR: Undefined symbol: .tds_get_conversion_type
> > ld: 0711-317 ERROR: Undefined symbol: .tds_convert
> > ld: 0711-317 ERROR: Undefined symbol: .tds_process_row_tokens
> > ld: 0711-317 ERROR: Undefined symbol: .tds_version
> > ld: 0711-317 ERROR: Undefined symbol: .tds_client_msg
> > ld: 0711-317 ERROR: Undefined symbol: .tds_process_result_tokens
> > ld: 0711-317 ERROR: Undefined symbol: .tds_get_compiletime_settings
> > ld: 0711-317 ERROR: Undefined symbol: .tds_set_user
> > ld: 0711-317 ERROR: Undefined symbol: .tds_set_app
> > ld: 0711-317 ERROR: Undefined symbol: .tds_set_library
> > ld: 0711-317 ERROR: Undefined symbol: .tds_set_server
> > ld: 0711-317 ERROR: Undefined symbol: .tds_set_client_charset
> > ld: 0711-317 ERROR: Undefined symbol: .tds_set_language
> > ld: 0711-317 ERROR: Undefined symbol: .tds_set_passwd
> > ld: 0711-317 ERROR: Undefined symbol: .tds_set_interfaces_file_loc
> > ld: 0711-317 ERROR: Undefined symbol: .tds_set_port
> > ld: 0711-317 ERROR: Undefined symbol: .tds_alloc_login
> > ld: 0711-317 ERROR: Undefined symbol: .tds_alloc_context
> > ld: 0711-317 ERROR: Undefined symbol: .tds_alloc_socket
> > ld: 0711-317 ERROR: Undefined symbol: .tds_set_parent
> > ld: 0711-317 ERROR: Undefined symbol: .tds_read_config_info
> > ld: 0711-317 ERROR: Undefined symbol: .tds_connect
> > ld: 0711-317 ERROR: Undefined symbol: .tds_free_connection
> > ld: 0711-317 ERROR: Undefined symbol: .tds_free_socket
> > ld: 0711-317 ERROR: Undefined symbol: .tds_free_login
> > ld: 0711-317 ERROR: Undefined symbol: .tds_free_context
> > ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
> > information.
> > collect2: ld returned 8 exit status
> > make: 1254-004 The error code from the last command is 1.
> >
> >
> > Stop.
> > make: 1254-004 The error code from the last command is 1.
> >
> >
> > Stop.
> > make: 1254-004 The error code from the last command is 1.
> >
> >
> > Stop.
> >
> >





Archive powered by MHonArc 2.6.24.

Top of Page