[Status Report] SoK-18 Project: Write tests and Improve protocol support for Kopete
Himanshu Vishwakarma <[email protected]> Sun, 28 Jan 2018 13:06:05 +0530
| Newsgroups | gmane.comp.kde.devel.kopete |
|---|---|
| Message-ID | <CAAF-E2vCc_7b+tZgcebbwepaFph5rfAmE3i6BPOy+XjEwqiV4Q@mail.gmail.com> |
--089e08228a40a5eedb0563d12eca Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, In this week I have a blocker in the writing test is linking library of QQ protocol to the test library. I am working on the same since last week. I try to google but didn't get a =E2=80=8Bny=E2=80=8B good result. When running the command '*make*' =E2=80=8Bafter writing the test, =E2=80=8B it give the error like this =E2=80=8B:=E2=80=8B */usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o: In function `_start': (.text+0x20): undefined reference to `main' CMakeFiles/qqcrypttest.dir/qqcrypttest.cpp.o: In function `QQCryptTest::CryptTest()': qqcrypttest.cpp:(.text+0x243e): undefined reference to `TEA::encipher(unsigned int*, unsigned int const*, unsigned int*)' qqcrypttest.cpp:(.text+0x2455): undefined reference to `TEA::decipher(unsigned int*, unsigned int const*, unsigned int*)' collect2: error: ld returned 1 exit status tests/protocols/qq/CMakeFiles/qqcrypttest.dir/build.make:120: recipe for target 'tests/protocols/qq/qqcrypttest' failed make[2]: *** [tests/protocols/qq/qqcrypttest] Error 1 CMakeFiles/Makefile2:6872: recipe for target 'tests/protocols/qq/CMakeFiles/qqcrypttest.dir/all' failed make[1]: *** [tests/protocols/qq/CMakeFiles/qqcrypttest.dir/all] Error 2 Makefile:138: recipe for target 'all' failed make: *** [all] Error 2* =E2=80=8BL=E2=80=8B ink to file: - test/protocol/qq/CMakeLists.txt <https://paste.kde.org/p4wgnneua> - change is done in the kopete/protocols/qq/CMakeLists.txt <https://paste.kde.org/pykp5k3w7> =E2=80=8B, output of =E2=80=8B command git diff - test header file qqcrypttest.h <https://paste.kde.org/puuhrchye> - test file qqcrypttest.cpp <https://paste.kde.org/pwstszknv> =E2=80=8BM=E2=80=8B y question is =E2=80=8B- =E2=80=8B how to make kopete_qq library visible in the test namespace? =E2=80=8BPlease help.=E2=80=8B Regards, Himanshu Vishwakarma --089e08228a40a5eedb0563d12eca Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:arial,he= lvetica,sans-serif">Hi,<br></div><div class=3D"gmail_quote"><div dir=3D"ltr= "><div style=3D"font-family:arial,helvetica,sans-serif"><br></div><div styl= e=3D"font-family:arial,helvetica,sans-serif">In this week I have a blocker = in the writing test is linking library of QQ protocol to the test library. = I am working on the same since last week.</div><div style=3D"font-family:ar= ial,helvetica,sans-serif">I try to google but didn't get a<div class=3D= "gmail_default" style=3D"font-family:arial,helvetica,sans-serif;display:inl= ine">=E2=80=8Bny=E2=80=8B</div> good result.</div><div style=3D"font-family= :arial,helvetica,sans-serif">When running the command '<b>make</b>'= <div class=3D"gmail_default" style=3D"font-family:arial,helvetica,sans-ser= if;display:inline">=E2=80=8Bafter writing the test, =E2=80=8B</div>it give = the error like this<div class=3D"gmail_default" style=3D"font-family:arial,= helvetica,sans-serif;display:inline">=E2=80=8B:=E2=80=8B</div></div><div st= yle=3D"font-family:arial,helvetica,sans-serif"><br></div><div style=3D"font= -family:arial,helvetica,sans-serif"><span style=3D"font-family:monospace"><= b><span style=3D"color:rgb(0,0,0)">/usr/lib/gcc/x86_64-linux-gnu/<wbr>5/../= ../../x86_64-linux-gnu/<wbr>crt1.o: In function `_start': </span><br>(.= text+0x20): undefined reference to `main' <br>CMakeFiles/qqcrypttest.di= r/<wbr>qqcrypttest.cpp.o: In function `QQCryptTest::CryptTest()': <br>q= qcrypttest.cpp:(.text+0x243e)<wbr>: undefined reference to `TEA::encipher(u= nsigned int*, unsigned int const*, unsigned int*)' <br>qqcrypttest.cpp:= (.text+0x2455)<wbr>: undefined reference to `TEA::decipher(unsigned int*, u= nsigned int const*, unsigned int*)' <br>collect2: error: ld returned 1 = exit status <br>tests/protocols/qq/CMakeFiles/<wbr>qqcrypttest.dir/build.ma= ke:<wbr>120: recipe for target 'tests/protocols/qq/<wbr>qqcrypttest'= ; failed <br>make[2]: *** [tests/protocols/qq/<wbr>qqcrypttest] Error 1 <br= >CMakeFiles/Makefile2:6872: recipe for target 'tests/protocols/qq/<wbr>= CMakeFiles/qqcrypttest.dir/<wbr>all' failed <br>make[1]: *** [tests/pro= tocols/qq/<wbr>CMakeFiles/qqcrypttest.dir/<wbr>all] Error 2 <br>Makefile:13= 8: recipe for target 'all' failed <br>make: *** [all] Error 2</b><b= r></span></div><div style=3D"font-family:arial,helvetica,sans-serif"><br></= div><div style=3D"font-family:arial,helvetica,sans-serif"><div class=3D"gma= il_default" style=3D"font-family:arial,helvetica,sans-serif;display:inline"= >=E2=80=8BL=E2=80=8B</div>ink to file:</div><div style=3D"font-family:arial= ,helvetica,sans-serif"><ul><li>test/protocol/qq/<a href=3D"https://paste.kd= e.org/p4wgnneua" target=3D"_blank">CMakeLists.<wbr>txt</a><br></li><li>chan= ge is done in the <a href=3D"https://paste.kde.org/pykp5k3w7" target=3D"_bl= ank">kopete/protocols/qq/<wbr>CMakeLists.txt</a>=C2=A0<div class=3D"gmail_d= efault" style=3D"font-family:arial,helvetica,sans-serif;display:inline">=E2= =80=8B, output of =E2=80=8B</div>command=C2=A0git=C2=A0diff<br></li><li>tes= t header file <a href=3D"https://paste.kde.org/puuhrchye" target=3D"_blank"= >qqcrypttest.h</a><br></li><li>test file <a href=3D"https://paste.kde.org/p= wstszknv" target=3D"_blank">qqcrypttest.cpp</a></li></ul></div><div style= =3D"font-family:arial,helvetica,sans-serif"><div class=3D"gmail_default" st= yle=3D"font-family:arial,helvetica,sans-serif;display:inline">=E2=80=8BM=E2= =80=8B</div>y question is <div class=3D"gmail_default" style=3D"font-family= :arial,helvetica,sans-serif;display:inline">=E2=80=8B- =E2=80=8B</div>how t= o make kopete_qq library visible in the test namespace?</div><div><div clas= s=3D"m_-6815183940498654102gmail-m_-7935153186599773436m_-62748795005968284= 29gmail_signature"><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div = dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"= ltr"><div><br></div><div><div class=3D"gmail_default" style=3D"font-family:= arial,helvetica,sans-serif">=E2=80=8BPlease help.=E2=80=8B</div><br></div><= div dir=3D"ltr"><font size=3D"2" face=3D"arial, helvetica, sans-serif">Rega= rds,</font><div style=3D"font-size:12.8px"><font size=3D"2" face=3D"arial, = helvetica, sans-serif">Himanshu Vishwakarma</font></div></div></div></div><= /div></div></div></div></div></div></div></div></div> </div><br></div> --089e08228a40a5eedb0563d12eca--