OK, I admit it, I'm stumped.  I've done this before, but I've lost the
script that used to do this.

All I'm trying to do is build a simple MySQL client program under AIX 4.3
with gcc, and I can't seem to get the link libraries right (the worst part
of porting!). Any help appreciated.

I've done this before, I can't find the shell script that does it, and as I
recall when I did this a year or so ago, it was a complete pain, because it
was an obscure set of libraries, in an obscure order.

Any help appreciated.

/usr/local/bin/gcc -w -DDBUG_OFF -static -o xxx
xxx.c -I/usr/local/mysql/include -L/usr/local/mysql/lib -lmysqlclient -lnsl 
-lm -lpthread -lpthreads -lpthreads_compat

ld: 0711-317 ERROR: Undefined symbol: thread_unlock
ld: 0711-317 ERROR: Undefined symbol: thread_waitact
ld: 0711-317 ERROR: Undefined symbol: thread_setmystate_fast
ld: 0711-317 ERROR: Undefined symbol: thread_tsleep
ld: 0711-317 ERROR: Undefined symbol: thread_twakeup
ld: 0711-317 ERROR: Undefined symbol: thread_setstate
ld: 0711-317 ERROR: Undefined symbol: thread_terminate_ack
ld: 0711-317 ERROR: Undefined symbol: thread_setmystate
ld: 0711-317 ERROR: Undefined symbol: thread_tsleep_event
ld: 0711-317 ERROR: Undefined symbol: thread_waitlock_local
ld: 0711-317 ERROR: Undefined symbol: thread_waitlock
ld: 0711-317 ERROR: Undefined symbol: thread_kill
ld: 0711-317 ERROR: Undefined symbol: thread_twakeup_event
ld: 0711-317 ERROR: Undefined symbol: thread_getregs
ld: 0711-317 ERROR: Undefined symbol: thread_init
ld: 0711-317 ERROR: Undefined symbol: thread_setstate_fast
ld: 0711-317 ERROR: Undefined symbol: thread_terminate_unlock
ld: 0711-317 ERROR: Undefined symbol: t_open
ld: 0711-317 ERROR: Undefined symbol: t_getstate
ld: 0711-317 ERROR: Undefined symbol: t_unbind
ld: 0711-317 ERROR: Undefined symbol: t_sync
ld: 0711-317 ERROR: Undefined symbol: t_close
ld: 0711-317 ERROR: Undefined symbol: t_bind
ld: 0711-317 ERROR: Undefined symbol: t_getinfo
ld: 0711-317 ERROR: Undefined symbol: _terrno
ld: 0711-317 ERROR: Undefined symbol: t_alloc
ld: 0711-317 ERROR: Undefined symbol: t_connect
ld: 0711-317 ERROR: Undefined symbol: t_rcvconnect
ld: 0711-317 ERROR: Undefined symbol: t_free
ld: 0711-317 ERROR: Undefined symbol: t_rcv
ld: 0711-317 ERROR: Undefined symbol: t_look
ld: 0711-317 ERROR: Undefined symbol: t_rcvrel
ld: 0711-317 ERROR: Undefined symbol: t_sndrel
ld: 0711-317 ERROR: Undefined symbol: t_rcvdis
ld: 0711-317 ERROR: Undefined symbol: t_snddis
ld: 0711-317 ERROR: Undefined symbol: t_snd
ld: 0711-317 ERROR: Undefined symbol: t_optmgmt
ld: 0711-317 ERROR: Undefined symbol: t_sndudata
ld: 0711-317 ERROR: Undefined symbol: t_rcvudata
ld: 0711-317 ERROR: Undefined symbol: t_rcvuderr
ld: 0711-317 ERROR: Undefined symbol: t_errlist
ld: 0711-317 ERROR: Undefined symbol: t_nerr
ld: 0711-317 ERROR: Undefined symbol: t_listen
ld: 0711-317 ERROR: Undefined symbol: t_accept
ld: 0711-317 ERROR: Undefined symbol: .setenv
ld: 0711-317 ERROR: Undefined symbol: .timegm
--
Ed Carp, N7EKG  -  [EMAIL PROTECTED]  -  940/367-2744 (cell phone)

Is your web site data driven?  Are you swamped with work managing, updating,
and deploying that data on to your web site?  You need Escapade!  Check us
out at http://www.squishedmosquito.com/cgi-bin/esp?PAGE=esp_intro.html


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to