|
|
 |
 |
 |
 |
|
 |
 |
|
 |
 |
|
 |
|
Archive::Linux Servers Archive area for Linux Servers's posts that were moved here after an inactivity period of 90 days. |

01-03-2004, 02:03 PM
|
Fire Beetle
|
|
Join Date: Dec 2003
Posts: 10
|
|
01/03/2004 build, 0.5.3-DR2 Make fails (fix inside)
The latest version of 0.5.3-DR2 is failing to make on Linux.
The error received is:
client.cpp:3413: name lookup of `i' changed for new ISO `for' scoping
client.cpp:3401: using obsolete binding at `i'
Just need to give the second for loop in Client::Message_StringID it's own declared iterator rather than reusing 'i'. Diff of the fix is below:
Code:
3413,3416c3413,3416
< for(i=0;i<9;i++){
< if(messagearray[i]){
< strcpy((char*)bufptr,messagearray[i]);
< bufptr+=strlen(messagearray[i])+1;
---
> for(int j=0;j<9;j++){
> if(messagearray[j]){
> strcpy((char*)bufptr,messagearray[j]);
> bufptr+=strlen(messagearray[j])+1;
|

01-03-2004, 02:06 PM
|
Fire Beetle
|
|
Join Date: Dec 2003
Posts: 10
|
|
I should also mention I'm using gcc 3.2.2, in case this a compiler version issue.
|

01-07-2004, 10:28 PM
|
Fire Beetle
|
|
Join Date: Jan 2004
Posts: 8
|
|
Did you get the source from the 319Shawn.eqemulator.net/cvs? I looked at it, and it didn't seem to be compileable under linux.
I edited the makefiles to make them all point to the root directory when compiling (and made 3 makefiles for world, zone and the memory). However, I had the same problem you had with client.o. For me, however, the "variable i problem" you're describing is only a warning (not a error). I made the change and it still fails to compile. Instead, it seems that the error is that UpdateWindowTitle(char*) isn't getting the right arguments (in net.cpp/h).
I was wondering if you have gotten the source (the 1/3/2004 source) to compile and work completely yet.
Thanks
Lawrence
|

01-07-2004, 10:45 PM
|
Fire Beetle
|
|
Join Date: Jan 2004
Posts: 8
|
|
Also, out of curiosity, does the newest (1/4?) EQLive patch work with the original 5.3DR2 source? --- or does it *only* work with the new source offered by 319Shawn?
I'm asking this because I can't compile it, and though my friend doesn't have a problem logging onto brightblade, he has a problem logging onto my server (1017 error).
Just wondering if its a version issue, or another server issue that I didn't look into yet
Lawrence
|

01-08-2004, 12:15 AM
|
Discordant
|
|
Join Date: May 2002
Posts: 434
|
|
Paste the output.. that diff isn't the best way to deal with it but it will work.. and UpdateWindowTitle doesn't do anything in linux.. you can just comment out the line but it should compile fine.. but I need to know where it is to check anyways.
__________________
++[>++++++<-]>[<++++++>-]<.>++++[>+++++<-]>[<
+++++>-]<+.+++++++..+++.>>+++++[<++++++>-]<+
+.<<+++++++++++++++.>.+++.------.--------.>+.
|

01-08-2004, 08:57 AM
|
Sarnak
|
|
Join Date: Oct 2003
Posts: 64
|
|
I made the change mentioned above.. and i get this when i try to compile:
Code:
client.cpp:3413: `j' undeclared (first use this function)
client.cpp:3413: (Each undeclared identifier is reported only once for each
function it appears in.)
client.cpp: In member function `bool Client::SwapItem(MoveItem_Struct*)':
client.cpp:3467: warning: comparison between signed and unsigned integer
expressions
client.cpp:3616: warning: comparison between signed and unsigned integer
expressions
client.cpp: In member function `uint16 Client::GetAA(unsigned char)':
client.cpp:3896: warning: comparison is always true due to limited range of
data type
client.cpp: In member function `int16 Client::FindItem(unsigned int)':
client.cpp:3904: warning: unused variable `int16 charges'
make: *** [client.o] Error 1
|

