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

LP:992312 - Support spec file doesn't compile (5.5.23)

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Resolution: Not a Bug
    • None
    • None
    • None

    Description

      The ~/mariadb-5.5.23/debug/support-files/mysql.5.5.23.spec does not compile.

      This is the upstream (oracle) spec file, so I modified it to work with the mariadb source tarball.

      The only modification to it was:

      diff mysql.5.5.23.spec /build/SPECS/mariadb.5.5.23.spec
      81c81
      < %define src_base mysql
      —
      > %define src_base mariadb

      doing a rpmbuild -ba mariadb.5.5.23.spec mostly builds (78% done) until the following error:

      Linking CXX executable mysqlbinlog
      cd /build/BUILD/mariadb-5.5.23/debug/client && /usr/bin/cmake -E cmake_link_script CMakeFiles/mysqlbinlog.dir/link.txt --verbose=1
      /usr/bin/gcc -g -felide-constructors -fno-exceptions -fno-rtti -fPIC -Wall -Wno-unused-parameter -fno-implicit-templates -fno-exceptions -fno-rtti -O -g -static-libgcc -fno-omit-frame-pointer -fno-strict-aliasing -DENABLED_DEBUG_SYNC -DSAFE_MUTEX -DSAFEMALLOC -Wall -Wextra -Wunused -Wwrite-strings -Wno-strict-aliasing -Wno-unused-parameter -Woverloaded-virtual -fPIC CMakeFiles/mysqlbinlog.dir/mysqlbinlog.cc.o -o mysqlbinlog -lpthread ../libmysql/libmysqlclient.a -lpthread -lm -lrt -ldl
      CMakeFiles/mysqlbinlog.dir/mysqlbinlog.cc.o: In function `cleanup':
      /build/BUILD/mariadb-5.5.23/mariadb-5.5.23/client/mysqlbinlog.cc:1465: undefined reference to `operator delete(void*)'
      CMakeFiles/mysqlbinlog.dir/mysqlbinlog.cc.o: In function `Table_map_log_event::create_table_def()':
      /build/BUILD/mariadb-5.5.23/mariadb-5.5.23/sql/log_event.h:3603: undefined reference to `operator new(unsigned long)'
      CMakeFiles/mysqlbinlog.dir/mysqlbinlog.cc.o: In function `Rows_log_event::print_verbose(st_io_cache*, st_print_event_info*)':
      /build/BUILD/mariadb-5.5.23/mariadb-5.5.23/sql/log_event.cc:2317: undefined reference to `operator delete(void*)'
      CMakeFiles/mysqlbinlog.dir/mysqlbinlog.cc.o: In function `main':
      /build/BUILD/mariadb-5.5.23/mariadb-5.5.23/client/mysqlbinlog.cc:2347: undefined reference to `operator new(unsigned long)'
      collect2: ld returned 1 exit status
      make[2]: *** [client/mysqlbinlog] Error 1
      make[2]: Leaving directory `/build/BUILD/mariadb-5.5.23/debug'
      make[1]: *** [client/CMakeFiles/mysqlbinlog.dir/all] Error 2
      make[1]: Leaving directory `/build/BUILD/mariadb-5.5.23/debug'
      make: *** [all] Error 2
      error: Bad exit status from /build/tmp/rpm-tmp.iXJazy (%build)

      Does anyone have a working spec file for 5.5.23?

      Thanks

      Attachments

        Activity

          People

            Unassigned Unassigned
            shawnsterling Shawn Sterling (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.