hbknjr

cod4x_mysql plugin symbol lookup error: Plugin_Scr_AddArrayKey

Recommended Posts

Posted (edited)

I am getting symbol lookup error on using the plugin functions:
 

./cod4x18_dedrun: symbol lookup error: /home/xxx/.callofduty4/plugin.libcod4x_mysql.tmp: undefined symbol: Plugin_Scr_AddArrayKey

 

 

I compiled the plugin with mysql connector version 6.1.11 and latest files from the master branch. had to change  PLUGIN_HANDLER_VERSION_MAJOR=4 to get past the following error-

Error: This plugin might not be compatible with this server version! Requested plugin handler version: 3.100, server's plugin handler version: 4.0. Unloading the plugin

 

 

 

The plugin loaded successfully:
 

Checking if the plugin is not already loaded...
Checking if the plugin file exists and is of correct format...
Parsing plugin function names...
Done parsing plugin function names.
Loading the plugin .so...
Plugin OK! Loading...
Fetching plugin information...
Executing plugin's OnInit...
Adding a plugin script function for plugin 1, command name: mysql_real_connect.
Adding a plugin script function for plugin 1, command name: mysql_close.
Adding a plugin script function for plugin 1, command name: mysql_affected_rows.
Adding a plugin script function for plugin 1, command name: mysql_query.
Adding a plugin script function for plugin 1, command name: mysql_num_rows.
Adding a plugin script function for plugin 1, command name: mysql_num_fields.
Adding a plugin script function for plugin 1, command name: mysql_fetch_row.
Adding a plugin script function for plugin 1, command name: mysql_fetch_rows.
Loaded fastfile 'localized_code_post_gfx_mp' in 30ms (0ms waiting)
Loading fastfile 'common_mp'
used 39.00 MB memory in DB alloc
Plugin libcod4x_mysql loaded successfully. Server is currently running 2 plugins

 

This is probably a silly linking issue though I used the original makefile to compile. Help!

Edited by hbknjr
+info

Share this post


Link to post
Share on other sites

we are aware of the issue, nobody has cared to solve it yet.

Share this post


Link to post
Share on other sites

I compiled the plugin with dev_newarch branch and it turns out  Plugin_Scr_AddArrayKey is now Plugin_Scr_AddArrayKeys .

made changes to mysql_fetch_row and mysql_fetch_rows  .

and it ran successfully BUT it does not work as expected now it can't create the keys successfully.

With trial and error, I found that only the value of a single column (last) of the query can be retrieved. This behaviour indicates a change in the definition of Plugin functions (which I'm not aware off without proper documentation). 

Any insight will be helpful.

Share this post


Link to post
Share on other sites

Ninja did make changes to Plugin functions, so yes they have changed but not aware in what ways.

Share this post


Link to post
Share on other sites
On 3/10/2019 at 5:04 PM, Kingwolf said:

Ninja did make changes to Plugin functions, so yes they have changed but not aware in what ways.

Is there any documentation for plugin functions?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.