LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 09-29-2008, 11:34 PM   #1
Tsumeone
Member
 
Registered: Jun 2004
Posts: 26

Rep: Reputation: 15
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.
 
Old 09-30-2008, 12:31 AM   #2
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 403Reputation: 403Reputation: 403Reputation: 403Reputation: 403
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem in compiling svn from source rockyrakesh1331 Linux - Software 1 05-30-2008 04:25 PM
error compiling php and svn an2ny_18 Linux - Newbie 2 03-11-2006 07:18 AM
Problems in compiling socket code in c Prakhardeep Programming 2 12-22-2004 10:45 AM
Problems Compiling GTK C++ Source Code drdroid Programming 17 04-10-2004 08:08 PM
Problems with compiling source code cav Linux - General 4 02-06-2003 01:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration