You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@trafodion.apache.org by "Lijian (Q)" <ji...@huawei.com> on 2015/10/27 04:09:51 UTC

Problem about compile of latest code!

Hi,

I get the latest code from GitHub(https://github.com/apache/incubator-trafodion), and compile trafodion core follow the steps:


cd $HOME/trafodion_build/incubator-trafodion-master/core/sqf

source ./sqenv.sh

cd $MY_SQROOT/..

make all

Build is successful, but I find in the directory:core/sqf/export/lib there's not jdbcT2.jar and hbase-trx*.jar. Only jdbcT4.jar is compiled.
I must enter conn/jdbc_type2 and run 'ant' to compile jdbcT2.jar
and
enter sqf/src/seatrans/hbase-trx and run 'make all' to compile hbase-trx*.jar.

I don't know whether this is a problem.

Thanks!

RE: 答复: Problem about compile of latest code!

Posted by Gunnar Tapper <gu...@esgyn.com>.
Great job on these instructions!

-----Original Message-----
From: Roberta Marton [mailto:roberta.marton@esgyn.com]
Sent: Tuesday, October 27, 2015 9:13 AM
To: dev@trafodion.incubator.apache.org
Subject: RE: 答复: Problem about compile of latest code!

On the build website is a list of all the packages that need to be
installed:
https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=61316378
The log4cxx is included in this list - see prerequisites.

    Roberta

-----Original Message-----
From: Lijian (Q) [mailto:jianli.li@huawei.com]
Sent: Tuesday, October 27, 2015 1:50 AM
To: dev@trafodion.incubator.apache.org
Cc: Nieyuanyuan <ni...@huawei.com>
Subject: 答复: 答复: Problem about compile of latest code!

Thanks very much, Weiqing Xu.

-----邮件原件-----
发件人: Weiqing Xu [mailto:xuweiqingchn@gmail.com]
发送时间: 2015年10月27日 14:54
收件人: dev@trafodion.incubator.apache.org
抄送: Nieyuanyuan
主题: Re: 答复: Problem about compile of latest code!

Hi ,
Now, we need log2cxx. If you are using CentOS , you can try "sudo yum
install log4cxx log4cxx-devel " to install them .

Best Regards,
Weiqing Xu

On Tue, Oct 27, 2015 at 2:47 PM, Lijian (Q) <ji...@huawei.com> wrote:

> Thanks Weiqing Xu.
>
>         I run the steps you give, and find compile error: /usr/bin/ld:
> cannot find -llog4cxx.
>         I check all Makefiles and find such results:
>
> [lijian@redhat-72 core]$ find . -name Makefile | xargs grep log4cxx
> ./sqf/src/tm/Makefile:  $(CXX) $(LNK_FLGS) $(LIBJVM) -o $@ $(TMOBJS)
> $(LIBSTM) -L$(LIBEXPDIR) -L$(LOG4CXX_LIB_DIR) -llog4cxx -DTM_BUILD_
> ./sqf/src/tm/Makefile:  $(CXX) $(DTMOBJS) $(LNK_FLGS) $(LIBSBMSX)
> $(LIBJVM) -L$(LIBEXPDIR) -L$(LOG4CXX_LIB_DIR) -llog4cxx -shared -o $@
> $(LIBSTMOBJS)
> ./sqf/src/tm/Makefile:  $(CXX) $(LNK_FLGS) -shared -o $@
> $(LIBSXATMOBJS)
> $(LIBSTMX) -L$(LIBEXPDIR) -L$(LOG4CXX_LIB_DIR) -llog4cxx
> ./sqf/src/tm/Makefile:  $(CXX) $(LNK_FLGS) -shared -o $@
> $(LIBXARMOBJS)
> -L$(LIBEXPDIR) -L$(LOG4CXX_LIB_DIR) -llog4cxx -DXARM_BUILD_
> ./conn/odbc/src/odbc/nsksrvr/Makefile:COMMON_LIBS = -lsbfs -lsbms
> -levlsq -lwin -ltdm_sqlcli -larkcmp_dll -L../nsksrvrcore -lmxocore
> -L$(LOG4CXX_LIB_DIR) -llog4cxx
>
> Why there's -llog4cxx, I think it should be -llog4cpp, is there a
> transfer in some scripts? Should i change -llog4cxx to -llog4cpp manually?
>
>
> Thanks!
>
> -----邮件原件-----
> 发件人: Weiqing Xu [mailto:xuweiqingchn@gmail.com]
> 发送时间: 2015年10月27日 13:50
> 收件人: dev@trafodion.incubator.apache.org
> 抄送: Nieyuanyuan
> 主题: Re: Problem about compile of latest code!
>
> Hi,
> Could you run "make jdbc_type2_jar" to check if there is any error .
>
> cd $MY_SQROOT/..
> make jdbc_type2_jar
>
>
>
> Best Regards,
> Weiqing Xu
>
> On Tue, Oct 27, 2015 at 11:09 AM, Lijian (Q) <ji...@huawei.com> wrote:
>
> > Hi,
> >
> > I get the latest code from GitHub(
> > https://github.com/apache/incubator-trafodion), and compile
> > trafodion core follow the steps:
> >
> >
> > cd $HOME/trafodion_build/incubator-trafodion-master/core/sqf
> >
> > source ./sqenv.sh
> >
> > cd $MY_SQROOT/..
> >
> > make all
> >
> > Build is successful, but I find in the directory:core/sqf/export/lib
> > there's not jdbcT2.jar and hbase-trx*.jar. Only jdbcT4.jar is compiled.
> > I must enter conn/jdbc_type2 and run 'ant' to compile jdbcT2.jar and
> > enter sqf/src/seatrans/hbase-trx and run 'make all' to compile
> > hbase-trx*.jar.
> >
> > I don't know whether this is a problem.
> >
> > Thanks!
> >
>

RE: 答复: Problem about compile of latest code!

Posted by Roberta Marton <ro...@esgyn.com>.
On the build website is a list of all the packages that need to be
installed:
https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=61316378
The log4cxx is included in this list - see prerequisites.

    Roberta

-----Original Message-----
From: Lijian (Q) [mailto:jianli.li@huawei.com]
Sent: Tuesday, October 27, 2015 1:50 AM
To: dev@trafodion.incubator.apache.org
Cc: Nieyuanyuan <ni...@huawei.com>
Subject: 答复: 答复: Problem about compile of latest code!

Thanks very much, Weiqing Xu.

-----邮件原件-----
发件人: Weiqing Xu [mailto:xuweiqingchn@gmail.com]
发送时间: 2015年10月27日 14:54
收件人: dev@trafodion.incubator.apache.org
抄送: Nieyuanyuan
主题: Re: 答复: Problem about compile of latest code!

Hi ,
Now, we need log2cxx. If you are using CentOS , you can try "sudo yum
install log4cxx log4cxx-devel " to install them .

Best Regards,
Weiqing Xu

On Tue, Oct 27, 2015 at 2:47 PM, Lijian (Q) <ji...@huawei.com> wrote:

> Thanks Weiqing Xu.
>
>         I run the steps you give, and find compile error: /usr/bin/ld:
> cannot find -llog4cxx.
>         I check all Makefiles and find such results:
>
> [lijian@redhat-72 core]$ find . -name Makefile | xargs grep log4cxx
> ./sqf/src/tm/Makefile:  $(CXX) $(LNK_FLGS) $(LIBJVM) -o $@ $(TMOBJS)
> $(LIBSTM) -L$(LIBEXPDIR) -L$(LOG4CXX_LIB_DIR) -llog4cxx -DTM_BUILD_
> ./sqf/src/tm/Makefile:  $(CXX) $(DTMOBJS) $(LNK_FLGS) $(LIBSBMSX)
> $(LIBJVM) -L$(LIBEXPDIR) -L$(LOG4CXX_LIB_DIR) -llog4cxx -shared -o $@
> $(LIBSTMOBJS)
> ./sqf/src/tm/Makefile:  $(CXX) $(LNK_FLGS) -shared -o $@
> $(LIBSXATMOBJS)
> $(LIBSTMX) -L$(LIBEXPDIR) -L$(LOG4CXX_LIB_DIR) -llog4cxx
> ./sqf/src/tm/Makefile:  $(CXX) $(LNK_FLGS) -shared -o $@
> $(LIBXARMOBJS)
> -L$(LIBEXPDIR) -L$(LOG4CXX_LIB_DIR) -llog4cxx -DXARM_BUILD_
> ./conn/odbc/src/odbc/nsksrvr/Makefile:COMMON_LIBS = -lsbfs -lsbms
> -levlsq -lwin -ltdm_sqlcli -larkcmp_dll -L../nsksrvrcore -lmxocore
> -L$(LOG4CXX_LIB_DIR) -llog4cxx
>
> Why there's -llog4cxx, I think it should be -llog4cpp, is there a
> transfer in some scripts? Should i change -llog4cxx to -llog4cpp manually?
>
>
> Thanks!
>
> -----邮件原件-----
> 发件人: Weiqing Xu [mailto:xuweiqingchn@gmail.com]
> 发送时间: 2015年10月27日 13:50
> 收件人: dev@trafodion.incubator.apache.org
> 抄送: Nieyuanyuan
> 主题: Re: Problem about compile of latest code!
>
> Hi,
> Could you run "make jdbc_type2_jar" to check if there is any error .
>
> cd $MY_SQROOT/..
> make jdbc_type2_jar
>
>
>
> Best Regards,
> Weiqing Xu
>
> On Tue, Oct 27, 2015 at 11:09 AM, Lijian (Q) <ji...@huawei.com> wrote:
>
> > Hi,
> >
> > I get the latest code from GitHub(
> > https://github.com/apache/incubator-trafodion), and compile
> > trafodion core follow the steps:
> >
> >
> > cd $HOME/trafodion_build/incubator-trafodion-master/core/sqf
> >
> > source ./sqenv.sh
> >
> > cd $MY_SQROOT/..
> >
> > make all
> >
> > Build is successful, but I find in the directory:core/sqf/export/lib
> > there's not jdbcT2.jar and hbase-trx*.jar. Only jdbcT4.jar is compiled.
> > I must enter conn/jdbc_type2 and run 'ant' to compile jdbcT2.jar and
> > enter sqf/src/seatrans/hbase-trx and run 'make all' to compile
> > hbase-trx*.jar.
> >
> > I don't know whether this is a problem.
> >
> > Thanks!
> >
>

答复: 答复: Problem about compile of latest code!

Posted by "Lijian (Q)" <ji...@huawei.com>.
Thanks very much, Weiqing Xu.

-----邮件原件-----
发件人: Weiqing Xu [mailto:xuweiqingchn@gmail.com] 
发送时间: 2015年10月27日 14:54
收件人: dev@trafodion.incubator.apache.org
抄送: Nieyuanyuan
主题: Re: 答复: Problem about compile of latest code!

Hi ,
Now, we need log2cxx. If you are using CentOS , you can try "sudo yum install log4cxx log4cxx-devel " to install them .

Best Regards,
Weiqing Xu

On Tue, Oct 27, 2015 at 2:47 PM, Lijian (Q) <ji...@huawei.com> wrote:

> Thanks Weiqing Xu.
>
>         I run the steps you give, and find compile error: /usr/bin/ld:
> cannot find -llog4cxx.
>         I check all Makefiles and find such results:
>
> [lijian@redhat-72 core]$ find . -name Makefile | xargs grep log4cxx
> ./sqf/src/tm/Makefile:  $(CXX) $(LNK_FLGS) $(LIBJVM) -o $@ $(TMOBJS)
> $(LIBSTM) -L$(LIBEXPDIR) -L$(LOG4CXX_LIB_DIR) -llog4cxx -DTM_BUILD_
> ./sqf/src/tm/Makefile:  $(CXX) $(DTMOBJS) $(LNK_FLGS) $(LIBSBMSX)
> $(LIBJVM) -L$(LIBEXPDIR) -L$(LOG4CXX_LIB_DIR) -llog4cxx -shared -o $@
> $(LIBSTMOBJS)
> ./sqf/src/tm/Makefile:  $(CXX) $(LNK_FLGS) -shared -o $@ 
> $(LIBSXATMOBJS)
> $(LIBSTMX) -L$(LIBEXPDIR) -L$(LOG4CXX_LIB_DIR) -llog4cxx
> ./sqf/src/tm/Makefile:  $(CXX) $(LNK_FLGS) -shared -o $@ 
> $(LIBXARMOBJS)
> -L$(LIBEXPDIR) -L$(LOG4CXX_LIB_DIR) -llog4cxx -DXARM_BUILD_ 
> ./conn/odbc/src/odbc/nsksrvr/Makefile:COMMON_LIBS = -lsbfs -lsbms 
> -levlsq -lwin -ltdm_sqlcli -larkcmp_dll -L../nsksrvrcore -lmxocore
> -L$(LOG4CXX_LIB_DIR) -llog4cxx
>
> Why there's -llog4cxx, I think it should be -llog4cpp, is there a 
> transfer in some scripts? Should i change -llog4cxx to -llog4cpp manually?
>
>
> Thanks!
>
> -----邮件原件-----
> 发件人: Weiqing Xu [mailto:xuweiqingchn@gmail.com]
> 发送时间: 2015年10月27日 13:50
> 收件人: dev@trafodion.incubator.apache.org
> 抄送: Nieyuanyuan
> 主题: Re: Problem about compile of latest code!
>
> Hi,
> Could you run "make jdbc_type2_jar" to check if there is any error .
>
> cd $MY_SQROOT/..
> make jdbc_type2_jar
>
>
>
> Best Regards,
> Weiqing Xu
>
> On Tue, Oct 27, 2015 at 11:09 AM, Lijian (Q) <ji...@huawei.com> wrote:
>
> > Hi,
> >
> > I get the latest code from GitHub(
> > https://github.com/apache/incubator-trafodion), and compile 
> > trafodion core follow the steps:
> >
> >
> > cd $HOME/trafodion_build/incubator-trafodion-master/core/sqf
> >
> > source ./sqenv.sh
> >
> > cd $MY_SQROOT/..
> >
> > make all
> >
> > Build is successful, but I find in the directory:core/sqf/export/lib 
> > there's not jdbcT2.jar and hbase-trx*.jar. Only jdbcT4.jar is compiled.
> > I must enter conn/jdbc_type2 and run 'ant' to compile jdbcT2.jar and 
> > enter sqf/src/seatrans/hbase-trx and run 'make all' to compile 
> > hbase-trx*.jar.
> >
> > I don't know whether this is a problem.
> >
> > Thanks!
> >
>

Re: 答复: Problem about compile of latest code!

Posted by Weiqing Xu <xu...@gmail.com>.
Hi ,
Now, we need log2cxx. If you are using CentOS , you can try "sudo yum
install log4cxx log4cxx-devel " to install them .

Best Regards,
Weiqing Xu

On Tue, Oct 27, 2015 at 2:47 PM, Lijian (Q) <ji...@huawei.com> wrote:

> Thanks Weiqing Xu.
>
>         I run the steps you give, and find compile error: /usr/bin/ld:
> cannot find -llog4cxx.
>         I check all Makefiles and find such results:
>
> [lijian@redhat-72 core]$ find . -name Makefile | xargs grep log4cxx
> ./sqf/src/tm/Makefile:  $(CXX) $(LNK_FLGS) $(LIBJVM) -o $@ $(TMOBJS)
> $(LIBSTM) -L$(LIBEXPDIR) -L$(LOG4CXX_LIB_DIR) -llog4cxx -DTM_BUILD_
> ./sqf/src/tm/Makefile:  $(CXX) $(DTMOBJS) $(LNK_FLGS) $(LIBSBMSX)
> $(LIBJVM) -L$(LIBEXPDIR) -L$(LOG4CXX_LIB_DIR) -llog4cxx -shared -o $@
> $(LIBSTMOBJS)
> ./sqf/src/tm/Makefile:  $(CXX) $(LNK_FLGS) -shared -o $@ $(LIBSXATMOBJS)
> $(LIBSTMX) -L$(LIBEXPDIR) -L$(LOG4CXX_LIB_DIR) -llog4cxx
> ./sqf/src/tm/Makefile:  $(CXX) $(LNK_FLGS) -shared -o $@ $(LIBXARMOBJS)
> -L$(LIBEXPDIR) -L$(LOG4CXX_LIB_DIR) -llog4cxx -DXARM_BUILD_
> ./conn/odbc/src/odbc/nsksrvr/Makefile:COMMON_LIBS = -lsbfs -lsbms -levlsq
> -lwin -ltdm_sqlcli -larkcmp_dll -L../nsksrvrcore -lmxocore
> -L$(LOG4CXX_LIB_DIR) -llog4cxx
>
> Why there's -llog4cxx, I think it should be -llog4cpp, is there a transfer
> in some scripts? Should i change -llog4cxx to -llog4cpp manually?
>
>
> Thanks!
>
> -----邮件原件-----
> 发件人: Weiqing Xu [mailto:xuweiqingchn@gmail.com]
> 发送时间: 2015年10月27日 13:50
> 收件人: dev@trafodion.incubator.apache.org
> 抄送: Nieyuanyuan
> 主题: Re: Problem about compile of latest code!
>
> Hi,
> Could you run "make jdbc_type2_jar" to check if there is any error .
>
> cd $MY_SQROOT/..
> make jdbc_type2_jar
>
>
>
> Best Regards,
> Weiqing Xu
>
> On Tue, Oct 27, 2015 at 11:09 AM, Lijian (Q) <ji...@huawei.com> wrote:
>
> > Hi,
> >
> > I get the latest code from GitHub(
> > https://github.com/apache/incubator-trafodion), and compile trafodion
> > core follow the steps:
> >
> >
> > cd $HOME/trafodion_build/incubator-trafodion-master/core/sqf
> >
> > source ./sqenv.sh
> >
> > cd $MY_SQROOT/..
> >
> > make all
> >
> > Build is successful, but I find in the directory:core/sqf/export/lib
> > there's not jdbcT2.jar and hbase-trx*.jar. Only jdbcT4.jar is compiled.
> > I must enter conn/jdbc_type2 and run 'ant' to compile jdbcT2.jar and
> > enter sqf/src/seatrans/hbase-trx and run 'make all' to compile
> > hbase-trx*.jar.
> >
> > I don't know whether this is a problem.
> >
> > Thanks!
> >
>

答复: Problem about compile of latest code!

Posted by "Lijian (Q)" <ji...@huawei.com>.
Thanks Weiqing Xu.

	I run the steps you give, and find compile error: /usr/bin/ld: cannot find -llog4cxx.
	I check all Makefiles and find such results:

[lijian@redhat-72 core]$ find . -name Makefile | xargs grep log4cxx
./sqf/src/tm/Makefile:  $(CXX) $(LNK_FLGS) $(LIBJVM) -o $@ $(TMOBJS) $(LIBSTM) -L$(LIBEXPDIR) -L$(LOG4CXX_LIB_DIR) -llog4cxx -DTM_BUILD_
./sqf/src/tm/Makefile:  $(CXX) $(DTMOBJS) $(LNK_FLGS) $(LIBSBMSX) $(LIBJVM) -L$(LIBEXPDIR) -L$(LOG4CXX_LIB_DIR) -llog4cxx -shared -o $@ $(LIBSTMOBJS)  
./sqf/src/tm/Makefile:  $(CXX) $(LNK_FLGS) -shared -o $@ $(LIBSXATMOBJS) $(LIBSTMX) -L$(LIBEXPDIR) -L$(LOG4CXX_LIB_DIR) -llog4cxx
./sqf/src/tm/Makefile:  $(CXX) $(LNK_FLGS) -shared -o $@ $(LIBXARMOBJS) -L$(LIBEXPDIR) -L$(LOG4CXX_LIB_DIR) -llog4cxx -DXARM_BUILD_
./conn/odbc/src/odbc/nsksrvr/Makefile:COMMON_LIBS = -lsbfs -lsbms -levlsq -lwin -ltdm_sqlcli -larkcmp_dll -L../nsksrvrcore -lmxocore -L$(LOG4CXX_LIB_DIR) -llog4cxx

Why there's -llog4cxx, I think it should be -llog4cpp, is there a transfer in some scripts? Should i change -llog4cxx to -llog4cpp manually? 
	

Thanks!

-----邮件原件-----
发件人: Weiqing Xu [mailto:xuweiqingchn@gmail.com] 
发送时间: 2015年10月27日 13:50
收件人: dev@trafodion.incubator.apache.org
抄送: Nieyuanyuan
主题: Re: Problem about compile of latest code!

Hi,
Could you run "make jdbc_type2_jar" to check if there is any error .

cd $MY_SQROOT/..
make jdbc_type2_jar



Best Regards,
Weiqing Xu

On Tue, Oct 27, 2015 at 11:09 AM, Lijian (Q) <ji...@huawei.com> wrote:

> Hi,
>
> I get the latest code from GitHub(
> https://github.com/apache/incubator-trafodion), and compile trafodion 
> core follow the steps:
>
>
> cd $HOME/trafodion_build/incubator-trafodion-master/core/sqf
>
> source ./sqenv.sh
>
> cd $MY_SQROOT/..
>
> make all
>
> Build is successful, but I find in the directory:core/sqf/export/lib 
> there's not jdbcT2.jar and hbase-trx*.jar. Only jdbcT4.jar is compiled.
> I must enter conn/jdbc_type2 and run 'ant' to compile jdbcT2.jar and 
> enter sqf/src/seatrans/hbase-trx and run 'make all' to compile 
> hbase-trx*.jar.
>
> I don't know whether this is a problem.
>
> Thanks!
>

Re: Problem about compile of latest code!

Posted by Weiqing Xu <xu...@gmail.com>.
Hi,
Could you run "make jdbc_type2_jar" to check if there is any error .

cd $MY_SQROOT/..
make jdbc_type2_jar



Best Regards,
Weiqing Xu

On Tue, Oct 27, 2015 at 11:09 AM, Lijian (Q) <ji...@huawei.com> wrote:

> Hi,
>
> I get the latest code from GitHub(
> https://github.com/apache/incubator-trafodion), and compile trafodion
> core follow the steps:
>
>
> cd $HOME/trafodion_build/incubator-trafodion-master/core/sqf
>
> source ./sqenv.sh
>
> cd $MY_SQROOT/..
>
> make all
>
> Build is successful, but I find in the directory:core/sqf/export/lib
> there's not jdbcT2.jar and hbase-trx*.jar. Only jdbcT4.jar is compiled.
> I must enter conn/jdbc_type2 and run 'ant' to compile jdbcT2.jar
> and
> enter sqf/src/seatrans/hbase-trx and run 'make all' to compile
> hbase-trx*.jar.
>
> I don't know whether this is a problem.
>
> Thanks!
>

Re: Problem about compile of latest code!

Posted by RuoYu Zuo <jo...@gmail.com>.
Hi Lijian,

Actually for now lack of T2 does not impact you from running Trafodion core
services.

Anyway, we don't see this T2 built failure on our boxes. Only jdbcT2.jar
will not work, T2 also has a native .so lib file, you can see the Makefile
as well under the directory of jdbc_type2, run make will build and copy the
.so file to sqf/export/lib64 dir. Using T2 requires both of the jar lib
file and native lib file. You can take a shoot to build them all too see
will it succeed.

Thanks& Regards
RuoYu