Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Support > Archive::Linux Servers

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

Reply
 
Thread Tools Display Modes
  #1  
Old 01-03-2004, 02:03 PM
r2d2atemyhomework
Fire Beetle
 
Join Date: Dec 2003
Posts: 10
Default 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;
Reply With Quote
  #2  
Old 01-03-2004, 02:06 PM
r2d2atemyhomework
Fire Beetle
 
Join Date: Dec 2003
Posts: 10
Default

I should also mention I'm using gcc 3.2.2, in case this a compiler version issue.
Reply With Quote
  #3  
Old 01-07-2004, 10:28 PM
Avsen
Fire Beetle
 
Join Date: Jan 2004
Posts: 8
Default

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
Reply With Quote
  #4  
Old 01-07-2004, 10:45 PM
Avsen
Fire Beetle
 
Join Date: Jan 2004
Posts: 8
Default

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
Reply With Quote
  #5  
Old 01-08-2004, 12:15 AM
kathgar
Discordant
 
Join Date: May 2002
Posts: 434
Default

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.
__________________
++[>++++++<-]>[<++++++>-]<.>++++[>+++++<-]>[<
+++++>-]<+.+++++++..+++.>>+++++[<++++++>-]<+
+.<<+++++++++++++++.>.+++.------.--------.>+.
Reply With Quote
  #6  
Old 01-08-2004, 08:57 AM
Gangrif
Sarnak
 
Join Date: Oct 2003
Posts: 64
Default

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
Reply With Quote
  #7  
Old 01-08-2004, 10:11 AM
Gangrif
Sarnak
 
Join Date: Oct 2003
Posts: 64
Default

i must have missed something the first time..
I did it again, and it works now..

Reply With Quote
  #8  
Old 01-08-2004, 11:17 AM
Avsen
Fire Beetle
 
Join Date: Jan 2004
Posts: 8
Default

Gangrif, I'm assuming you're using the most recent code from 319Shawn?
Reply With Quote
  #9  
Old 01-08-2004, 12:12 PM
Avsen
Fire Beetle
 
Join Date: Jan 2004
Posts: 8
Default

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
Reply With Quote
  #10  
Old 01-08-2004, 01:37 PM
Gangrif
Sarnak
 
Join Date: Oct 2003
Posts: 64
Default

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.
Reply With Quote
  #11  
Old 01-08-2004, 05:44 PM
Avsen
Fire Beetle
 
Join Date: Jan 2004
Posts: 8
Default

Ahh, something is probably wrong w/ my unraring program. Thanks for the help!
Reply With Quote
  #12  
Old 01-08-2004, 05:56 PM
Avsen
Fire Beetle
 
Join Date: Jan 2004
Posts: 8
Default

Sorry for bothering everyone w/ my stupidity. Thanks a lot Gangrif!
Reply With Quote
  #13  
Old 01-09-2004, 01:04 AM
Gangrif
Sarnak
 
Join Date: Oct 2003
Posts: 64
Default

dont thank me until it works!

It worked for me, that doesnt mean itll work for you.

you're welcome anyway.
Reply With Quote
  #14  
Old 01-09-2004, 07:53 AM
Avsen
Fire Beetle
 
Join Date: Jan 2004
Posts: 8
Default

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.
Reply With Quote
  #15  
Old 01-09-2004, 09:29 AM
Gangrif
Sarnak
 
Join Date: Oct 2003
Posts: 64
Default

1017.... 1017...... lemme remember what that is.
Reply With Quote
Reply


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 On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 01:33 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3