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 09-13-2002, 03:05 AM
CoolAcid
Fire Beetle
 
Join Date: Sep 2002
Posts: 2
Default Compile 0.3.6 On linux?

Ok, call me dumb, but I can't find any way to make EQEmu on linux. there seems to be no makefile or anything?

Help?
Reply With Quote
  #2  
Old 09-13-2002, 04:14 AM
kathgar
Discordant
 
Join Date: May 2002
Posts: 434
Default

bash-2.04$ ls -alR * |grep makefile
-rw-rw-rw- 1 fhc fhc 681 Aug 21 20:54 makefile
-rw-rw-rw- 1 fhc fhc 1031 Aug 21 20:56 makefile
bash-2.04$ ls -lah ./zone/makefile
-rw-rw-rw- 1 fhc fhc 1.0k Aug 21 20:56 ./zone/makefile
bash-2.04$ ls -lah ./world/makefile
-rw-rw-rw- 1 fhc fhc 681 Aug 21 20:54 ./world/makefile
bash-2.04$
__________________
++[>++++++<-]>[<++++++>-]<.>++++[>+++++<-]>[<
+++++>-]<+.+++++++..+++.>>+++++[<++++++>-]<+
+.<<+++++++++++++++.>.+++.------.--------.>+.
Reply With Quote
  #3  
Old 09-13-2002, 12:42 PM
CoolAcid
Fire Beetle
 
Join Date: Sep 2002
Posts: 2
Default

Ok, I'm dumb.. Tottaly missed it.. Must be too used to seeing it in root DIR and with 'M' insted of 'm'


My Bad..

Thanks,
Jason
Reply With Quote
  #4  
Old 09-13-2002, 02:07 PM
Trumpcard
Demi-God
 
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
Default

Too long looking at a bash prompt makes you think 'make' and 'Make' are two completely different words...
Reply With Quote
  #5  
Old 09-17-2002, 07:39 AM
matife
Fire Beetle
 
Join Date: Sep 2002
Posts: 4
Default

What flavor and version of Linux have you gotten this to compile on? I maybe be missing some needed library files, so prob just me, just wanted to know if people are using Redhat or Slakware etc.


Thanks.
Reply With Quote
  #6  
Old 09-17-2002, 07:42 AM
Trumpcard
Demi-God
 
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
Default

I compiled earlier versions on RedHat and Gentoo, and never had any problems...

It doesnt require much, pretty much just the mysql libraries...
Reply With Quote
  #7  
Old 09-17-2002, 08:47 AM
matife
Fire Beetle
 
Join Date: Sep 2002
Posts: 4
Default

actually I was missing some pretty standard cpp files LOL


Redhat 7.3 myself
Reply With Quote
  #8  
Old 09-20-2002, 12:37 AM
doksteven
Fire Beetle
 
Join Date: Sep 2002
Posts: 5
Default

I'm having a problem when trying to compile on Redhat 7.2. I'll post a little clip from the error I'm getting when compiling world, if it's too small let me know and I'll post the whole long messy thing when I get home... there's a lot more to this. Most everything is an error related to the database.cpp file.

I'm using mysql 3.23 and gcc 3 if that helps. If you need more system information I'll post whatever you need.


In file included from ../common/database.cpp:36: ../common/database.h:222: type specifier omitted for parameter `MYSQL_RES' ../common/database.h:222: parse error before `*' token ../common/database.h:225: 'MYSQL' is used as a type, but is not defined as a type.
Reply With Quote
  #9  
Old 09-20-2002, 07:46 AM
flipper
Sarnak
 
Join Date: Jan 2002
Location: California
Posts: 94
Default

Issue the following command:
rpm -qa | grep 'sql'

You should see:
mysql-3.23.xxx
mysql-devel-3.23.xxx

Are you missing the development libraries for mysql?

I'm running Gentoo Linux and was able to compile using gcc-2.9 and gcc-3.1, so I don't think your gcc version is an issue.
Reply With Quote
  #10  
Old 09-20-2002, 08:43 AM
Trumpcard
Demi-God
 
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
Default

Good catch. I forgot Redhat packaged the mysql development libraries seperately.
Reply With Quote
  #11  
Old 09-20-2002, 12:02 PM
doksteven
Fire Beetle
 