01-08-2004, 10:11 AM
|
Sarnak
|
|
Join Date: Oct 2003
Posts: 64
|
|
i must have missed something the first time..
I did it again, and it works now..

|

01-08-2004, 11:17 AM
|
Fire Beetle
|
|
Join Date: Jan 2004
Posts: 8
|
|
Gangrif, I'm assuming you're using the most recent code from 319Shawn?
|
 |
|
 |

01-08-2004, 12:12 PM
|
Fire Beetle
|
|
Join Date: Jan 2004
Posts: 8
|
|
hmm,
I'm just wondering, are you all referring to the code in the post by Shawn319:
?
Quote:
Posted: 01-01-2004 12:05 AM Post subject:
--------------------------------------------------------------------------------
Latest Dr2 source -> http://Shawn319.eqemulator.net/cvs
No support for this.. report bugs directly to me.
_________________
Shawn319
EQEmu Lead Tester
Win32 Tech Support
World Builder - NPCMOVDB
Host/ServerOP - Shawn319's All-GM Dev Test Server
Host/ServerOP - EQEmu Release Canidate Server #1
ServerOP - EQEmu Beta Server
ServerOP - GuildWars Server
ServerOP - ForeverHacking Server
ServerOP - Krusher's Server
--------------------------
EQEmu Guides
EQEmu FAQ
Great tool for Database Editing -> mySQL-Front (download 2.5)
Last edited by Shawn319 on 01-05-2004 01:57 PM; edited 1 time in total
|
I have gotten the 5.3DR2 original code to compile. I have also gotten the code provided by Myra to compile ( http://www.eqemulator.net/forums/viewtopic.php?t=12162). However, the code in Shawn's CVS does *not* compile for me at all. After fixing the problems in client.o, there are problems w/ zone.o. After whipping up a hackedup fix for it, there are still more errors in other files. I'm pretty sure that its something having to do with me rather than the code.
Has any of you linux people gotten the version I'm talking about to compile? If so, how did you go about doing it?
I'm using Debian and gcc 3.3.
Thanks
Lawrence
|
 |
|
 |

01-08-2004, 01:37 PM
|
Sarnak
|
|
Join Date: Oct 2003
Posts: 64
|
|
Yes, tahts the package i dled. The one you quoted that is.
in a nutshell heres what i did.
dled that rar to a windows box, and extracted it (i dont have a unrar utility on my linux box)
re-compressed it as a zip.
sent it over to the linux box.
unzipped it to ~/eqemu/053dr2/
it created its own directories for zone, world, and the mem lib, along with a few other things.
for world, and the mem lib, i just entered the directory, and typed make.
they compiled with no errors.
for zone, i had a little trouble, eventually what did it was this:
# make clean
# vi client.cpp
ripped out the block that this thread says to replace, and pasted the code from this thread in its place.
edited out the spaces before each line, and replaced them with tabs to retain format.
then i had to edit the makefile.. the first 10 or so lines, i had to remove the 3 spaces before each line fo the makefile to not produce any errors.
then
# make
it compiled.
|

01-08-2004, 05:44 PM
|
Fire Beetle
|
|
Join Date: Jan 2004
Posts: 8
|
|
Ahh, something is probably wrong w/ my unraring program. Thanks for the help!
|

01-08-2004, 05:56 PM
|
Fire Beetle
|
|
Join Date: Jan 2004
Posts: 8
|
|
Sorry for bothering everyone w/ my stupidity. Thanks a lot Gangrif!
|

01-09-2004, 01:04 AM
|
Sarnak
|
|
Join Date: Oct 2003
Posts: 64
|
|
dont thank me until it works!
It worked for me, that doesnt mean itll work for you.
you're welcome anyway.
|

01-09-2004, 07:53 AM
|
Fire Beetle
|
|
Join Date: Jan 2004
Posts: 8
|
|
Well,
it compiles, it runs, people see my server-name. However, no one can log on, as it gives them a 1017 error. Still beyond me why that is.
|

01-09-2004, 09:29 AM
|
Sarnak
|
|
Join Date: Oct 2003
Posts: 64
|
|
1017.... 1017...... lemme remember what that is.
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -4. The time now is 07:18 PM.
|
|
 |
|
 |
|
|
|
 |
|
 |
|
 |