Skip to Content.
Sympa Menu

freetds - RE: [freetds] Freetds 0.62.4 on Solaris 8

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Simon Taylor" <set AT nortelnetworks.com>
  • To: "'FreeTDS Development Group'" <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] Freetds 0.62.4 on Solaris 8
  • Date: Fri, 24 Sep 2004 20:37:58 +0200

Result is :-

)#nm src/tds/.libs/libtds.so


src/tds/.libs/libtds.so:

[Index] Value Size Type Bind Other Shndx Name

[27] | 0| 0|SECT |LOCL |0 |26 |
[26] | 0| 0|SECT |LOCL |0 |25 |
[25] | 0| 0|SECT |LOCL |0 |24 |
[24] | 0| 0|SECT |LOCL |0 |23 |
[28] | 0| 0|SECT |LOCL |0 |27 |
[22] | 67324| 0|SECT |LOCL |0 |21 |
[21] | 67320| 0|SECT |LOCL |0 |20 |
[20] | 67316| 0|SECT |LOCL |0 |19 |
[19] | 67312| 0|SECT |LOCL |0 |18 |
[18] | 67304| 0|SECT |LOCL |0 |17 |
[17] | 67296| 0|SECT |LOCL |0 |16 |
[16] | 67284| 0|SECT |LOCL |0 |15 |
[15] | 67076| 0|SECT |LOCL |0 |14 |
[14] | 66988| 0|SECT |LOCL |0 |13 |
[13] | 66948| 0|SECT |LOCL |0 |12 |
[12] | 1408| 0|SECT |LOCL |0 |11 |
[11] | 976| 0|SECT |LOCL |0 |10 |
[10] | 956| 0|SECT |LOCL |0 |9 |
[9] | 928| 0|SECT |LOCL |0 |8 |
[8] | 892| 0|SECT |LOCL |0 |7 |
[7] | 880| 0|SECT |LOCL |0 |6 |
[6] | 772| 0|SECT |LOCL |0 |5 |
[5] | 740| 0|SECT |LOCL |0 |4 |
[4] | 488| 0|SECT |LOCL |0 |3 |
[3] | 264| 0|SECT |LOCL |0 |2 |
[2] | 148| 0|SECT |LOCL |0 |1 |
[23] | 0| 0|SECT |LOCL |0 |22 |
[1] | 0| 0|FILE |LOCL |0 |ABS |.libs/libtds.so.3.0.0
[63] | 67076| 0|OBJT |GLOB |0 |14 |_DYNAMIC
[29] | 67352| 0|OBJT |LOCL |0 |21 |_END_
[58] | 66948| 0|OBJT |GLOB |0 |12 |_GLOBAL_OFFSET_TABLE_
[64] | 0| 0|NOTY |WEAK |0 |UNDEF |_Jv_RegisterClasses
[65] | 66988| 0|OBJT |GLOB |0 |13
|_PROCEDURE_LINKAGE_TABLE_
[30] | 0| 0|OBJT |LOCL |0 |1 |_START_
[50] | 67300| 0|OBJT |LOCL |0 |16 |__CTOR_END__
[38] | 67296| 0|OBJT |LOCL |0 |16 |__CTOR_LIST__
[47] | 67308| 0|OBJT |LOCL |0 |17 |__DTOR_END__
[39] | 67304| 0|OBJT |LOCL |0 |17 |__DTOR_LIST__
[40] | 67312| 0|OBJT |LOCL |0 |18 |__EH_FRAME_BEGIN__
[53] | 67312| 0|OBJT |LOCL |0 |18 |__FRAME_END__
[52] | 67316| 0|OBJT |LOCL |0 |19 |__JCR_END__
[45] | 67316| 0|OBJT |LOCL |0 |19 |__JCR_LIST__
[59] | 0| 0|FUNC |WEAK |0 |UNDEF
|__deregister_frame_info
[48] | 1320| 0|FUNC |LOCL |0 |10 |__do_global_ctors_aux
[34] | 984| 0|FUNC |LOCL |0 |10 |__do_global_dtors_aux
[61] | 67288| 0|OBJT |GLOB |0 |15 |__dso_handle
[67] | 0| 0|FUNC |WEAK |0 |UNDEF |__register_frame_info
[56] | 67324| 0|OBJT |GLOB |0 |20 |_edata
[60] | 67352| 0|OBJT |GLOB |0 |21 |_end
[62] | 1412| 0|OBJT |GLOB |0 |11 |_etext
[66] | 956| 20|FUNC |GLOB |0 |9 |_fini
[57] | 928| 28|FUNC |GLOB |0 |8 |_init
[55] | 1408| 4|OBJT |GLOB |0 |11 |_lib_version
[49] | 1396| 0|FUNC |LOCL |0 |10
|call___do_global_ctors_aux
[36] | 1156| 0|FUNC |LOCL |0 |10
|call___do_global_dtors_aux
[41] | 1300| 0|FUNC |LOCL |0 |10 |call_frame_dummy
[43] | 67324| 1|OBJT |LOCL |0 |21 |completed.1
[31] | 0| 0|FILE |LOCL |0 |ABS |crti.s
[54] | 0| 0|FILE |LOCL |0 |ABS |crtn.s
[46] | 0| 0|FILE |LOCL |0 |ABS |crtstuff.c
[33] | 0| 0|FILE |LOCL |0 |ABS |crtstuff.c
[37] | 67284| 0|OBJT |LOCL |0 |15 |force_to_data
[51] | 67292| 0|OBJT |LOCL |0 |15 |force_to_data
[35] | 1168| 0|FUNC |LOCL |0 |10 |frame_dummy
[42] | 67328| 24|OBJT |LOCL |0 |21 |object.2
[44] | 67320| 0|OBJT |LOCL |0 |20 |p.0
[32] | 0| 0|FILE |LOCL |0 |ABS |values-Xa.c



