Bug #56121 libssl 1.0.0a_0 and mysql gem
Submitted: 19 Aug 2010 14:30 Modified: 7 Oct 2012 18:51
Reporter: Piotr Szal Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Server Severity:S1 (Critical)
Version:gem mysql 2.8.1 OS:MacOS (10.5.8)
Assigned to: CPU Architecture:Any
Tags: gem mysql openssl

[19 Aug 2010 14:30] Piotr Szal
Description:
Hallo,

im use mysql gem version (2.8.1) and openssl @1.0.0a_0 (installed from MacPorts).

when im use mysql gem in my projects i have this error:

dyld: NSLinkModule() error
dyld: Library not loaded: /opt/local/lib/libssl.0.9.8.dylib
Referenced from: /Users/pisz/.multiruby/install/1.8.6-p114/lib/ruby/gems/1.8/gems/mysql-2.8.1/lib/mysql_api.bundle
Reason: image not found
Trace/BPT trap

because i have 1.0.0 version installed.

My svn and ssh works with the 1.0.0 version and i have to switch between this version of openssl to work with mysql
and ssh/svn.

Greets,
Piotr Szal

How to repeat:
Install openssl 1.0.0 with macports and uninstall openssl 0.9.8.

Then install mysql with rubygems

gem install mysql

pisz-7:~ pisz$ sudo gem install mysql
Building native extensions.  This could take a while...
ERROR:  Error installing mysql:
        ERROR: Failed to build gem native extension.

/Users/pisz/.multiruby/install/1.8.6-p114/bin/ruby extconf.rb
checking for mysql_ssl_set()... yes
checking for rb_str_set_len()... no
checking for rb_thread_start_timer()... yes
checking for mysql.h... yes
creating Makefile

make
gcc -I. -I. -I/Users/pisz/.multiruby/install/1.8.6-p114/lib/ruby/1.8/i686-darwin9.8.0 -I. -DHAVE_MYSQL_SSL_SET -DHAVE_RB_THREAD_START_TIMER -DHAVE_MYSQL_H  -I/opt/local/include/mysql5/mysql  -fPIC    -D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DIGNORE_SIGHUP_SIGQUIT  -DDONT_DECLARE_CXA_PURE_VIRTUAL -fno-common -g -O2 -pipe -fno-common  -c mysql.c
cc -dynamic -bundle -undefined suppress -flat_namespace -o mysql_api.bundle mysql.o -L"." -L"/Users/pisz/.multiruby/install/1.8.6-p114/lib" -L.     -L/opt/local/lib   -L/opt/local/lib/mysql5/mysql -lmysqlclient -L/opt/local/lib -lz -lm  -L/opt/local/lib/ -lssl -lcrypto  -ldl -lobjc  
ld: file not found: /opt/local/lib/libssl.0.9.8.dylib
collect2: ld returned 1 exit status
make: *** [mysql_api.bundle] Error 1

Gem files will remain installed in /Users/pisz/.multiruby/install/1.8.6-p114/lib/ruby/gems/1.8/gems/mysql-2.8.1 for inspection.
Results logged to /Users/pisz/.multiruby/install/1.8.6-p114/lib/ruby/gems/1.8/gems/mysql-2.8.1/ext/mysql_api/gem_make.out
[7 Sep 2012 18:51] Sveta Smirnova
Thank you for the report.

Please try current version of MySQL Server: 5.5.27 or 5.1.65 and inform us if problem still exists. Please install version from dev.mysql.com/downloads: we don't support gem anyway.
[8 Oct 2012 1:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".