Join Date: Sep 2002
Posts: 5
Default

installed the sql dev stuff, made it further this time but got another error :(

(fyi doing the rpm -qa | grep 'sql' doesn't return anything yet I installed the server, client, and development packages of sql 3.23 via their rpm's)


[root@dhcp-242-2 world]# make
gcc -c -g -m486 -O3 -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -I/usr/include
/mysql ../common/database.cpp -o ../common/database.o
`-m486' is deprecated. Use `-march=i486' or `-mcpu=i486' instead.
In file included from /usr/local/include/c++/3.2/backward/iostream.h:31,
from ../common/database.cpp:19:
/usr/local/include/c++/3.2/backward/backward_warning.h:32:2: warning: #warning T
his file includes at least one deprecated or antiquated header. Please consider
using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examp
les include substituting the <X> header for the <X.h> header for C++ includes, o
r <sstream> instead of the deprecated header <strstream.h>. To disable this warn
ing use -Wno-deprecated.
In file included from ../common/database.h:39,
from ../common/database.cpp:36:
../zone/message.h:7:3: warning: no newline at end of file
../common/database.cpp: In member function `bool Database::RunQuery(const
char*, unsigned int, char*, MYSQL_RES**, int32*, int32*, bool)':
../common/database.cpp:310: warning: assignment of negative value `-1' to `
unsigned int'
../common/database.cpp:310: warning: argument of negative value `-1' to `
unsigned int'
../common/database.cpp: In member function `bool Database::LoadNPCTypes()':
../common/database.cpp:2014: warning: assignment to `int16' from `double'
../common/database.cpp:2014: warning: argument to `short unsigned int' from `
double'
../common/database.cpp:2995:2: warning: no newline at end of file
gcc -c -g -m486 -O3 -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -I/usr/include/mysql ../common/packet_dump.cpp -o ../common/packet_dump.o
`-m486' is deprecated. Use `-march=i486' or `-mcpu=i486' instead.
In file included from /usr/local/include/c++/3.2/backward/iostream.h:31,
from ../common/packet_dump.cpp:19:
/usr/local/include/c++/3.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
../common/packet_dump.cpp: In function `void DumpPacketAscii(uchar*, unsigned
int, unsigned int, unsigned int)':
../common/packet_dump.cpp:32: default argument given for parameter 3 of `void
DumpPacketAscii(uchar*, unsigned int, unsigned int = 16, unsigned int = 0)'
../common/packet_dump.h:27: after previous specification in `void
DumpPacketAscii(uchar*, unsigned int, unsigned int = 16, unsigned int = 0)'
../common/packet_dump.cpp:32: default argument given for parameter 4 of `void
DumpPacketAscii(uchar*, unsigned int, unsigned int = 16, unsigned int = 0)'
../common/packet_dump.h:27: after previous specification in `void
DumpPacketAscii(uchar*, unsigned int, unsigned int = 16, unsigned int = 0)'
../common/packet_dump.cpp: In function `void DumpPacketHex(uchar*, unsigned
int, unsigned int, unsigned int)':
../common/packet_dump.cpp:61: default argument given for parameter 3 of `void
DumpPacketHex(uchar*, unsigned int, unsigned int = 16, unsigned int = 0)'
../common/packet_dump.h:28: after previous specification in `void
DumpPacketHex(uchar*, unsigned int, unsigned int = 16, unsigned int = 0)'
../common/packet_dump.cpp:61: default argument given for parameter 4 of `void
DumpPacketHex(uchar*, unsigned int, unsigned int = 16, unsigned int = 0)'
../common/packet_dump.h:28: after previous specification in `void
DumpPacketHex(uchar*, unsigned int, unsigned int = 16, unsigned int = 0)'
../common/packet_dump.cpp:190:2: warning: no newline at end of file
make: *** [../common/packet_dump.o] Error 1
[root@dhcp-242-2 world]#
Reply With Quote
  #12  
Old 09-20-2002, 12:18 PM
flipper
Sarnak
 
Join Date: Jan 2002
Location: California
Posts: 94
Default

Hmmm... I'm not using RH, but perhaps
rpm -qa | grep 'SQL'
would work? If you installed via rpms then that command will show it. If it shows nothing, then grab em off your CDROM and install them with
rpm -Uvh mysql-3.x-foo.rom
and
rpm -Uvh mysql-devel-3.x.foo.rpm

Other than that, you'll have to rely on the experts here.
Reply With Quote
  #13  
Old 09-20-2002, 12:39 PM
Trumpcard
Demi-God
 
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
Default

use

grep -i sql

Tells grep to be case insensitive..

Did RH update 7.2 to gcc3.2?
Reply With Quote
  #14  
Old 09-20-2002, 01:40 PM
doksteven
Fire Beetle
 
Join Date: Sep 2002
Posts: 5
Default

Thanks Trumpcard

[root@dhcp-242-2 world]# rpm -qa | grep -i sql
MySQL-3.23.52-1
MySQL-devel-3.23.52-1
MySQL-client-3.23.52-1
[root@dhcp-242-2 world]#


[root@dhcp-242-2 world]# rpm -qa | grep -i gcc
gcc3-3.0.1-3
qt-gcc3-devel-2.3.2-1
libgcc-3.0.1-3
gcc3-c++-3.0.1-3
qt-gcc3-2.3.2-1
[root@dhcp-242-2 world]#



that's what i have installed. here's the new error i'm getting

[root@dhcp-242-2 world]# make
gcc -c -g -m486 -O3 -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -I/usr/include
/mysql ../common/packet_dump.cpp -o ../common/packet_dump.o
`-m486' is deprecated. Use `-march=i486' or `-mcpu=i486' instead.
In file included from /usr/local/include/c++/3.2/backward/iostream.h:31,
from ../common/packet_dump.cpp:19:
/usr/local/include/c++/3.2/backward/backward_warning.h:32:2: warning: #warning T
his file includes at least one deprecated or antiquated header. Please consider
using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examp
les include substituting the <X> header for the <X.h> header for C++ includes, o
r <sstream> instead of the deprecated header <strstream.h>. To disable this warn
ing use -Wno-deprecated.
../common/packet_dump.cpp: In function `void DumpPacketAscii(uchar*, unsigned
int, unsigned int, unsigned int)':
../common/packet_dump.cpp:32: default argument given for parameter 3 of `void
DumpPacketAscii(uchar*, unsigned int, unsigned int = 16, unsigned int = 0)'
../common/packet_dump.h:27: after previous specification in `void
DumpPacketAscii(uchar*, unsigned int, unsigned int = 16, unsigned int = 0)'
../common/packet_dump.cpp:32: default argument given for parameter 4 of `void
DumpPacketAscii(uchar*, unsigned int, unsigned int = 16, unsigned int = 0)'
../common/packet_dump.h:27: after previous specification in `void
DumpPacketAscii(uchar*, unsigned int, unsigned int = 16, unsigned int = 0)'
../common/packet_dump.cpp: In function `void DumpPacketHex(uchar*, unsigned
int, unsigned int, unsigned int)':
../common/packet_dump.cpp:61: default argument given for parameter 3 of `void
DumpPacketHex(uchar*, unsigned int, unsigned int = 16, unsigned int = 0)'
../common/packet_dump.h:28: after previous specification in `void
DumpPacketHex(uchar*, unsigned int, unsigned int = 16, unsigned int = 0)'
../common/packet_dump.cpp:61: default argument given for parameter 4 of `void
DumpPacketHex(uchar*, unsigned int, unsigned int = 16, unsigned int = 0)'
../common/packet_dump.h:28: after previous specification in `void
DumpPacketHex(uchar*, unsigned int, unsigned int = 16, unsigned int = 0)'
../common/packet_dump.cpp:190:2: warning: no newline at end of file
make: *** [../common/packet_dump.o] Error 1
Reply With Quote
  #15  
Old 09-21-2002, 12:36 AM
kathgar
Discordant
 
Join Date: May 2002
Posts: 434
Default

i fixed that on ST, just change the function prototype to not set a default for #ifdef _LINUX_
__________________
++[>++++++<-]>[<++++++>-]<.>++++[>+++++<-]>[<
+++++>-]<+.+++++++..+++.>>+++++[<++++++>-]<+
+.<<+++++++++++++++.>.+++.------.--------.>+.
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 03:34 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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3