I think you need to install uuid.
You can execute the command as following:
yum install libuuid.x86_64 uuid.x86_64 uuid-c++.x86_64 uuid-c++-devel.x86_64

北京易鲸捷信息技术有限公司
地址:北京市朝阳区北辰东路8号汇宾大厦A座1302室
手机:18513493336
邮箱:[email protected]

-----邮件原件-----
发件人: Dave Birdsall [mailto:[email protected]] 
发送时间: 2018年2月28日 3:39
收件人: [email protected]
主题: Make failure in latest Trafodion, uuid.h missing

Hi,

I just brought one of my Trafodion instances up-to-date and did a clean build. 
The build failed with the following errors:

[birdsall@edev08 trafodion]$ grep ": err" make.out
../exp/exp_function.cpp:53:23: error: uuid/uuid.h: No such file or directory    
      ##(SQL)
../exp/exp_function.cpp:6812: error: 'uuid_t' was not declared in this scope    
     ##(SQL)
../exp/exp_function.cpp:6812: error: expected ';' before 'uu'      ##(SQL)
../exp/exp_function.cpp:6813: error: 'uu' was not declared in this scope ##(SQL)
../exp/exp_function.cpp:6813: error: 'uuid_generate' was not declared in this 
scope         ##(SQL)
../exp/exp_function.cpp:6814: error: 'uuid_unparse' was not declared in this 
scope          ##(SQL)
cc1plus: error: unrecognized command line option "-Wno-conversion-null"         
  ##(SQL)
[birdsall@edev08 trafodion]$

Looking at exp/exp_function.cpp, this file now contains the following statement:

#include <uuid/uuid.h>

I looked around in the /usr/include directory on my workstation for the file 
uuid.h. I found it in /usr/include/linux. So I tried changing the include to 
the following:

#include <linux/uuid.h>

Now I get a different set of build errors:

[birdsall@edev08 trafodion]$ grep ": err" make.out
../exp/exp_function.cpp:6812: error: 'uuid_t' was not declared in this scope    
     ##(SQL)
../exp/exp_function.cpp:6812: error: expected ';' before 'uu'      ##(SQL)
../exp/exp_function.cpp:6813: error: 'uu' was not declared in this scope ##(SQL)
../exp/exp_function.cpp:6813: error: 'uuid_generate' was not declared in this 
scope         ##(SQL)
../exp/exp_function.cpp:6814: error: 'uuid_unparse' was not declared in this 
scope          ##(SQL)
cc1plus: error: unrecognized command line option "-Wno-conversion-null"         
  ##(SQL)
[birdsall@edev08 trafodion]$

So, I am guessing something needs to be updated or reconfigured in the 
Trafodion build environment. Or at least there is a new dependency that needs 
to be taken into account.

Can anyone suggest what must be done to get a clean build?

Thanks,

Dave

PS - The Jenkins machines seem to have the right configuration as builds aren't 
failing there...


Reply via email to