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

05-11-2003, 08:15 AM
|
Hill Giant
|
|
Join Date: Feb 2002
Location: the little voice in the back of your head
Posts: 239
|
|
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
|
 |
|
 |

05-11-2003, 08:39 AM
|
Demi-God
|
|
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
|
|
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.
|

05-11-2003, 08:53 AM
|
 |
Discordant
|
|
Join Date: Dec 2002
Posts: 354
|
|
about the first error, install mysql source
about the other, lack of file for the error and dont worry about the warnings.
|

05-12-2003, 06:47 AM
|
Hill Giant
|
|
Join Date: Feb 2002
Location: the little voice in the back of your head
Posts: 239
|
|
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
|

05-30-2003, 09:52 AM
|
Fire Beetle
|
|
Join Date: May 2003
Posts: 3
|
|
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?
|

06-03-2003, 05:20 AM
|
Discordant
|
|
Join Date: Feb 2003
Posts: 305
|
|
It's the `mysql_config --libs` Seems to only work for me =P
as for the rest make sure you have all the files
|

06-06-2003, 02:03 AM
|
Sarnak
|
|
Join Date: Aug 2002
Posts: 88
|
|
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.
|

06-06-2003, 02:54 AM
|
Demi-God
|
|
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
|
|
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.
|

06-06-2003, 03:04 AM
|
Sarnak
|
|
Join Date: Aug 2002
Posts: 88
|
|
I agree 
|

06-11-2003, 12:28 PM
|
Hill Giant
|
|
Join Date: May 2003
Location: The Great Northwest
Posts: 150
|
|
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
|

06-11-2003, 01:33 PM
|
Sarnak
|
|
Join Date: May 2002
Location: Oakland, CA
Posts: 83
|
|
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
|
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 01:35 PM.
|
|
 |
|
 |
|
|
|
 |
|
 |
|
 |