Skip to content

CentOS make Compile error #89

Closed
Closed
@bbcw

Description

@bbcw

Installed dependency package libpng libpng-devel gflags gflags-devel.

yum install -y libpng libpng-devel gflags gflags-devel

make //The error is as follows

==== Building guetzli (release) ====
butteraugli_comparator.cc
Package gflags was not found in the pkg-config search path.
Perhaps you should add the directory containing `gflags.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gflags' found
cc1plus: error: unrecognized command line option "-std=c++11"
make[1]: *** [obj/Release/butteraugli_comparator.o] Error 1
make: *** [guetzli] Error 2

Activity

helei112g

helei112g commented on Mar 20, 2017

@helei112g

CentOS Linux release 7.1.1503 (Core)

when i run : make

I get same error:

==== Building guetzli (release) ====
Linking guetzli
Package gflags was not found in the pkg-config search path.
Perhaps you should add the directory containing `gflags.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gflags' found 
centminmod

centminmod commented on Mar 20, 2017

@centminmod

same here too with centos 7.3

make -j4
==== Building guetzli (release) ====
Creating bin/Release
Creating obj/Release
butteraugli_comparator.cc
dct_double.cc
debug_print.cc
Package gflags was not found in the pkg-config search path.
Perhaps you should add the directory containing `gflags.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gflags' found
Package gflags was not found in the pkg-config search path.
Perhaps you should add the directory containing `gflags.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gflags' found
entropy_encode.cc
Package gflags was not found in the pkg-config search path.
Perhaps you should add the directory containing `gflags.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gflags' found
Package gflags was not found in the pkg-config search path.
Perhaps you should add the directory containing `gflags.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gflags' found
fdct.cc
Package gflags was not found in the pkg-config search path.
Perhaps you should add the directory containing `gflags.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gflags' found
gamma_correct.cc
Package gflags was not found in the pkg-config search path.
Perhaps you should add the directory containing `gflags.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gflags' found
guetzli.cc
Package gflags was not found in the pkg-config search path.
Perhaps you should add the directory containing `gflags.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gflags' found
idct.cc
Package gflags was not found in the pkg-config search path.
Perhaps you should add the directory containing `gflags.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gflags' found
jpeg_data.cc
Package gflags was not found in the pkg-config search path.
Perhaps you should add the directory containing `gflags.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gflags' found
jpeg_data_decoder.cc
jpeg_data_encoder.cc
Package gflags was not found in the pkg-config search path.
Perhaps you should add the directory containing `gflags.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gflags' found
Package gflags was not found in the pkg-config search path.
Perhaps you should add the directory containing `gflags.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gflags' found
jpeg_data_reader.cc
Package gflags was not found in the pkg-config search path.
Perhaps you should add the directory containing `gflags.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gflags' found
jpeg_data_writer.cc
Package gflags was not found in the pkg-config search path.
Perhaps you should add the directory containing `gflags.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gflags' found
In file included from ./guetzli/butteraugli_comparator.h:22:0,
                 from guetzli/butteraugli_comparator.cc:17:
third_party/butteraugli/butteraugli/butteraugli.h:129:76: warning: ‘assume_aligned’ attribute directive ignored [-Wattributes]
 #define BUTTERAUGLI_CACHE_ALIGNED_RETURN __attribute__((assume_aligned(64)))
                                                                            ^
third_party/butteraugli/butteraugli/butteraugli.h:146:45: note: in expansion of macro ‘BUTTERAUGLI_CACHE_ALIGNED_RETURN’
   static void *Allocate(const size_t bytes) BUTTERAUGLI_CACHE_ALIGNED_RETURN;
                                             ^
third_party/butteraugli/butteraugli/butteraugli.h:129:76: warning: ‘assume_aligned’ attribute directive ignored [-Wattributes]
 #define BUTTERAUGLI_CACHE_ALIGNED_RETURN __attribute__((assume_aligned(64)))
                                                                            ^
third_party/butteraugli/butteraugli/butteraugli.h:257:42: note: in expansion of macro ‘BUTTERAUGLI_CACHE_ALIGNED_RETURN’
   ConstRestrict<T *> Row(const size_t y) BUTTERAUGLI_CACHE_ALIGNED_RETURN {
                                          ^
third_party/butteraugli/butteraugli/butteraugli.h:129:76: warning: ‘assume_aligned’ attribute directive ignored [-Wattributes]
 #define BUTTERAUGLI_CACHE_ALIGNED_RETURN __attribute__((assume_aligned(64)))
                                                                            ^
third_party/butteraugli/butteraugli/butteraugli.h:268:7: note: in expansion of macro ‘BUTTERAUGLI_CACHE_ALIGNED_RETURN’
       BUTTERAUGLI_CACHE_ALIGNED_RETURN {
       ^
jpeg_huffman_decode.cc
Package gflags was not found in the pkg-config search path.
Perhaps you should add the directory containing `gflags.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gflags' found
output_image.cc
Package gflags was not found in the pkg-config search path.
Perhaps you should add the directory containing `gflags.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gflags' found
preprocess_downsample.cc
Package gflags was not found in the pkg-config search path.
Perhaps you should add the directory containing `gflags.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gflags' found
processor.cc
Package gflags was not found in the pkg-config search path.
Perhaps you should add the directory containing `gflags.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gflags' found
quality.cc
Package gflags was not found in the pkg-config search path.
Perhaps you should add the directory containing `gflags.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gflags' found
quantize.cc
Package gflags was not found in the pkg-config search path.
Perhaps you should add the directory containing `gflags.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gflags' found
score.cc
Package gflags was not found in the pkg-config search path.
Perhaps you should add the directory containing `gflags.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gflags' found
butteraugli.cc
Package gflags was not found in the pkg-config search path.
Perhaps you should add the directory containing `gflags.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gflags' found
In file included from third_party/butteraugli/butteraugli/butteraugli.cc:32:0:
third_party/butteraugli/butteraugli/butteraugli.h:129:76: warning: ‘assume_aligned’ attribute directive ignored [-Wattributes]
 #define BUTTERAUGLI_CACHE_ALIGNED_RETURN __attribute__((assume_aligned(64)))
                                                                            ^
third_party/butteraugli/butteraugli/butteraugli.h:146:45: note: in expansion of macro ‘BUTTERAUGLI_CACHE_ALIGNED_RETURN’
   static void *Allocate(const size_t bytes) BUTTERAUGLI_CACHE_ALIGNED_RETURN;
                                             ^
third_party/butteraugli/butteraugli/butteraugli.h:129:76: warning: ‘assume_aligned’ attribute directive ignored [-Wattributes]
 #define BUTTERAUGLI_CACHE_ALIGNED_RETURN __attribute__((assume_aligned(64)))
                                                                            ^
third_party/butteraugli/butteraugli/butteraugli.h:257:42: note: in expansion of macro ‘BUTTERAUGLI_CACHE_ALIGNED_RETURN’
   ConstRestrict<T *> Row(const size_t y) BUTTERAUGLI_CACHE_ALIGNED_RETURN {
                                          ^
third_party/butteraugli/butteraugli/butteraugli.h:129:76: warning: ‘assume_aligned’ attribute directive ignored [-Wattributes]
 #define BUTTERAUGLI_CACHE_ALIGNED_RETURN __attribute__((assume_aligned(64)))
                                                                            ^
third_party/butteraugli/butteraugli/butteraugli.h:268:7: note: in expansion of macro ‘BUTTERAUGLI_CACHE_ALIGNED_RETURN’
       BUTTERAUGLI_CACHE_ALIGNED_RETURN {
       ^
In file included from ./guetzli/butteraugli_comparator.h:22:0,
                 from guetzli/processor.cc:24:
third_party/butteraugli/butteraugli/butteraugli.h:129:76: warning: ‘assume_aligned’ attribute directive ignored [-Wattributes]
 #define BUTTERAUGLI_CACHE_ALIGNED_RETURN __attribute__((assume_aligned(64)))
                                                                            ^
third_party/butteraugli/butteraugli/butteraugli.h:146:45: note: in expansion of macro ‘BUTTERAUGLI_CACHE_ALIGNED_RETURN’
   static void *Allocate(const size_t bytes) BUTTERAUGLI_CACHE_ALIGNED_RETURN;
                                             ^
third_party/butteraugli/butteraugli/butteraugli.h:129:76: warning: ‘assume_aligned’ attribute directive ignored [-Wattributes]
 #define BUTTERAUGLI_CACHE_ALIGNED_RETURN __attribute__((assume_aligned(64)))
                                                                            ^
third_party/butteraugli/butteraugli/butteraugli.h:257:42: note: in expansion of macro ‘BUTTERAUGLI_CACHE_ALIGNED_RETURN’
   ConstRestrict<T *> Row(const size_t y) BUTTERAUGLI_CACHE_ALIGNED_RETURN {
                                          ^
third_party/butteraugli/butteraugli/butteraugli.h:129:76: warning: ‘assume_aligned’ attribute directive ignored [-Wattributes]
 #define BUTTERAUGLI_CACHE_ALIGNED_RETURN __attribute__((assume_aligned(64)))
                                                                            ^
third_party/butteraugli/butteraugli/butteraugli.h:268:7: note: in expansion of macro ‘BUTTERAUGLI_CACHE_ALIGNED_RETURN’
       BUTTERAUGLI_CACHE_ALIGNED_RETURN {
       ^
Linking guetzli
Package gflags was not found in the pkg-config search path.
Perhaps you should add the directory containing `gflags.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gflags' found
obj/Release/guetzli.o: In function `(anonymous namespace)::ReadPNG(_IO_FILE*, int*, int*, std::vector<unsigned char, std::allocator<unsigned char> >*) [clone .constprop.32]':
/root/tools/guetzli/guetzli/guetzli.cc:52: undefined reference to `png_create_read_struct'
/root/tools/guetzli/guetzli/guetzli.cc:57: undefined reference to `png_create_info_struct'
/root/tools/guetzli/guetzli/guetzli.cc:63: undefined reference to `png_set_longjmp_fn'
/root/tools/guetzli/guetzli/guetzli.cc:70: undefined reference to `png_init_io'
/root/tools/guetzli/guetzli/guetzli.cc:80: undefined reference to `png_read_png'
/root/tools/guetzli/guetzli/guetzli.cc:82: undefined reference to `png_get_rows'
/root/tools/guetzli/guetzli/guetzli.cc:84: undefined reference to `png_get_image_width'
/root/tools/guetzli/guetzli/guetzli.cc:85: undefined reference to `png_get_image_height'
/root/tools/guetzli/guetzli/guetzli.cc:88: undefined reference to `png_get_channels'
/root/tools/guetzli/guetzli/guetzli.cc:145: undefined reference to `png_destroy_read_struct'
/root/tools/guetzli/guetzli/guetzli.cc:142: undefined reference to `png_destroy_read_struct'
/root/tools/guetzli/guetzli/guetzli.cc:59: undefined reference to `png_destroy_read_struct'
obj/Release/guetzli.o: In function `main':
/root/tools/guetzli/guetzli/guetzli.cc:195: undefined reference to `gflags::SetUsageMessage(std::string const&)'
/root/tools/guetzli/guetzli/guetzli.cc:196: undefined reference to `gflags::ParseCommandLineFlags(int*, char***, bool)'
/root/tools/guetzli/guetzli/guetzli.cc:199: undefined reference to `gflags::ShowUsageWithFlags(char const*)'
obj/Release/guetzli.o: In function `_GLOBAL__sub_I__ZN3fLB13FLAGS_verboseE':
/root/tools/guetzli/guetzli/guetzli.cc:38: undefined reference to `gflags::FlagRegisterer::FlagRegisterer(char const*, char const*, char const*, char const*, void*, void*)'
/root/tools/guetzli/guetzli/guetzli.cc:40: undefined reference to `gflags::FlagRegisterer::FlagRegisterer(char const*, char const*, char const*, char const*, void*, void*)'
collect2: error: ld returned 1 exit status
make[1]: *** [bin/Release/guetzli] Error 1
k0nr4d

