Cannot compile Percona-Server-5.6 from source (gmock download error)

Bug #1638198 reported by Ramesh Sivaraman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MySQL Server
Unknown
Unknown
Percona Server moved to https://jira.percona.com/projects/PS
Status tracked in 5.7
5.5
Invalid
High
Unassigned
5.6
Fix Released
High
Unassigned
5.7
Fix Released
High
Unassigned

Bug Description

Cannot compile Percona-Server-5.6 from source with CentOS7

Compilation log

-- Performing Test HAVE_PEERCRED
-- Performing Test HAVE_PEERCRED - Success
-- Library perconaserverclient depends on OSLIBS -lpthread;/usr/lib64/libz.so;m;rt;/usr/lib64/libssl.so;/usr/lib64/libcrypto.so;dl
-- Download failed, error: 22;"HTTP response code said error"
-- To enable google test, please download http://googlemock.googlecode.com/files/gmock-1.6.0.zip to the directory /home/ramesh/ps/percona-server_dbg/source_downloads
-- If you are inside a firewall, you may need to use an http proxy: export http_proxy=http://example.com:80
-- CMAKE_BUILD_TYPE: Debug
-- COMPILE_DEFINITIONS: HAVE_CONFIG_H
-- CMAKE_C_FLAGS: -fPIC -Wall -Wextra -Wformat-security -Wvla -Wwrite-strings -Wdeclaration-after-statement -Werror
-- CMAKE_CXX_FLAGS: -fPIC -Wall -Wextra -Wformat-security -Wvla -Woverloaded-virtual -Wno-unused-parameter -Werror
-- CMAKE_C_FLAGS_DEBUG: -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -DENABLED_DEBUG_SYNC
-- CMAKE_CXX_FLAGS_DEBUG: -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -DENABLED_DEBUG_SYNC
-- Configuring incomplete, errors occurred!
See also "/home/ramesh/ps/percona-server_dbg/CMakeFiles/CMakeOutput.log".
See also "/home/ramesh/ps/percona-server_dbg/CMakeFiles/CMakeError.log".

Cannot download gmock zip file from http://googlemock.googlecode.com/files/gmock-1.6.0.zip. due to 404 error.

Tags: qa upstream
description: updated
tags: added: upstream
Revision history for this message
Yura Sorokin (yura-sorokin) wrote :

For some reason gmock 1.6.0 archive is no longer available via original URL
http://googlemock.googlecode.com/files/gmock-1.6.0.zip

The fix is trivial:
in 'percona-server/unittest/gunit/CMakeLists.txt '
change
  "http://googlemock.googlecode.com/files/${GMOCK_TARBALL}"
to
  "https://github.com/google/googlemock/archive/${GMOCK_TARBALL}"

This issue exists in 5.6 and 5.7 (including upstream).

summary: - Cannot compile Percona-Server-5.6 from source with CentOS7
+ Cannot compile Percona-Server-5.6 from source (gmock download error)
Revision history for this message
Yura Sorokin (yura-sorokin) wrote :

Also change
SET(GMOCK_PACKAGE_NAME "gmock-1.6.0")
to
SET(GMOCK_PACKAGE_NAME "release-1.6.0")

in the same file

Revision history for this message
Yura Sorokin (yura-sorokin) wrote :
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PS-1028

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.