No previous errors in the make log.
Did find these errors in the config.log though:-

configure:2734: gcc -c -g -O2 -D_FREETDS_LIBRARY_SOURCE conftest.c >&5
conftest.c:2: error: parse error before "me"
configure:2737: $? = 1
configure: failed program was:
| #ifndef __cplusplus
| choke me
| #endif

<snip>

configure:4588: g++ -c -g -O2 -D_FREETDS_LIBRARY_SOURCE conftest.cc >&5
configure: In function `int main()':
configure:4596: error: `exit' undeclared (first use this function)
configure:4596: error: (Each undeclared identifier is reported only once for
each function it appears in.)
configure:4591: $? = 1
configure: failed program was:
| #line 4571 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "freetds"
| #define VERSION "0.62.4"
| #define _GNU_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| /* end confdefs.h. */

<snip>

configure:18737: checking for library containing socket
configure:18768: gcc -o conftest -g -O2 -D_FREETDS_LIBRARY_SOURCE
conftest.c >&5
Undefined first referenced
symbol in file
socket /var/tmp//ccKArUIj.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure:18771: $? = 1
configure: failed program was:
| #line 18744 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "freetds"
| #define VERSION "0.62.4"
| #define _GNU_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #ifdef __cplusplus
| #include <stdlib.h>
| #endif
| /* end confdefs.h. */

<snip>

configure:18813: gcc -o conftest -g -O2 -D_FREETDS_LIBRARY_SOURCE
conftest.c -lsocket >&5
configure:18816: $? = 0
configure:18819: test -s conftest
configure:18822: $? = 0
configure:18836: result: -lsocket
configure:18843: checking for library containing gethostbyname
configure:18874: gcc -o conftest -g -O2 -D_FREETDS_LIBRARY_SOURCE
conftest.c -lsocket >&5
Undefined first referenced
symbol in file
gethostbyname /var/tmp//ccaf8TcN.o (symbol belongs to
implicit dependency /usr/lib/libnsl.so.1)
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure:18877: $? = 1
configure: failed program was:
| #line 18850 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "freetds"
| #define VERSION "0.62.4"
| #define _GNU_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #ifdef __cplusplus
| #include <stdlib.h>
| #endif
| /* end confdefs.h. */


<snip

configure:18955: checking for library containing tgetent
configure:18986: gcc -o conftest -g -O2 -D_FREETDS_LIBRARY_SOURCE
conftest.c >&5
Undefined first referenced
symbol in file
tgetent /var/tmp//ccWJ2JBX.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure:18989: $? = 1
configure: failed program was:
| #line 18962 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "freetds"
| #define VERSION "0.62.4"
| #define _GNU_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #ifdef __cplusplus
| #include <stdlib.h>
| #endif
| /* end confdefs.h. */


<snip>


configure:19031: gcc -o conftest -g -O2 -D_FREETDS_LIBRARY_SOURCE
conftest.c -lreadline >&5
Undefined first referenced
symbol in file
tgoto
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.1/../../../libreadline.so
tputs
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.1/../../../libreadline.so
tgetent /var/tmp//ccwmSPzJ.o
tgetnum
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.1/../../../libreadline.so
tgetstr
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.1/../../../libreadline.so
tgetflag
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.1/../../../libreadline.so
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure:19034: $? = 1
configure: failed program was:
| #line 19007 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "freetds"
| #define VERSION "0.62.4"
| #define _GNU_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #ifdef __cplusplus
| #include <stdlib.h>
| #endif
| /* end confdefs.h. */

<snip>