k0nr4d commented on Mar 20, 2017

@k0nr4d

For the record I've found this is impossible to compile or run under CentOS 6. There's no way to install glibc newer then 2.12 on it and this requires 2.14. Hope that helps someone.

helei112g

helei112g commented on Mar 20, 2017

@helei112g

I fix it.

don't use yum install gflags gflags-devel, please build gflags by self

because yum install gflags gflags-devel get version is 2.1.1. but we need 2.2.0

gflags

centminmod

centminmod commented on Mar 20, 2017

@centminmod

@helei112g tried that and get different set of errors

==== Building guetzli (release) ====
Creating obj/Release
butteraugli_comparator.cc
In file included from ./guetzli/butteraugli_comparator.h:22:0,
                 from guetzli/butteraugli_comparator.cc:17:
third_party/butteraugli/butteraugli/butteraugli.h:129:76: warning: ‘assume_aligned’ attribute directive ignored [-Wattributes]
 #define BUTTERAUGLI_CACHE_ALIGNED_RETURN __attribute__((assume_aligned(64)))
                                                                            ^
third_party/butteraugli/butteraugli/butteraugli.h:146:45: note: in expansion of macro ‘BUTTERAUGLI_CACHE_ALIGNED_RETURN’
   static void *Allocate(const size_t bytes) BUTTERAUGLI_CACHE_ALIGNED_RETURN;
                                             ^
