Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-2634

LP:986120 - Problem installing mariadb 5 on solaris 10

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      Hi,

      I am trying to install Mariadb 5.3.5 on solaris 10 x86 32 bit machine but its failing during the make phase.

      Here are the details of the machine and mariadb version:

      Distribution : Mariadb
      Version : 5.3.5
      OS : Solaris
      Version : 10
      Platform : x86 Intel
      Arch : 32 bit

      bash# cat /etc/release
      Oracle Solaris 10 9/10 s10x_u9wos_14a X86
      Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
      Assembled 11 August 2010

      bash# uname -a
      SunOS hostname 5.10 Generic_142910-17 i86pc i386 i86pc

      I am attaching containing the configure command I used and its output and the output of the make command.

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            serg Sergei Golubchik added a comment -

            Re: Problem installing mariadb 5 on solaris 10
            That depends on the libraries that you have installed.

            I suppose you were running simply ./configure ?

            Try ./configure --with-readline

            Show
            serg Sergei Golubchik added a comment - Re: Problem installing mariadb 5 on solaris 10 That depends on the libraries that you have installed. I suppose you were running simply ./configure ? Try ./configure --with-readline
            Hide
            prashanttekriwal Prashant Tekriwal added a comment -

            Re: Problem installing mariadb 5 on solaris 10
            Here is the configure command I was issuing:

            CFLAGS="-O3" CXX=gcc CXXFLAGS="-O3 -felide-constructors -fno-exceptions -fno-rtti" ./configure --prefix=/root/mariadb --enable-assembler --with-mysqld-ldflags=-all-static

            I took the above command from 'INSTALL-SOURCE' section 2.3

            -----------

            I tried with your suggestion, still getting some different error:

            ./configure --prefix=/root/mariadb --with-readline

            make error:

            ********************************************************************************

            if g++ -DMYSQL_CLIENT_NO_THREADS -DDEFAULT_MYSQL_HOME='"/root/mariadb"' -DMYSQL_DATADIR='"/root/mariadb/var"' -I. -I. -I../include -I../include -I../include -I../regex -g -O2 -fno-implicit-templates -fno-exceptions -fno-rtti -DHAVE_RWLOCK_T -MT completion_hash.o -MD -MP -MF ".deps/completion_hash.Tpo" -c -o completion_hash.o completion_hash.cc; \
            then mv -f ".deps/completion_hash.Tpo" ".deps/completion_hash.Po"; else rm -f ".deps/completion_hash.Tpo"; exit 1; fi
            /bin/bash ../libtool --tag=CXX --mode=link g++ -g -O2 -fno-implicit-templates -fno-exceptions -fno-rtti -DHAVE_RWLOCK_T -o mysql mysql.o readline.o sql_string.o completion_hash.o ../cmd-line-utils/readline/libreadline.a -lcurses -lpthread -lthread ../libmysql/libmysqlclient.la -lposix4 -lsocket -lnsl -lm -lz -lrt
            g++ g -O2 -fno-implicit-templates -fno-exceptions -fno-rtti -DHAVE_RWLOCK_T -o .libs/mysql mysql.o readline.o sql_string.o completion_hash.o ../cmd-line-utils/readline/libreadline.a -lcurses -lpthread -lthread ../libmysql/.libs/libmysqlclient.so -ldl -lposix4 -lsocket -lnsl -lm -lz -lrt -Wl,-rpath -Wl,/root/mariadb/lib/mysql
            ../libmysql/.libs/libmysqlclient.so: undefined reference to `yayaSSL_CleanUp'
            ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaX509_get_issuer_name'
            ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_get_fd'
            ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_connect'
            ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_CTX_set_tmp_dh'
            ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_shutdown'
            ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaBN_bin2bn'
            ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_CTX_new'
            ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_read'
            ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaERR_get_error_line_data'
            ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_get_error'
            ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaDH_free'
            ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_SESSION_set_timeout'
            ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_clear'
            ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaERR_error_string'
            ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaERR_print_errors_fp'
            ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_CTX_use_PrivateKey_file'
            ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaX509_free'
            ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_get_peer_certificate'
            ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaTLSv1_server_method'
            ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaTLSv1_client_method'
            ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_CTX_use_certificate_file'
            ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_CTX_set_session_id_context'
            ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_load_error_strings'
            ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_CTX_check_private_key'
            ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaOpenSSL_add_all_algorithms'
            ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_CTX_sess_set_cache_size'
            ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_get_cipher_name'
            ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaDH_new'
            ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_set_quiet_shutdown'
            ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaX509_get_subject_name'
            ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_write'
            ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_get_shared_ciphers'
            ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_CTX_free'
            ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaX509_NAME_oneline'
            ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_new'
            ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_accept'
            ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_pending'
            ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_library_init'
            ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_CTX_set_cipher_list'
            ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_CTX_set_verify'
            ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_free'
            ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_set_fd'
            ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_get_session'
            ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_CTX_set_default_verify_paths'
            ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_CTX_load_verify_locations'
            collect2: ld returned 1 exit status
            gmake[2]: *** [mysql] Error 1
            gmake[2]: Leaving directory `/root/mariadb-5.3.5-ga/client'
            gmake[1]: *** [all] Error 2
            gmake[1]: Leaving directory `/root/mariadb-5.3.5-ga/client'
            gmake: *** [all-recursive] Error 1

            ***************************************************************************************

            Show
            prashanttekriwal Prashant Tekriwal added a comment - Re: Problem installing mariadb 5 on solaris 10 Here is the configure command I was issuing: CFLAGS="-O3" CXX=gcc CXXFLAGS="-O3 -felide-constructors -fno-exceptions -fno-rtti" ./configure --prefix=/root/mariadb --enable-assembler --with-mysqld-ldflags=-all-static I took the above command from 'INSTALL-SOURCE' section 2.3 ----------- I tried with your suggestion, still getting some different error: ./configure --prefix=/root/mariadb --with-readline make error: ******************************************************************************** if g++ -DMYSQL_CLIENT_NO_THREADS -DDEFAULT_MYSQL_HOME='"/root/mariadb"' -DMYSQL_DATADIR='"/root/mariadb/var"' -I. -I. -I../include -I../include -I../include -I../regex -g -O2 -fno-implicit-templates -fno-exceptions -fno-rtti -DHAVE_RWLOCK_T -MT completion_hash.o -MD -MP -MF ".deps/completion_hash.Tpo" -c -o completion_hash.o completion_hash.cc; \ then mv -f ".deps/completion_hash.Tpo" ".deps/completion_hash.Po"; else rm -f ".deps/completion_hash.Tpo"; exit 1; fi /bin/bash ../libtool --tag=CXX --mode=link g++ -g -O2 -fno-implicit-templates -fno-exceptions -fno-rtti -DHAVE_RWLOCK_T -o mysql mysql.o readline.o sql_string.o completion_hash.o ../cmd-line-utils/readline/libreadline.a -lcurses -lpthread -lthread ../libmysql/libmysqlclient.la -lposix4 -lsocket -lnsl -lm -lz -lrt g++ g -O2 -fno-implicit-templates -fno-exceptions -fno-rtti -DHAVE_RWLOCK_T -o .libs/mysql mysql.o readline.o sql_string.o completion_hash.o ../cmd-line-utils/readline/libreadline.a -lcurses -lpthread -lthread ../libmysql/.libs/libmysqlclient.so -ldl -lposix4 -lsocket -lnsl -lm -lz -lrt -Wl, -rpath -Wl,/root/mariadb/lib/mysql ../libmysql/.libs/libmysqlclient.so: undefined reference to `yayaSSL_CleanUp' ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaX509_get_issuer_name' ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_get_fd' ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_connect' ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_CTX_set_tmp_dh' ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_shutdown' ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaBN_bin2bn' ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_CTX_new' ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_read' ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaERR_get_error_line_data' ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_get_error' ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaDH_free' ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_SESSION_set_timeout' ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_clear' ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaERR_error_string' ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaERR_print_errors_fp' ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_CTX_use_PrivateKey_file' ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaX509_free' ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_get_peer_certificate' ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaTLSv1_server_method' ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaTLSv1_client_method' ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_CTX_use_certificate_file' ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_CTX_set_session_id_context' ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_load_error_strings' ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_CTX_check_private_key' ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaOpenSSL_add_all_algorithms' ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_CTX_sess_set_cache_size' ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_get_cipher_name' ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaDH_new' ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_set_quiet_shutdown' ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaX509_get_subject_name' ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_write' ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_get_shared_ciphers' ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_CTX_free' ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaX509_NAME_oneline' ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_new' ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_accept' ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_pending' ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_library_init' ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_CTX_set_cipher_list' ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_CTX_set_verify' ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_free' ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_set_fd' ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_get_session' ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_CTX_set_default_verify_paths' ../libmysql/.libs/libmysqlclient.so: undefined reference to `yaSSL_CTX_load_verify_locations' collect2: ld returned 1 exit status gmake [2] : *** [mysql] Error 1 gmake [2] : Leaving directory `/root/mariadb-5.3.5-ga/client' gmake [1] : *** [all] Error 2 gmake [1] : Leaving directory `/root/mariadb-5.3.5-ga/client' gmake: *** [all-recursive] Error 1 ***************************************************************************************
            Hide
            serg Sergei Golubchik added a comment -

            Re: Problem installing mariadb 5 on solaris 10
            I don't know. It looks like if you tried to compile with yassl, then aborted the build, and tried to compile again - without yassl and without cleaning after the first build. And you have some .o files from the first build, and some - from the second one.

            Besides, I wasn't able to repeat even the first error - the one with readline.

            We don't build our official with simple ./configure, we use our BUILD/* scripts that do all steps with correct options.
            On solaris, for example, it could be BUILD/compile-solaris-amd64

            Here's a log of one of such builds:
            http://buildbot.askmonty.org/buildbot/builders/sol10-64/builds/1100/steps/compile/logs/stdio

            Show
            serg Sergei Golubchik added a comment - Re: Problem installing mariadb 5 on solaris 10 I don't know. It looks like if you tried to compile with yassl, then aborted the build, and tried to compile again - without yassl and without cleaning after the first build. And you have some .o files from the first build, and some - from the second one. Besides, I wasn't able to repeat even the first error - the one with readline. We don't build our official with simple ./configure, we use our BUILD/* scripts that do all steps with correct options. On solaris, for example, it could be BUILD/compile-solaris-amd64 Here's a log of one of such builds: http://buildbot.askmonty.org/buildbot/builders/sol10-64/builds/1100/steps/compile/logs/stdio
            Hide
            prashanttekriwal Prashant Tekriwal added a comment -

            Re: Problem installing mariadb 5 on solaris 10
            I don't know what yassl is, I didn't used it explicitly anywhere.

            But yes, my subsequent configure commands were issued without cleaning.

            I did tried the BUILD/* scripts at the first place before trying to configure manually.

            I used BUILD/compile-solaris-x86-32 but that failed with following error:

            **************************************************************

            gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -I../../include -I../../regex -I./include -I../../sql -I. -shared -DMYSQL_DYNAMIC_PLUGIN -Wall -Wextra -Wunused -Wwrite-strings -Wno-uninitialized -D__sun -m32 -DHAVE_RWLOCK_T -DUNIV_SOLARIS -DUNIV_SOLARIS -MT ha_innodb_plugin_la-page0cur.lo -MD -MP -MF .deps/ha_innodb_plugin_la-page0cur.Tpo -c page/page0cur.c -o ha_innodb_plugin_la-page0cur.o >/dev/null 2>&1
            page/page0zip.c: In function `page_zip_decompress':
            page/page0zip.c:2968: error: `Z_BLOCK' undeclared (first use in this function)
            page/page0zip.c:2968: error: (Each undeclared identifier is reported only once
            page/page0zip.c:2968: error: for each function it appears in.)
            gmake[2]: *** [ha_innodb_plugin_la-page0zip.lo] Error 1
            gmake[2]: *** Waiting for unfinished jobs....
            gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -I../../include -I../../regex -I./include -I../../sql -I. -shared -DMYSQL_DYNAMIC_PLUGIN -Wall -Wextra -Wunused -Wwrite-strings -Wno-uninitialized -D__sun -m32 -DHAVE_RWLOCK_T -DUNIV_SOLARIS -DUNIV_SOLARIS -MT ha_innodb_plugin_la-lexyy.lo -MD -MP -MF .deps/ha_innodb_plugin_la-lexyy.Tpo -c pars/lexyy.c -o .libs/ha_innodb_plugin_la-lexyy.o
            gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -I../../include -I../../regex -I./include -I../../sql -I. -shared -DMYSQL_DYNAMIC_PLUGIN -Wall -Wextra -Wunused -Wwrite-strings -Wno-uninitialized -D__sun -m32 -DHAVE_RWLOCK_T -DUNIV_SOLARIS -DUNIV_SOLARIS -MT ha_innodb_plugin_la-lexyy.lo -MD -MP -MF .deps/ha_innodb_plugin_la-lexyy.Tpo -c pars/lexyy.c -o ha_innodb_plugin_la-lexyy.o >/dev/null 2>&1
            gmake[2]: Leaving directory `/root/mariadb-5.3.5-ga/storage/innodb_plugin'
            gmake[1]: *** [all-recursive] Error 1
            gmake[1]: Leaving directory `/root/mariadb-5.3.5-ga/storage'

            **************************************************************

            I am really having a hard time installing it on solaris machine.

            Show
            prashanttekriwal Prashant Tekriwal added a comment - Re: Problem installing mariadb 5 on solaris 10 I don't know what yassl is, I didn't used it explicitly anywhere. But yes, my subsequent configure commands were issued without cleaning. I did tried the BUILD/* scripts at the first place before trying to configure manually. I used BUILD/compile-solaris-x86-32 but that failed with following error: ************************************************************** gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -I../../include -I../../regex -I./include -I../../sql -I. -shared -DMYSQL_DYNAMIC_PLUGIN -Wall -Wextra -Wunused -Wwrite-strings -Wno-uninitialized -D__sun -m32 -DHAVE_RWLOCK_T -DUNIV_SOLARIS -DUNIV_SOLARIS -MT ha_innodb_plugin_la-page0cur.lo -MD -MP -MF .deps/ha_innodb_plugin_la-page0cur.Tpo -c page/page0cur.c -o ha_innodb_plugin_la-page0cur.o >/dev/null 2>&1 page/page0zip.c: In function `page_zip_decompress': page/page0zip.c:2968: error: `Z_BLOCK' undeclared (first use in this function) page/page0zip.c:2968: error: (Each undeclared identifier is reported only once page/page0zip.c:2968: error: for each function it appears in.) gmake [2] : *** [ha_innodb_plugin_la-page0zip.lo] Error 1 gmake [2] : *** Waiting for unfinished jobs.... gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -I../../include -I../../regex -I./include -I../../sql -I. -shared -DMYSQL_DYNAMIC_PLUGIN -Wall -Wextra -Wunused -Wwrite-strings -Wno-uninitialized -D__sun -m32 -DHAVE_RWLOCK_T -DUNIV_SOLARIS -DUNIV_SOLARIS -MT ha_innodb_plugin_la-lexyy.lo -MD -MP -MF .deps/ha_innodb_plugin_la-lexyy.Tpo -c pars/lexyy.c -o .libs/ha_innodb_plugin_la-lexyy.o gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -I../../include -I../../regex -I./include -I../../sql -I. -shared -DMYSQL_DYNAMIC_PLUGIN -Wall -Wextra -Wunused -Wwrite-strings -Wno-uninitialized -D__sun -m32 -DHAVE_RWLOCK_T -DUNIV_SOLARIS -DUNIV_SOLARIS -MT ha_innodb_plugin_la-lexyy.lo -MD -MP -MF .deps/ha_innodb_plugin_la-lexyy.Tpo -c pars/lexyy.c -o ha_innodb_plugin_la-lexyy.o >/dev/null 2>&1 gmake [2] : Leaving directory `/root/mariadb-5.3.5-ga/storage/innodb_plugin' gmake [1] : *** [all-recursive] Error 1 gmake [1] : Leaving directory `/root/mariadb-5.3.5-ga/storage' ************************************************************** I am really having a hard time installing it on solaris machine.
            Hide
            ratzpo Rasmus Johansson added a comment -

            Launchpad bug id: 986120

            Show
            ratzpo Rasmus Johansson added a comment - Launchpad bug id: 986120

              People

              • Assignee:
                serg Sergei Golubchik
                Reporter:
                prashanttekriwal Prashant Tekriwal
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: