forum.vmspython.org Forum Index forum.vmspython.org
Forum system
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

link error trying to use the C API with itanium 8.3

 
Post new topic   Reply to topic    forum.vmspython.org Forum Index -> MySQL for OpenVMS
View previous topic :: View next topic  
Author Message
waynesewell



Joined: 06 Mar 2009
Posts: 4

PostPosted: Sat Mar 07, 2009 3:31 pm    Post subject: link error trying to use the C API with itanium 8.3 Reply with quote

For my web application project, most of my access of MySQL is via PHP. However, I do have a few maintenance utilities that run offline, outside of the webserver. For those I am using the C API.

This works fine on alpha 8.3. However, the same utilities fail to link on itanium 8.3.

Here's what I get:
Code:

$ link/exe=exedir: @scan_applicants_IA64
sys$input:scan_applicants.opt/option
objdir:scan_applicants.obj
mysql_access_routines.obj
sp32lib/lib
global_definitions.obj
mysql051_root:[vms.lib]mysqlclient_upper/lib
libz_shr64/share
ssllib:libssl/lib
libcrypto/lib
%ILINK-W-NUDFSYMS, 2 undefined symbols:
%ILINK-I-UDFSYM,    MY_TIME
%ILINK-I-UDFSYM,    THD_LIB_DETECTED
%ILINK-W-USEUNDEF, undefined symbol MY_TIME referenced
   section: $CODE$
   offset: %X0000000000000270  slot: 2
   module: CLIENT
   file: MYSQL051_ROOT:[vms.lib]mysqlclient_upper.olb;1
%ILINK-W-USEUNDEF, undefined symbol MY_TIME referenced
   section: $CODE$
   offset: %X00000000000002F0  slot: 2
   module: CLIENT
   file: MYSQL051_ROOT:[vms.lib]mysqlclient_upper.olb;1
%ILINK-W-USEUNDEF, undefined symbol THD_LIB_DETECTED referenced
   section: $CODE$
   offset: %X0000000000000000  slot: 1
   module: MY_THR_INIT
   file: MYSQL051_ROOT:[vms.lib]mysqlclient_upper.olb;1
%ILINK-W-USEUNDEF, undefined symbol THD_LIB_DETECTED referenced
   section: $CODE$
   offset: %X0000000000000010  slot: 1
   module: MY_THR_INIT
   file: MYSQL051_ROOT:[vms.lib]mysqlclient_upper.olb;1

If these symbols are not in mysqlclient, where are they?
Back to top
View user's profile Send private message
waynesewell



Joined: 06 Mar 2009
Posts: 4

PostPosted: Sun Mar 08, 2009 5:40 am    Post subject: Reply with quote

Okay, investigating further, there appear to be at least two object modules missing from mysqlclient_upper.olb.

The two missing symbols are defined by modules my_pthread and my_getsystime. Both of these are present in the alpha object library, but not in the itanium object library.

So how do I get this corrected? I have the source files for these, but they have not been tweaked for vms in any way, and I don't know the proper defines to use and such.
Back to top
View user's profile Send private message
waynesewell



Joined: 06 Mar 2009
Posts: 4

PostPosted: Sun Mar 08, 2009 5:46 am    Post subject: Reply with quote

If you do a diff of the output of lib/list/names, you find that two more modules are missing from the itanium .olb file: mf_arr_appstr and mf_qsort. Also symbols net_clear_error and set_stmt_error appear only on alpha. Conversely, symbol mysql_odbc_escape_string appears only in the itan library.

????
Back to top
View user's profile Send private message
jfp



Joined: 12 Jul 2004
Posts: 618

PostPosted: Sun Mar 08, 2009 11:59 pm    Post subject: Reply with quote

This is a know problem, this will be fixed in a forthcoming.

A new version of the client library can be download using:

http://www.vmsmysql.org/anonymous/kits/ia64/mysqlclient05122_upd1.zip


JF
Back to top
View user's profile Send private message Send e-mail Visit poster's website
waynesewell



Joined: 06 Mar 2009
Posts: 4

PostPosted: Mon Mar 09, 2009 12:12 am    Post subject: Reply with quote

jfp wrote:
This is a know problem, this will be fixed in a forthcoming.

A new version of the client library can be download using:

http://www.vmsmysql.org/anonymous/kits/ia64/mysqlclient05122_upd1.zip

Thanks. Has this been mentioned before? I looked through the topics in this forum and didn't see it anywhere.
Back to top
View user's profile Send private message
jfp



Joined: 12 Jul 2004
Posts: 618

PostPosted: Wed Mar 11, 2009 9:54 am    Post subject: Reply with quote

waynesewell wrote:

Thanks. Has this been mentioned before? I looked through the topics in this forum and didn't see it anywhere.


You are correct, I take a look at my archive, this was mentioned in a private email, not even, in the mailing list.

So, now, it's in the forum Very Happy

Sorry,

JF
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vmspython.org Forum Index -> MySQL for OpenVMS All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group