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 05-11-2003, 08:15 AM
morpheus014
Hill Giant
 
Join Date: Feb 2002
Location: the little voice in the back of your head
Posts: 239
Default Compile Errors - 4.4-1 CVS source - RH9

Hello all, I originally tried compiling 4.3 but as Emusharemem had no makefile etc I gave up on that =/ Anyway, my latest attempt is with the CVS source for 0.4.4-DR1, which is not even getting as far as 4.3 =/ Anyway, here are the errors I get when compiling, and I am pretty new to linux so bear with me =), world compiled to a binary but there were 'Warning:'s along the way but I assume it is okay.

EMuShareMem:
Code:
 EMuShareMem]# make
gcc -g -shared -Wl,-soname,libEMuShareMem.so -o libEMuShareMem.so MMFMutex.o Doors.o Items.o Spells.o NPCTypes.o NPCFactionLists.o MMF.o Loot.o ../common/timer.o ../common/unix.o ../common/EMuShareMem.o -L. -lstdc++ -lm -lz `mysql_config --libs`
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
make: *** [libEMuShareMem.so] Error 1
zone:
Code:
 make
gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wno-deprecated -Wnested-externs -Wcomment -Wcast-align -O -ggdb -march=i686 -pthread -pipe -D_GNU_SOURCE -DINVERSEXY -DFX -DZONE -DDEBUG=1 -DSHAREMEM -DCATCH_CRASH -I/usr/include/mysql -I/usr/mysql/include client_process.cpp -o client_process.o
client_process.cpp:56:20: forage.h: No such file or directory
client_process.cpp: In member function `int Client::HandlePacket(const
   APPLAYER*)':
client_process.cpp:530: warning: assignment to non-pointer type `char' from
   NULL
client_process.cpp:530: warning: argument to non-pointer type `char' from NULL
client_process.cpp:986: warning: comparison is always true due to limited range
   of data type
client_process.cpp:1212: warning: comparison between signed and unsigned
   integer expressions
client_process.cpp:1254: warning: assignment to `int' from `double'
client_process.cpp:1254: warning: argument to `int' from `double'
client_process.cpp:1259: warning: assignment to `int' from `double'
client_process.cpp:1259: warning: argument to `int' from `double'
client_process.cpp:1308: warning: assignment to `int' from `double'
client_process.cpp:1308: warning: argument to `int' from `double'
client_process.cpp:1313: warning: assignment to `int' from `double'
client_process.cpp:1313: warning: argument to `int' from `double'
client_process.cpp:1338: warning: assignment to `int' from `double'
client_process.cpp:1338: warning: argument to `int' from `double'
client_process.cpp:1343: warning: assignment to `int' from `double'
client_process.cpp:1343: warning: argument to `int' from `double'
client_process.cpp:1370: warning: assignment to `int' from `double'
client_process.cpp:1370: warning: argument to `int' from `double'
client_process.cpp:1375: warning: assignment to `int' from `double'
client_process.cpp:1375: warning: argument to `int' from `double'
client_process.cpp:3229: warning: assignment to non-pointer type `char' from
   NULL
client_process.cpp:3229: warning: argument to non-pointer type `char' from NULL
client_process.cpp:3260: warning: assignment to non-pointer type `char' from
   NULL
client_process.cpp:3260: warning: argument to non-pointer type `char' from NULL
client_process.cpp:3261: warning: assignment to non-pointer type `char' from
   NULL
client_process.cpp:3261: warning: argument to non-pointer type `char' from NULL
client_process.cpp:3344: warning: deprecated conversion from string constant to
   `char*'
client_process.cpp:3367: warning: deprecated conversion from string constant to
   `char*'
client_process.cpp:3370: warning: assignment to non-pointer type `char' from
   NULL
client_process.cpp:3370: warning: argument to non-pointer type `char' from NULL
client_process.cpp:3371: warning: assignment to non-pointer type `char' from
   NULL
client_process.cpp:3371: warning: argument to non-pointer type `char' from NULL
client_process.cpp:3698: warning: cast from `const char*' to `char*' discards
   qualifiers from pointer target type
client_process.cpp:4427: warning: passing `double' for argument 1 of `void
   Client::AddMoneyToPP(unsigned int, bool)'
client_process.cpp:4470: warning: passing `double' for argument 1 of `void
   Client::AddMoneyToPP(unsigned int, bool)'
client_process.cpp:4419: warning: unused variable `Item_Struct*item2'
client_process.cpp:5450: `ForageItem' undeclared (first use this function)
client_process.cpp:5450: (Each undeclared identifier is reported only once for
   each function it appears in.)
