Bug #30948 agent installation fails due to libraries not found
Submitted: 11 Sep 2007 9:17 Modified: 12 Oct 2007 16:26
Reporter: Axel Schwenke Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Enterprise Monitor: Agent Severity:S1 (Critical)
Version:1.1.1.5780 OS:IBM AIX
Assigned to: Jan Kneschke CPU Architecture:Any

[11 Sep 2007 9:17] Axel Schwenke
Description:
Installation of the agent fails with an error message like this:

Warning: Problem running post-install step. Installation may not complete
correctly
Error running script /opt/mysql/network/agent/bin/mysql-service-agent : exec():
0509-036 Cannot load program
/opt/mysql/network/agent/lib/mysql-service-agent/mysql-service-agent because of
the following errors:
0509-022 Cannot load module
/opt/mysql/network/agent/lib/mysql-service-agent/libgthread-2.0.so.
0509-150 Dependent module
/home/mysqldev/merlin-32bit/inst/glib/lib/libglib-2.0.so could not be loaded.
0509-022 Cannot load module
/home/mysqldev/merlin-32bit/inst/glib/lib/libglib-2.0.so.
0509-026 System error: A file or directory in the path name does not exist.
0509-022 Cannot load module mysql-service-agent.
0509-150 Dependent module
/opt/mysql/network/agent/lib/mysql-service-agent/libgthread-2.0.so could not be
loaded.
0509-022 Cannot load module .

It seems libglib-2.0.so is referenced in the directory where it was at link time. The installed libglib-2.0.so in /opt/mysql/network/agent/lib/mysql-service-agent/ is not found by the dynamic linker.

How to repeat:
Install the agent on an AIX box. Make sure the libraries in /home/mysqldev/merlin-32bit/inst/ are not available.
[11 Sep 2007 11:37] Axel Schwenke
Same problem exists with earlier build 1.1.1.5370.
[11 Oct 2007 15:28] Jan Kneschke
After passing "-Wl,-bnoipath" down to the linker for glib2 the link-path isn't used as runtime search path for the libraries. 

A rebuilt package should fix the issue.
[11 Oct 2007 19:30] Carsten Segieth
tested OK with 1.2.0.7757
[12 Oct 2007 16:21] Andy Bang
From the #merlin IRC channel on 2007-10-12:

[09:17] <mmontgomery> andy:  Customer reports that the 1.2.x build for AIX is working just fine.
[12 Oct 2007 16:26] Peter Lavin
Added to the changelog for version 1.2.