third_party/butteraugli/butteraugli/butteraugli.h:129:76: warning: ‘assume_aligned’ attribute directive ignored [-Wattributes]
 #define BUTTERAUGLI_CACHE_ALIGNED_RETURN __attribute__((assume_aligned(64)))
                                                                            ^
third_party/butteraugli/butteraugli/butteraugli.h:257:42: note: in expansion of macro ‘BUTTERAUGLI_CACHE_ALIGNED_RETURN’
   ConstRestrict<T *> Row(const size_t y) BUTTERAUGLI_CACHE_ALIGNED_RETURN {
                                          ^
third_party/butteraugli/butteraugli/butteraugli.h:129:76: warning: ‘assume_aligned’ attribute directive ignored [-Wattributes]
 #define BUTTERAUGLI_CACHE_ALIGNED_RETURN __attribute__((assume_aligned(64)))
                                                                            ^
third_party/butteraugli/butteraugli/butteraugli.h:268:7: note: in expansion of macro ‘BUTTERAUGLI_CACHE_ALIGNED_RETURN’
       BUTTERAUGLI_CACHE_ALIGNED_RETURN {
       ^
dct_double.cc
debug_print.cc
entropy_encode.cc
fdct.cc
gamma_correct.cc
guetzli.cc
idct.cc
jpeg_data.cc
jpeg_data_decoder.cc
jpeg_data_encoder.cc
jpeg_data_reader.cc
jpeg_data_writer.cc
jpeg_huffman_decode.cc
output_image.cc
preprocess_downsample.cc
processor.cc
In file included from ./guetzli/butteraugli_comparator.h:22:0,
                 from guetzli/processor.cc:24:
third_party/butteraugli/butteraugli/butteraugli.h:129:76: warning: ‘assume_aligned’ attribute directive ignored [-Wattributes]
 #define BUTTERAUGLI_CACHE_ALIGNED_RETURN __attribute__((assume_aligned(64)))
                                                                            ^
third_party/butteraugli/butteraugli/butteraugli.h:146:45: note: in expansion of macro ‘BUTTERAUGLI_CACHE_ALIGNED_RETURN’
   static void *Allocate(const size_t bytes) BUTTERAUGLI_CACHE_ALIGNED_RETURN;
                                             ^
third_party/butteraugli/butteraugli/butteraugli.h:129:76: warning: ‘assume_aligned’ attribute directive ignored [-Wattributes]
 #define BUTTERAUGLI_CACHE_ALIGNED_RETURN __attribute__((assume_aligned(64)))
                                                                            ^
third_party/butteraugli/butteraugli/butteraugli.h:257:42: note: in expansion of macro ‘BUTTERAUGLI_CACHE_ALIGNED_RETURN’
   ConstRestrict<T *> Row(const size_t y) BUTTERAUGLI_CACHE_ALIGNED_RETURN {
                                          ^
third_party/butteraugli/butteraugli/butteraugli.h:129:76: warning: ‘assume_aligned’ attribute directive ignored [-Wattributes]
 #define BUTTERAUGLI_CACHE_ALIGNED_RETURN __attribute__((assume_aligned(64)))
                                                                            ^
third_party/butteraugli/butteraugli/butteraugli.h:268:7: note: in expansion of macro ‘BUTTERAUGLI_CACHE_ALIGNED_RETURN’
       BUTTERAUGLI_CACHE_ALIGNED_RETURN {
       ^
quality.cc
quantize.cc
score.cc
butteraugli.cc
In file included from third_party/butteraugli/butteraugli/butteraugli.cc:32:0:
third_party/butteraugli/butteraugli/butteraugli.h:129:76: warning: ‘assume_aligned’ attribute directive ignored [-Wattributes]
 #define BUTTERAUGLI_CACHE_ALIGNED_RETURN __attribute__((assume_aligned(64)))
                                                                            ^
third_party/butteraugli/butteraugli/butteraugli.h:146:45: note: in expansion of macro ‘BUTTERAUGLI_CACHE_ALIGNED_RETURN’
   static void *Allocate(const size_t bytes) BUTTERAUGLI_CACHE_ALIGNED_RETURN;
                                             ^
third_party/butteraugli/butteraugli/butteraugli.h:129:76: warning: ‘assume_aligned’ attribute directive ignored [-Wattributes]
 #define BUTTERAUGLI_CACHE_ALIGNED_RETURN __attribute__((assume_aligned(64)))
                                                                            ^
third_party/butteraugli/butteraugli/butteraugli.h:257:42: note: in expansion of macro ‘BUTTERAUGLI_CACHE_ALIGNED_RETURN’
   ConstRestrict<T *> Row(const size_t y) BUTTERAUGLI_CACHE_ALIGNED_RETURN {
                                          ^
third_party/butteraugli/butteraugli/butteraugli.h:129:76: warning: ‘assume_aligned’ attribute directive ignored [-Wattributes]
 #define BUTTERAUGLI_CACHE_ALIGNED_RETURN __attribute__((assume_aligned(64)))
                                                                            ^
third_party/butteraugli/butteraugli/butteraugli.h:268:7: note: in expansion of macro ‘BUTTERAUGLI_CACHE_ALIGNED_RETURN’
       BUTTERAUGLI_CACHE_ALIGNED_RETURN {
       ^
Linking guetzli
/usr/local/lib/libgflags.a(gflags.cc.o): In function `google::(anonymous namespace)::FlagRegistry::GlobalRegistry()':
gflags.cc:(.text+0xe96): undefined reference to `pthread_rwlock_wrlock'
gflags.cc:(.text+0xeae): undefined reference to `pthread_rwlock_unlock'
gflags.cc:(.text+0xf47): undefined reference to `pthread_rwlock_init'
/usr/local/lib/libgflags.a(gflags.cc.o): In function `google::(anonymous namespace)::RegisterCommandLineFlag(char const*, char const*, char const*, google::(anonymous namespace)::FlagValue*, google::(anonymous namespace)::FlagValue*)':
gflags.cc:(.text+0x11d5): undefined reference to `pthread_rwlock_wrlock'
gflags.cc:(.text+0x11f5): undefined reference to `pthread_rwlock_unlock'
/usr/local/lib/libgflags.a(gflags.cc.o): In function `google::(anonymous namespace)::AddFlagValidator(void const*, bool (*)())':
gflags.cc:(.text+0x1494): undefined reference to `pthread_rwlock_unlock'
gflags.cc:(.text+0x14ac): undefined reference to `pthread_rwlock_wrlock'
/usr/local/lib/libgflags.a(gflags.cc.o): In function `google::GetCommandLineOption(char const*, std::string*)':
gflags.cc:(.text+0x24a4): undefined reference to `pthread_rwlock_wrlock'
gflags.cc:(.text+0x24be): undefined reference to `pthread_rwlock_wrlock'
gflags.cc:(.text+0x24d6): undefined reference to `pthread_rwlock_unlock'
gflags.cc:(.text+0x256d): undefined reference to `pthread_rwlock_unlock'
gflags.cc:(.text+0x2757): undefined reference to `pthread_rwlock_init'
/usr/local/lib/libgflags.a(gflags.cc.o): In function `google::GetCommandLineFlagInfo(char const*, google::CommandLineFlagInfo*)':
gflags.cc:(.text+0x2874): undefined reference to `pthread_rwlock_wrlock'
gflags.cc:(.text+0x288e): undefined reference to `pthread_rwlock_wrlock'
gflags.cc:(.text+0x28a6): undefined reference to `pthread_rwlock_unlock'
gflags.cc:(.text+0x28c4): undefined reference to `pthread_rwlock_unlock'
gflags.cc:(.text+0x2987): undefined reference to `pthread_rwlock_init'
/usr/local/lib/libgflags.a(gflags.cc.o): In function `google::GetCommandLineFlagInfoOrDie(char const*)':
gflags.cc:(.text+0x2a94): undefined reference to `pthread_rwlock_wrlock'
gflags.cc:(.text+0x2ade): undefined reference to `pthread_rwlock_wrlock'
gflags.cc:(.text+0x2af6): undefined reference to `pthread_rwlock_unlock'
gflags.cc:(.text+0x2b14): undefined reference to `pthread_rwlock_unlock'
gflags.cc:(.text+0x2bb7): undefined reference to `pthread_rwlock_init'
/usr/local/lib/libgflags.a(gflags.cc.o): In function `google::FlagSaver::FlagSaver()':
gflags.cc:(.text+0x30e7): undefined reference to `pthread_rwlock_wrlock'
gflags.cc:(.text+0x30fe): undefined reference to `pthread_rwlock_unlock'
gflags.cc:(.text+0x3115): undefined reference to `pthread_rwlock_wrlock'
gflags.cc:(.text+0x312c): undefined reference to `pthread_rwlock_unlock'
gflags.cc:(.text+0x3204): undefined reference to `pthread_rwlock_init'
/usr/local/lib/libgflags.a(gflags.cc.o): In function `google::FlagSaver::~FlagSaver()':
gflags.cc:(.text+0x3617): undefined reference to `pthread_rwlock_unlock'
gflags.cc:(.text+0x362d): undefined reference to `pthread_rwlock_wrlock'
/usr/local/lib/libgflags.a(gflags.cc.o): In function `google::ShutDownCommandLineFlags()':
gflags.cc:(.text+0x42f1): undefined reference to `pthread_rwlock_destroy'
/usr/local/lib/libgflags.a(gflags.cc.o): In function `google::SetCommandLineOptionWithMode(char const*, char const*, google::FlagSettingMode)':
gflags.cc:(.text+0x64cc): undefined reference to `pthread_rwlock_wrlock'
gflags.cc:(.text+0x64e4): undefined reference to `pthread_rwlock_unlock'
/usr/local/lib/libgflags.a(gflags.cc.o): In function `google::ReadFlagsFromString(std::string const&, char const*, bool)':
gflags.cc:(.text+0x76e7): undefined reference to `pthread_rwlock_unlock'
gflags.cc:(.text+0x76fe): undefined reference to `pthread_rwlock_wrlock'
gflags.cc:(.text+0x7715): undefined reference to `pthread_rwlock_unlock'
gflags.cc:(.text+0x772a): undefined reference to `pthread_rwlock_wrlock'
gflags.cc:(.text+0x7740): undefined reference to `pthread_rwlock_unlock'
gflags.cc:(.text+0x7755): undefined reference to `pthread_rwlock_wrlock'
/usr/local/lib/libgflags.a(gflags.cc.o): In function `google::SetCommandLineOption(char const*, char const*)':
gflags.cc:(.text+0x7a24): undefined reference to `pthread_rwlock_wrlock'
gflags.cc:(.text+0x7a3c): undefined reference to `pthread_rwlock_unlock'
/usr/local/lib/libgflags.a(gflags.cc.o): In function `google::ParseCommandLineFlagsInternal(int*, char***, bool, bool)':
gflags.cc:(.text+0x853a): undefined reference to `pthread_rwlock_unlock'
gflags.cc:(.text+0x854f): undefined reference to `pthread_rwlock_wrlock'
gflags.cc:(.text+0x856a): undefined reference to `pthread_rwlock_unlock'
gflags.cc:(.text+0x8580): undefined reference to `pthread_rwlock_wrlock'
gflags.cc:(.text+0x8596): undefined reference to `pthread_rwlock_unlock'
gflags.cc:(.text+0x85ac): undefined reference to `pthread_rwlock_wrlock'
/usr/local/lib/libgflags.a(gflags.cc.o): In function `google::GetAllFlags(std::vector<google::CommandLineFlagInfo, std::allocator<google::CommandLineFlagInfo> >*)':
gflags.cc:(.text+0x9ba8): undefined reference to `pthread_rwlock_unlock'
gflags.cc:(.text+0x9bc3): undefined reference to `pthread_rwlock_wrlock'
/usr/local/lib/libgflags.a(gflags.cc.o): In function `gflags_mutex_namespace::Mutex::~Mutex()':
gflags.cc:(.text._ZN22gflags_mutex_namespace5MutexD2Ev[_ZN22gflags_mutex_namespace5MutexD5Ev]+0x15): undefined reference to `pthread_rwlock_destroy'
/usr/local/lib/libgflags.a(gflags.cc.o): In function `gflags_mutex_namespace::Mutex::Unlock()':
gflags.cc:(.text._ZN22gflags_mutex_namespace5Mutex6UnlockEv[_ZN22gflags_mutex_namespace5Mutex6UnlockEv]+0x15): undefined reference to `pthread_rwlock_unlock'
/usr/local/lib/libgflags.a(gflags.cc.o): In function `_GLOBAL__sub_I__ZN3fLS14FLAGS_flagfileE':
gflags.cc:(.text.startup+0x34a): undefined reference to `pthread_rwlock_init'
collect2: error: ld returned 1 exit status
make[1]: *** [bin/Release/guetzli] Error 1
make: *** [guetzli] Error 2
robryk

robryk commented on Mar 20, 2017

@robryk
Contributor

Please try the newest code from the repository (after #97 we don't use gflags anymore).

robryk

robryk commented on Mar 20, 2017

@robryk
Contributor

I strongly suspect that newest code doesn't cause this issue anymore. Please reopen if this problem still appears.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @robryk@centminmod@helei112g@k0nr4d@bbcw

        Issue actions

          CentOS `make` Compile error · Issue #89 · google/guetzli