← Back to team overview

linux-traipu team mailing list archive

[Bug 1003658] Re: Error while building 7.1 RPM from spec file

 

** Attachment added: "drizzle.spec"
   https://bugs.launchpad.net/bugs/1003658/+attachment/3160068/+files/drizzle.spec

-- 
You received this bug notification because you are a member of UBUNTU -
AL - BR, which is subscribed to Drizzle.
https://bugs.launchpad.net/bugs/1003658

Title:
  Error while building 7.1 RPM from spec file

Status in A Lightweight SQL Database for Cloud Infrastructure and Web Applications:
  New

Bug description:
  According to bug https://bugs.launchpad.net/drizzle/+bug/1000091 I
  have no choice but to build 7.1 RPM from spec file also available on
  the project's launchpad.

  Below is the build error I am currently getting, upon build.

  ### BUILD OUTPUT ###
    CC     libdrizzle-1.0/t/drizzle_con_st.o
    CCLD   libdrizzle-1.0/t/drizzle_con_st
    CC     libdrizzle-1.0/t/drizzle_result_st.o
    CCLD   libdrizzle-1.0/t/drizzle_result_st
    CC     libdrizzle-1.0/t/drizzle_column_st.o
    CCLD   libdrizzle-1.0/t/drizzle_column_st
    CXX    examples/sqlite_server.o
    CXXLD  examples/sqlite_server
    CXX    examples/client.o
    CXXLD  examples/client
    CXX    examples/pipe_query.o
    CXXLD  examples/pipe_query
    CXX    examples/proxy.o
    CXXLD  examples/proxy
    CXX    examples/server.o
    CXXLD  examples/server
    CXX    examples/simple.o
    CXXLD  examples/simple
    CXX    examples/simple_multi.o
    CXXLD  examples/simple_multi
    CXX    drizzled/execute/parser.o
  drizzled/execute/parser.yy:72: warning: redundant redeclaration of 'int execute_lex(YYSTYPE*, void*)' in same scope [-Wredundant-decls]
  drizzled/execute/scanner.h:446: warning: previous declaration of 'int execute_lex(YYSTYPE*, void*)' [-Wredundant-decls]
    CXX    drizzled/execute/scanner.o
    CXX    drizzled/alter_info.o
    CXX    drizzled/cached_item.o
    CXX    drizzled/catalog.o
    CXX    drizzled/catalog/cache.o
    CXX    drizzled/catalog/local.o
    CXX    drizzled/check_stack_overrun.o
    CXX    drizzled/comp_creator.o
    CXX    drizzled/create_field.o
    CXX    drizzled/current_session.o
    CXX    drizzled/cursor.o
    CXX    drizzled/daemon.o
    CXX    drizzled/data_home.o
    CXX    drizzled/debug.o
    CXX    drizzled/definition/cache.o
    CXX    drizzled/diagnostics_area.o
    CXX    drizzled/display.o
    CXX    drizzled/drizzled.o
  drizzled/drizzled.cc: In function 'void drizzled::create_pid_file()':
  drizzled/drizzled.cc:417: error: 'O_CLOEXEC' was not declared in this scope
  make[2]: *** [drizzled/drizzled.o] Error 1
  make[2]: Leaving directory `/home/username/rpmbuild.drizzle/BUILD/drizzle-7.1.36'
  make[1]: *** [all-recursive] Error 1
  make[1]: Leaving directory `/home/username/rpmbuild.drizzle/BUILD/drizzle-7.1.36'
  make: *** [all] Error 2
  error: Bad exit status from /var/tmp/rpm-tmp.17891 (%build)

  
  RPM build errors:
      Bad exit status from /var/tmp/rpm-tmp.17891 (%build)
  ### BUILD OUTPUT ###


  ### rpm-tmp.17891 ###
  #!/bin/sh

  RPM_SOURCE_DIR="/home/username/rpmbuild/SOURCES"
  RPM_BUILD_DIR="/home/username/rpmbuild/BUILD"
  RPM_OPT_FLAGS="-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic"
  RPM_ARCH="x86_64"
  RPM_OS="linux"
  export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS
  RPM_DOC_DIR="/usr/share/doc"
  export RPM_DOC_DIR
  RPM_PACKAGE_NAME="drizzle"
  RPM_PACKAGE_VERSION="7.1.36"
  RPM_PACKAGE_RELEASE="1.infraLayer.el5"
  export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE
  RPM_BUILD_ROOT="/var/tmp/drizzle-7.1.36-1.infraLayer.el5-t12738"
  export RPM_BUILD_ROOT

  PKG_CONFIG_PATH="/usr/lib64/pkgconfig:/usr/share/pkgconfig"
  export PKG_CONFIG_PATH

  set -x
  umask 022
  cd /home/username/rpmbuild/BUILD

  cd 'drizzle-7.1.36'
  LANG=C
  export LANG
  unset DISPLAY

  
  # FIX ME: Warnings treated as errors in mock, but not straight builds... ???
  export CXXFLAGS="${CXXFLAGS} -Wno-error"

  # Need to handle optional plugins properly
  OPTS="--disable-rpath
        --disable-static
        --localstatedir=/var/lib/drizzle
        --without-auth-test-plugin
        --without-hello-world-plugin
        --without-hello-events-plugin
        --without-tableprototester-plugin"

  # Use for tmp location
  mkdir -p conf.d

  # Set configure options based on whether we are building with or without
  # each plugin.
  function optionally_include() {
      plugin=$1
      enabled=$2
      dash_plugin=$(echo $plugin | sed 's/_/-/g')
      if [ $enabled -eq 1 ]; then
          OPTS="${OPTS} --with-${dash_plugin}-plugin --disable-${dash_plugin}-plugin"
          cp -a plugin/${plugin}/plugin.cnf conf.d/${dash_plugin}.cnf
      else
          OPTS="${OPTS} --without-${dash_plugin}-plugin --disable-${dash_plugin}-plugin"
      fi
  }

  # Unfortunately we have to list all the optional plugins here as
  # we can't do a for loop with % macros
  optionally_include auth_http 1
  optionally_include auth_file 1
  optionally_include auth_ldap 1
  optionally_include auth_pam 1
  optionally_include debug 1
  optionally_include logging_query 1
  optionally_include mysql_protocol 1
  optionally_include rabbitmq 0
  optionally_include simple_user_policy 1
  optionally_include gearman_udf 0
  optionally_include logging_gearman 0
  optionally_include slave 1
  optionally_include regex_policy 1
  optionally_include http_functions 1
  optionally_include json_server 1
  optionally_include auth_schema 1
  optionally_include query_log 1

    CFLAGS="${CFLAGS:--O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic}" ; export CFLAGS ;
    CXXFLAGS="${CXXFLAGS:--O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic}" ; export CXXFLAGS ;
    FFLAGS="${FFLAGS:--O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic}" ; export FFLAGS ;
    for i in $(find . -name config.guess -o -name config.sub) ; do
             [ -f /usr/lib/rpm/redhat/$(basename $i) ] && /bin/rm -f $i && /bin/cp -fv /usr/lib/rpm/redhat/$(basename $i) $i ;
    done ;
    ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu \
          --target=x86_64-redhat-linux-gnu \
          --program-prefix= \
          --prefix=/usr \
          --exec-prefix=/usr \
          --bindir=/usr/bin \
          --sbindir=/usr/sbin \
          --sysconfdir=/etc \
          --datadir=/usr/share \
          --includedir=/usr/include \
          --libdir=/usr/lib64 \
          --libexecdir=/usr/libexec \
          --localstatedir=/var \
          --sharedstatedir=/usr/com \
          --mandir=/usr/share/man \
          --infodir=/usr/share/info $OPTS
  /usr/bin/make

  exit 0
  ### rpm-tmp.17891 ###

  
  Not sure if its related to bugs https://lists.launchpad.net/linux-traipu/msg04743.html or http://suckered.us/site1/?__proxy_url=aHR0cHM6Ly9idWdzLmxhdW5jaHBhZC5uZXQvYnVncy85ODAxMTQ= however I'll give the suggested patch on a later time.

  Spec file attached as well.

To manage notifications about this bug go to:
https://bugs.launchpad.net/drizzle/+bug/1003658/+subscriptions


References