client_process.cpp:5636: warning: comparison between signed and unsigned
   integer expressions
client_process.cpp: In member function `void
   Client::BulkSendMerchantInventory(int, short unsigned int)':
client_process.cpp:6609: warning: comparison between signed and unsigned
   integer expressions
client_process.cpp: In member function `void Client::OPMemorizeSpell(const
   APPLAYER*)':
client_process.cpp:6769: warning: comparison between signed and unsigned
   integer expressions
make: *** [client_process.o] Error 1
any ideas?
__________________
Please remain seated while the room is in motion
Reply With Quote
  #2  
Old 05-11-2003, 08:39 AM
Trumpcard
Demi-God
 
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
Default

client_process.cpp:56:20: forage.h: No such file or directory

Are you sure you have all the files?
__________________
Quitters never win, and winners never quit, but those who never win and never quit are idiots.
Reply With Quote
  #3  
Old 05-11-2003, 08:53 AM
fnemo's Avatar
fnemo
Discordant
 
Join Date: Dec 2002
Posts: 354
Default

about the first error, install mysql source
about the other, lack of file for the error and dont worry about the warnings.
__________________
Nemo
Administrator and coder for the World Alkora Server
Reply With Quote
  #4  
Old 05-12-2003, 06:47 AM
morpheus014
Hill Giant
 
Join Date: Feb 2002
Location: the little voice in the back of your head
Posts: 239
Default

wait.. I just realized these arnt the original errors i was getting for some reason i must have been in the wrong directory, because before I was getting errors at the end, such as in EMuShareMem I would get [error] 2, I will try and see whats wrong and repost it with the right problem =/ also, I have not yet gotten a mysql error, and the world binary seems to build fine so Im not sure where that came from...
__________________
Please remain seated while the room is in motion
Reply With Quote
  #5  
Old 05-30-2003, 09:52 AM
Djinii
Fire Beetle
 
Join Date: May 2003
Posts: 3
Default EMuShareMem Complile error

I'm getting the same kind of error...

i have just reinstalled MySql 4.1 on RH9 including the Dev libraries and client rpms. The libraries seem to be in the proper directories. Anyone have any suggestions less general than reinstall mysql?
Reply With Quote
  #6  
Old 06-03-2003, 05:20 AM
Bigpull
Discordant
 
Join Date: Feb 2003
Posts: 305
Default

It's the `mysql_config --libs` Seems to only work for me =P

as for the rest make sure you have all the files
Reply With Quote
  #7  
Old 06-06-2003, 02:03 AM
Aspirax
Sarnak
 
Join Date: Aug 2002
Posts: 88
Default

Also, MySQL must be installed in /usr/local or it will fail unless you edit the makefile.

Maybe the dev team will move over to autoconf/automake sometime so that those of us who put things in other places won't have to manually edit the makes.

But, it's not a big issue, and obviously enhancing the software is a much cooler thing.
Reply With Quote
  #8  
Old 06-06-2003, 02:54 AM
Trumpcard
Demi-God
 
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
Default

I tried to set up autoconf/automake..

All I have to say is...


'%^&*% THAT'


If someone wants to try it, feel free... It drove me nuts trying to build the template for it. I'm sure it's not that bad for someone thats had some experience with it, but i'm not that guy...lol....
__________________
Quitters never win, and winners never quit, but those who never win and never quit are idiots.
Reply With Quote
  #9  
Old 06-06-2003, 03:04 AM
Aspirax
Sarnak
 
Join Date: Aug 2002
Posts: 88
Default

I agree
Reply With Quote
  #10  
Old 06-11-2003, 12:28 PM
krich
Hill Giant
 
Join Date: May 2003
Location: The Great Northwest
Posts: 150
Default Re: EMuShareMem Complile error

Quote:
Originally Posted by Djinii
I'm getting the same kind of error...

i have just reinstalled MySql 4.1 on RH9 including the Dev libraries and client rpms. The libraries seem to be in the proper directories. Anyone have any suggestions less general than reinstall mysql?
You'll need to install the MySQL Server RPM, the Libs & Header RPM, the Client programs RPM and the Dynamic Client Libs RPM. Looks like you're missing the Dynamic Client Libs RPM.

Regards,

krich
Reply With Quote
  #11  
Old 06-11-2003, 01:33 PM
Acolyte
Sarnak
 
Join Date: May 2002
Location: Oakland, CA
Posts: 83
Default Hey buddy learn how to read?

I wrote this basically because I'm tired of people posting about this, I'm astonished that you all missed the big fucking sticky in this forum, perhaps I should retitle it...

http://forums.eqemu.net/viewtopic.php?t=8348

Acolyte
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 05:31 AM.


 

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