EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Archive::Linux Servers (https://www.eqemulator.org/forums/forumdisplay.php?f=618)
-   -   Compile Errors - 4.4-1 CVS source - RH9 (https://www.eqemulator.org/forums/showthread.php?t=7194)

morpheus014 05-11-2003 08:15 AM

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?

Trumpcard 05-11-2003 08:39 AM

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

Are you sure you have all the files?

fnemo 05-11-2003 08:53 AM

about the first error, install mysql source
about the other, lack of file for the error and dont worry about the warnings.

morpheus014 05-12-2003 06:47 AM

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...

Djinii 05-30-2003 09:52 AM

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?

Bigpull 06-03-2003 05:20 AM

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

as for the rest make sure you have all the files

Aspirax 06-06-2003 02:03 AM

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.

Trumpcard 06-06-2003 02:54 AM

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....

Aspirax 06-06-2003 03:04 AM

I agree :)

krich 06-11-2003 12:28 PM

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

Acolyte 06-11-2003 01:33 PM

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


All times are GMT -4. The time now is 01:38 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.