Skip to Content.
Sympa Menu

freetds - [freetds] freeTDS / unixODBC / PHP on AIX 5.1

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "WATTS, RANDY (SBCSI)" <ww1232 AT sbc.com>
  • To: <freetds AT lists.ibiblio.org>
  • Subject: [freetds] freeTDS / unixODBC / PHP on AIX 5.1
  • Date: Tue, 28 Sep 2004 15:37:04 -0700

Well, back again with the same problem pretty much.
In my previous thread "problem compiling on AIX 4.3.3.0"
things were solved with compiling static instead of using shared.
FreeTDS worked fine stand alone but what I really need is a
a setup using freeTDS/unixODBC and PHP. It seems that unixODBC
really wants shared libs in order to work at least that's what I think I
need.

I have been able to get access to an AIX box running 5.1 and a Visual
Age compiler
version 6. Maybe that will help things.

Compiling static works great, But when I try shared it bombs at the
same location it did
on the 4.3.3.0 box.

The compile is still failing at the following location.
I will include the error and then the outputs with the -bloadmap and
-bnoquiet options to ld .

ERROR:
Making all in apps
source='tsql.c' object='tsql.o' libtool=no
depfile='.deps/tsql.Po' tmpdepfile='.deps/tsql.TPo' depmode=aix /bi
n/sh ../../depcomp cc -DHAVE_CONFIG_H -I. -I. -I../../include
-I../../include -D_FREETDS_LIBRARY_SOURCE -D_REENTRANT
-D_THREAD_SAFE -DDEBUG=1 -g -c `test -f 'tsql.c' || echo './'`tsql.c
1506-507 (W) No licenses available. Contact your program supplier to add
additional users. Compilation will proceed shor
tly.
/bin/sh ../../libtool --mode=link cc -g -o tsql tsql.o
-lcurses ../tds/libtds.la
mkdir .libs
cc -g -o .libs/tsql tsql.o -lcurses -L../tds/.libs -ltds -liconv
-Wl,-blibpath:/usr/local/lib:/usr/lpp/xlopt:/usr/lib:/
lib
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_connect
ld: 0711-317 ERROR: Undefined symbol: .tds_version
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-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_submit_query
ld: 0711-317 ERROR: Undefined symbol: .tds_process_result_tokens
ld: 0711-317 ERROR: Undefined symbol: .tds_process_row_tokens
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_client_msg
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
make: 1254-004 The error code from the last command is 8.

++++++++++++++++++++++++++++++++++++++++++++++++++++++++

WITH -bloadmap

cc -g -o .libs/tsql tsql.o -lcurses -L../tds/.libs -ltds -liconv
-Wl,-blibpath:/usr/local/lib:/usr/lpp/xlopt:/usr/lib:/lib -Wl,-bloadmap

ld: 0706-015 The -b loadmap option needs a parameter.
Option syntax: -b loadmap:PARM

Not sure what parameter to include in order to get meaningful
information.

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

WITH -bnoquiet

cc -g -o .libs/tsql tsql.o -lcurses -L../tds/.libs -ltds -liconv
-Wl,-blibpath:/usr/local/lib:/usr/lpp/xlopt:/usr/lib:/lib -Wl,-bnoquiet

(ld): halt 4
(ld): lrgpage 0
(ld): savename .libs/tsql
(ld): filelist 8 2
(ld): i /lib/crt0.o
(ld): i tsql.o
(ld): lib /usr/lib/libcurses.a
(ld): lib ../tds/.libs/libtds.a
(ld): lib /usr/lib/libiconv.a
(ld): lib /usr/lib/libg.a
(ld): lib /usr/lib/libxlopt.a
(ld): lib /usr/lib/libc.a
LIBRARY: Shared object libcurses.a[shr42.o]: 508 symbols imported.
LIBRARY: Shared object libtds.a[libtds.so.3]: 5 symbols imported.
LIBRARY: Shared object libiconv.a[shr4.o]: 10 symbols imported.
LIBRARY: Shared object libiconv.a[shr.o]: 11 symbols imported.
LIBRARY: Shared object libc.a[shr.o]: 2460 symbols imported.
LIBRARY: Shared object libc.a[meth.o]: 2 symbols imported.
LIBRARY: Shared object libc.a[aio.o]: 11 symbols imported.
LIBRARY: Shared object libc.a[pse.o]: 5 symbols imported.
LIBRARY: Shared object libc.a[dl.o]: 4 symbols imported.
LIBRARY: Shared object libc.a[pty.o]: 1 symbols imported.
FILELIST: Number of previously inserted files processed: 8
(ld): exports /usr/lib/libg.exp
EXPORTS: Symbols exported: 4
(ld): resolve
RESOLVE: 99 of 3714 symbols were kept.
(ld): addgl /usr/lib/glink.o
ADDGL: Glink code added for 52 symbols.
(ld): er full
ld: 0711-318 ERROR: Undefined symbols were found.
The following symbols are in error:
Symbol Inpndx TY CL Source-File(Object-File) OR
Import-File{Shared-object}
RLD: Address Section Rld-type
Referencing Symbol