configure:19504: checking whether INADDR_NONE is defined
configure:19541: gcc -c -g -O2 -D_FREETDS_LIBRARY_SOURCE conftest.c >&5
configure: In function `main':
configure:19571: error: `INADDR_NONE' undeclared (first use in this
function)
configure:19571: error: (Each undeclared identifier is reported only once
configure:19571: error: for each function it appears in.)
configure:19544: $? = 1
configure: failed program was:
| #line 19509 "configure"
| /* confdefs.h. */


<snip>


configure:22484: gcc -c -g -O2 -D_FREETDS_LIBRARY_SOURCE conftest.c >&5
configure: In function `main':
configure:22554: error: `__int64' undeclared (first use in this function)
configure:22554: error: (Each undeclared identifier is reported only once
configure:22554: error: for each function it appears in.)
configure:22554: error: parse error before ')' token
configure:22487: $? = 1
configure: failed program was:

<snip>

configure:23509: error: `bogus' undeclared (first use in this function)
configure:23509: error: (Each undeclared identifier is reported only once
configure:23509: error: for each function it appears in.)
configure:23509: error: parse error before "endian"
configure:23470: $? = 1
configure: failed program was:
| #line 23445 "configure"

<snip>

configure:23756: checking for locale_charset
configure:23806: gcc -o conftest -g -O2 -D_FREETDS_LIBRARY_SOURCE
conftest.c >&5
Undefined first referenced
symbol in file
locale_charset /var/tmp//ccGvpigg.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure:23809: $? = 1
configure: failed program was:

<snip>

configure:23826: result: no
configure:23756: checking for setenv
configure:23806: gcc -o conftest -g -O2 -D_FREETDS_LIBRARY_SOURCE
conftest.c >&5
Undefined first referenced
symbol in file
setenv /var/tmp//ccqEEiuI.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure:23809: $? = 1
configure: failed program was:

<snip>

configure:23904: gcc -o conftest -g -O2 -D_FREETDS_LIBRARY_SOURCE
conftest.c -lnsl -lsocket >&5
Undefined first referenced
symbol in file
sethostent_r /var/tmp//ccqdYtIO.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure:23907: $? = 1
configure: failed program was:
| #line 23859 "configure"
| /* confdefs.h. */


<snip>

configure:23992: gcc -o conftest -g -O2 -D_FREETDS_LIBRARY_SOURCE
conftest.c >&5
Undefined first referenced
symbol in file
asprintf /var/tmp//cceeHMeb.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure:23995: $? = 1
configure: failed program was:
| #line 23947 "configure"
| /* confdefs.h. */


There are more of this nature.
I guess these are just test functions? But if they are not working then the
rest would have a greater chance of failing.


Simon

-----Original Message-----
From: freetds-bounces AT lists.ibiblio.org
[mailto:freetds-bounces AT lists.ibiblio.org]
Sent: 24 September 2004 15:56
To: FreeTDS Development Group
Subject: RE: [freetds] Freetds 0.62.4 on Solaris 8


-----Original Message-----
From: Simon Taylor
Sent: Friday, September 24, 2004 9:41 AM

Having problems when running make.

Getting the following error:-

/bin/bash ../../libtool --mode=link gcc -g -O2 -o tsql tsql.o
-lncurses
-lreadline ../tds/libtds.la -lnsl -lsocket
gcc -g -O2 -o .libs/tsql tsql.o -lncurses -lreadline ../tds/.libs/libtds.so
-lnsl -lsocket -R/usr/local/lib
Undefined first referenced
symbol in file
tds_set_interfaces_file_loc tsql.o
tds_submit_query tsql.o
tds_process_result_tokens tsql.o
tds_client_msg tsql.o
tds_alloc_login tsql.o
-----End Original Message-----

What do you get for the following?

$ nm src/tds/.libs/libtds.so |grep tds_alloc_login
000061fc T tds_alloc_login

If nothing, what does "nm src/tds/.libs/libtds.so" show?

If libtds has no tds symbols, the problem lies further back in the make log,
where the library is constructed.

HTH.

--jkl

-----------------------------------------
The information contained in this transmission may contain privileged and
confidential information and is intended only for the use of the person(s)
named above. If you are not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient, any
review, dissemination, distribution or duplication of this communication is
strictly prohibited. If you are not the intended recipient, please contact
the sender immediately by reply e-mail and destroy all copies of the
original message. Please note that we do not accept account orders and/or
instructions by e-mail, and therefore will not be responsible for carrying
out such orders and/or instructions. If you, as the intended recipient of
this message, the purpose of which is to inform and update our clients,
prospects and consultants of developments relating to our services and
products, would not like to receive further e-mail correspondence from the
sender, please "reply" to the sender indicating your wishes. In the U.S.:
1345 Avenue of the Americas, New York, NY 10105.


_______________________________________________
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