Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
09-29-2008, 11:34 PM
|
#1
|
Member
Registered: Jun 2004
Posts: 26
Rep:
|
Problems compiling PvPGN SVN code...
According to the guys over at PvPGN it works for them on Ubuntu 8.04 AMD64 (which is what I'm using), wish they'd just send me some working binaries but no dice... anyway, what am I doing wrong? The giant blob of errors I get is at the bottom of this post...
--
So, first I install newest cmake, gcc, gpp, and zlib.
Then I do this after navigating with terminal to folder "dev" on my desktop that I made
Code:
svn checkout svn://svn.berlios.de/pvpgn/trunk
Then, after making a build folder and navigating there with terminal, I do
Code:
cmake -i /home/tsumeone/Desktop/dev/trunk/pvpgn
I don't get any errors with cmake, I use all the default values (Im not going to use mysql or any of that for my PvPGN server) Then it tells me to use make to compile, so I type "make" and press enter. Starts going, get some warnings at 11% and other places along the way but it keeps going, until.....
Code:
[ 65%] Building CXX object src/bnetd/CMakeFiles/bnetd.dir/handle_udp.o
[ 66%] Building CXX object src/bnetd/CMakeFiles/bnetd.dir/handle_wol.o
[ 66%] Building CXX object src/bnetd/CMakeFiles/bnetd.dir/handle_wol_gameres.o
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp: In function ‘int pvpgn::bnetd::handle_wol_gameres_packet(pvpgn::bnetd::t_connection*, const pvpgn::t_packet*)’:
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp:617: warning: format ‘%s’ expects type ‘char*’, but argument 4 has type ‘const void*’
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp:620: warning: format ‘%u’ expects type ‘unsigned int’, but argument 4 has type ‘long unsigned int’
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp: In function ‘int pvpgn::bnetd::_client_trny(pvpgn::bnetd::wol_gameres_type, int, const void*)’:
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp:766: error: ‘strcmp’ is not a member of ‘std’
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp:768: error: ‘strcmp’ is not a member of ‘std’
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp:771: warning: format ‘%s’ expects type ‘char*’, but argument 4 has type ‘const void*’
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp: In function ‘int pvpgn::bnetd::_client_mode(pvpgn::bnetd::wol_gameres_type, int, const void*)’:
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp:908: warning: format ‘%s’ expects type ‘char*’, but argument 4 has type ‘const void*’
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp: In function ‘int pvpgn::bnetd::_client_crat(pvpgn::bnetd::wol_gameres_type, int, const void*)’:
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp:936: error: ‘strcmp’ is not a member of ‘std’
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp:938: error: ‘strcmp’ is not a member of ‘std’
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp:941: warning: format ‘%s’ expects type ‘char*’, but argument 4 has type ‘const void*’
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp: In function ‘int pvpgn::bnetd::_client_scen(pvpgn::bnetd::wol_gameres_type, int, const void*)’:
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp:991: warning: format ‘%s’ expects type ‘char*’, but argument 4 has type ‘const void*’
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp: In function ‘int pvpgn::bnetd::_client_time(pvpgn::bnetd::wol_gameres_type, int, const void*)’:
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp:1085: warning: format ‘%s’ expects type ‘char*’, but argument 4 has type ‘const void*’
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp: In function ‘int pvpgn::bnetd::_client_proc(pvpgn::bnetd::wol_gameres_type, int, const void*)’:
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp:1118: warning: format ‘%s’ expects type ‘char*’, but argument 4 has type ‘const void*’
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp: In function ‘int pvpgn::bnetd::_client_vers(pvpgn::bnetd::wol_gameres_type, int, const void*)’:
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp:1165: warning: format ‘%s’ expects type ‘char*’, but argument 4 has type ‘const void*’
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp: In function ‘int pvpgn::bnetd::_client_date(pvpgn::bnetd::wol_gameres_type, int, const void*)’:
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp:1183: warning: format ‘%s’ expects type ‘char*’, but argument 4 has type ‘const void*’
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp: In function ‘int pvpgn::bnetd::_client_base(pvpgn::bnetd::wol_gameres_type, int, const void*)’:
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp:1203: error: ‘strcmp’ is not a member of ‘std’
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp:1205: error: ‘strcmp’ is not a member of ‘std’
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp:1208: warning: format ‘%s’ expects type ‘char*’, but argument 4 has type ‘const void*’
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp: In function ‘int pvpgn::bnetd::_client_tibr(pvpgn::bnetd::wol_gameres_type, int, const void*)’:
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp:1237: warning: format ‘%s’ expects type ‘char*’, but argument 4 has type ‘const void*’
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp: In function ‘int pvpgn::bnetd::_client_shad(pvpgn::bnetd::wol_gameres_type, int, const void*)’:
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp:1258: error: ‘strcmp’ is not a member of ‘std’
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp:1260: error: ‘strcmp’ is not a member of ‘std’
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp:1263: warning: format ‘%s’ expects type ‘char*’, but argument 4 has type ‘const void*’
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp: In function ‘int pvpgn::bnetd::_client_flag(pvpgn::bnetd::wol_gameres_type, int, const void*)’:
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp:1289: error: ‘strcmp’ is not a member of ‘std’
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp:1291: error: ‘strcmp’ is not a member of ‘std’
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp:1294: warning: format ‘%s’ expects type ‘char*’, but argument 4 has type ‘const void*’
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp: In function ‘int pvpgn::bnetd::_client_snam(pvpgn::bnetd::wol_gameres_type, int, const void*)’:
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp:1421: warning: format ‘%s’ expects type ‘char*’, but argument 4 has type ‘const void*’
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp: In function ‘int pvpgn::bnetd::_client_gmap(pvpgn::bnetd::wol_gameres_type, int, const void*)’:
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp:1436: warning: format ‘%s’ expects type ‘char*’, but argument 4 has type ‘const void*’
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp: In function ‘int pvpgn::bnetd::_client_pnam(pvpgn::bnetd::wol_gameres_type, int, const void*)’:
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp:1468: warning: format ‘%s’ expects type ‘char*’, but argument 4 has type ‘const void*’
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp: In function ‘int pvpgn::bnetd::_client_nam0(pvpgn::bnetd::wol_gameres_type, int, const void*)’:
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp:1931: warning: format ‘%s’ expects type ‘char*’, but argument 4 has type ‘const void*’
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp: In function ‘int pvpgn::bnetd::_client_nam1(pvpgn::bnetd::wol_gameres_type, int, const void*)’:
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp:1937: warning: format ‘%s’ expects type ‘char*’, but argument 4 has type ‘const void*’
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp: In function ‘int pvpgn::bnetd::_client_nam2(pvpgn::bnetd::wol_gameres_type, int, const void*)’:
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp:1943: warning: format ‘%s’ expects type ‘char*’, but argument 4 has type ‘const void*’
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp: In function ‘int pvpgn::bnetd::_client_nam3(pvpgn::bnetd::wol_gameres_type, int, const void*)’:
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp:1949: warning: format ‘%s’ expects type ‘char*’, but argument 4 has type ‘const void*’
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp: In function ‘int pvpgn::bnetd::_client_nam4(pvpgn::bnetd::wol_gameres_type, int, const void*)’:
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp:1955: warning: format ‘%s’ expects type ‘char*’, but argument 4 has type ‘const void*’
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp: In function ‘int pvpgn::bnetd::_client_nam5(pvpgn::bnetd::wol_gameres_type, int, const void*)’:
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp:1961: warning: format ‘%s’ expects type ‘char*’, but argument 4 has type ‘const void*’
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp: In function ‘int pvpgn::bnetd::_client_nam6(pvpgn::bnetd::wol_gameres_type, int, const void*)’:
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp:1967: warning: format ‘%s’ expects type ‘char*’, but argument 4 has type ‘const void*’
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp: In function ‘int pvpgn::bnetd::_client_nam7(pvpgn::bnetd::wol_gameres_type, int, const void*)’:
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp:1973: warning: format ‘%s’ expects type ‘char*’, but argument 4 has type ‘const void*’
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp: In function ‘int pvpgn::bnetd::_cl_inb_general(int, pvpgn::bnetd::wol_gameres_type, int, const void*)’:
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp:2123: warning: format ‘%u’ expects type ‘unsigned int’, but argument 5 has type ‘long unsigned int’
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp: In function ‘int pvpgn::bnetd::_cl_unb_general(int, pvpgn::bnetd::wol_gameres_type, int, const void*)’:
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp:2185: warning: format ‘%u’ expects type ‘unsigned int’, but argument 5 has type ‘long unsigned int’
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp: In function ‘int pvpgn::bnetd::_cl_plb_general(int, pvpgn::bnetd::wol_gameres_type, int, const void*)’:
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp:2242: warning: format ‘%u’ expects type ‘unsigned int’, but argument 5 has type ‘long unsigned int’
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp: In function ‘int pvpgn::bnetd::_cl_blb_general(int, pvpgn::bnetd::wol_gameres_type, int, const void*)’:
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp:2298: warning: format ‘%u’ expects type ‘unsigned int’, but argument 5 has type ‘long unsigned int’
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp: In function ‘int pvpgn::bnetd::_cl_inl_general(int, pvpgn::bnetd::wol_gameres_type, int, const void*)’:
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp:2354: warning: format ‘%u’ expects type ‘unsigned int’, but argument 5 has type ‘long unsigned int’
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp: In function ‘int pvpgn::bnetd::_cl_unl_general(int, pvpgn::bnetd::wol_gameres_type, int, const void*)’:
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp:2410: warning: format ‘%u’ expects type ‘unsigned int’, but argument 5 has type ‘long unsigned int’
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp: In function ‘int pvpgn::bnetd::_cl_pll_general(int, pvpgn::bnetd::wol_gameres_type, int, const void*)’:
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp:2466: warning: format ‘%u’ expects type ‘unsigned int’, but argument 5 has type ‘long unsigned int’
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp: In function ‘int pvpgn::bnetd::_cl_bll_general(int, pvpgn::bnetd::wol_gameres_type, int, const void*)’:
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp:2522: warning: format ‘%u’ expects type ‘unsigned int’, but argument 5 has type ‘long unsigned int’
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp: In function ‘int pvpgn::bnetd::_cl_ink_general(int, pvpgn::bnetd::wol_gameres_type, int, const void*)’:
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp:2578: warning: format ‘%u’ expects type ‘unsigned int’, but argument 5 has type ‘long unsigned int’
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp: In function ‘int pvpgn::bnetd::_cl_unk_general(int, pvpgn::bnetd::wol_gameres_type, int, const void*)’:
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp:2634: warning: format ‘%u’ expects type ‘unsigned int’, but argument 5 has type ‘long unsigned int’
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp: In function ‘int pvpgn::bnetd::_cl_plk_general(int, pvpgn::bnetd::wol_gameres_type, int, const void*)’:
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp:2690: warning: format ‘%u’ expects type ‘unsigned int’, but argument 5 has type ‘long unsigned int’
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp: In function ‘int pvpgn::bnetd::_cl_blk_general(int, pvpgn::bnetd::wol_gameres_type, int, const void*)’:
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp:2746: warning: format ‘%u’ expects type ‘unsigned int’, but argument 5 has type ‘long unsigned int’
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp: In function ‘int pvpgn::bnetd::_cl_blc_general(int, pvpgn::bnetd::wol_gameres_type, int, const void*)’:
/home/tsumeone/Desktop/dev/trunk/pvpgn/src/bnetd/handle_wol_gameres.cpp:2802: warning: format ‘%u’ expects type ‘unsigned int’, but argument 5 has type ‘long unsigned int’
make[2]: *** [src/bnetd/CMakeFiles/bnetd.dir/handle_wol_gameres.o] Error 1
make[1]: *** [src/bnetd/CMakeFiles/bnetd.dir/all] Error 2
make: *** [all] Error 2
Now naturally since they won't release any binaries of the 1.99.x branch I'm stuck between a rock and a hard place. No one wants to compile it for me, and no one wants to tell me why it won't work. I asked over at their forums and they basically said I was doing it wrong, but I don't think so... no help at all. How can I make this work? 1.8.3 is not an option.
|
|
|
09-30-2008, 12:31 AM
|
#2
|
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083
|
Quote:
I asked over at their forums and they basically said I was doing it wrong, but I don't think so... no help at all. How can I make this work? 1.8.3 is not an option.
|
There's very little that you could be doing wrong. To configure with cmake and compile with make is comething that a child could do once the toolchain is installed. So, could you direct us with a link to this forum or whatever that discussion took place?
This kind of error:
Code:
warning: format ‘%s’ expects type ‘char*’, but argument 4 has type ‘const void*’
Usually mean that someone is using incorrect data type casts, something very usual with char variables and/or involving const types, and that shouldn't be done (there's no reason to). Some compilers will work, some others will not, some will work only depending on some options.
Each new version of gcc is more strict, usually. So, maybe it's just that your compiler is too modern for them. I have downloaded it, but the documents are mostly useless, the readme files are just jokes.
Last edited by i92guboj; 09-30-2008 at 12:33 AM.
|
|
|
All times are GMT -5. The time now is 03:27 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|