------------------------------------------------------------------------
----------------------
.tds_alloc_login [494] ER PR tsql.c(tsql.o)
0000003c .text R_RBR [254]
.main
.tds_alloc_context [496] ER PR tsql.c(tsql.o)
00000048 .text R_RBR [254]
.main
.tds_alloc_socket [500] ER PR tsql.c(tsql.o)
000000c0 .text R_RBR [254]
.main
.tds_set_parent [502] ER PR tsql.c(tsql.o)
000000d4 .text R_RBR [254]
.main
.tds_read_config_info [504] ER PR tsql.c(tsql.o)
000000ec .text R_RBR [254]
.main
.tds_connect [506] ER PR tsql.c(tsql.o)
0000010c .text R_RBR [254]
.main
.tds_free_connect [508] ER PR tsql.c(tsql.o)
00000120 .text R_RBR [254]
.main
0000014c .text R_RBR [254]
.main
.tds_version [524] ER PR tsql.c(tsql.o)
00000294 .text R_RBR [254]
.main
00001780 .text R_RBR [395]
.do_query
.tds_free_socket [536] ER PR tsql.c(tsql.o)
00000450 .text R_RBR [254]
.main
.tds_free_login [538] ER PR tsql.c(tsql.o)
0000045c .text R_RBR [254]
.main
.tds_free_context [540] ER PR tsql.c(tsql.o)
00000468 .text R_RBR [254]
.main
.tds_get_compiletime_settings [562] ER PR tsql.c(tsql.o)
00000be0 .text R_RBR [338]
.populate_login
.tds_set_user [566] ER PR tsql.c(tsql.o)
00000f18 .text R_RBR [338]
.populate_login
00000fa4 .text R_RBR [338]
.populate_login
.tds_set_app [568] ER PR tsql.c(tsql.o)
00000f28 .text R_RBR [338]
.populate_login
00000fb4 .text R_RBR [338]
.populate_login
.tds_set_library [570] ER PR tsql.c(tsql.o)
00000f38 .text R_RBR [338]
.populate_login
00000fc4 .text R_RBR [338]
.populate_login
.tds_set_server [572] ER PR tsql.c(tsql.o)
00000f48 .text R_RBR [338]
.populate_login
00000fd4 .text R_RBR [338]
.populate_login
.tds_set_client_charset [574] ER PR tsql.c(tsql.o)
00000f58 .text R_RBR [338]
.populate_login
00000ff4 .text R_RBR [338]
.populate_login
.tds_set_language [576] ER PR tsql.c(tsql.o)
00000f68 .text R_RBR [338]
.populate_login
00001004 .text R_RBR [338]
.populate_login
.tds_set_passwd [578] ER PR tsql.c(tsql.o)
00000f78 .text R_RBR [338]
.populate_login
00001014 .text R_RBR [338]
.populate_login
.tds_set_interfaces_file_loc [580] ER PR tsql.c(tsql.o)
00000f90 .text R_RBR [338]
.populate_login
.tds_set_port [582] ER PR tsql.c(tsql.o)
00000fe4 .text R_RBR [338]
.populate_login
.tds_submit_query [584] ER PR tsql.c(tsql.o)
000013d8 .text R_RBR [395]
.do_query
.tds_process_result_tokens [586] ER PR tsql.c(tsql.o)
00001418 .text R_RBR [395]
.do_query
00001868 .text R_RBR [395]
.do_query
.tds_process_row_tokens [590] ER PR tsql.c(tsql.o)
00001540 .text R_RBR [395]
.do_query
0000172c .text R_RBR [395]
.do_query
.tds_get_null [592] ER PR tsql.c(tsql.o)
000015a8 .text R_RBR [395]
.do_query
.tds_get_conversion_type [594] ER PR tsql.c(tsql.o)
00001608 .text R_RBR [395]
.do_query
.tds_convert [596] ER PR tsql.c(tsql.o)
00001698 .text R_RBR [395]
.do_query
.tds_client_msg [598] ER PR tsql.c(tsql.o)
000017cc .text R_RBR [395]
.do_query
00001854 .text R_RBR [395]
.do_query
ER: The return code is 8.

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++


Thanks

-Randy





Archive powered by MHonArc 2.6.24.

Top of Page