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

Support::Linux Servers Support forum for Linux EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 08-29-2007, 10:19 AM
sfisque
Hill Giant
 
Join Date: Oct 2006
Posts: 248
Default Linux Build (1035)

there is a bug in the makefile for ./zone in the 1035 (and possibly further back) build.

the culprit is a pair of "hard coded" references to mysql:

these two lines:

Code:
#MYSQL_FLAGS=-I/usr/include/mysql
#MYSQL_LIB=-L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -lc -lnss_files -lnss_dns -lresolv -lc -lnss_files -lnss_dns -lresolv
need to be replaced with:

Code:
MYSQL_FLAGS=$(shell mysql_config --cflags)
MYSQL_LIB=$(shell mysql_config --libs)
=sfisque
Reply With Quote
  #2  
Old 08-30-2007, 09:34 PM
John Adams
Demi-God
 
Join Date: Jul 2006
Posts: 1,552
Default

What's the effect of the bug though? And what flavor of Linux? Fairly certain FC4 has always worked using what is in the makefile. Enlighten me, please!
Reply With Quote
  #3  
Old 08-30-2007, 09:52 PM
cavedude's Avatar
cavedude
The PEQ Dude
 
Join Date: Apr 2003
Location: -
Posts: 1,988
Default

Aye, I can also add that Ubuntu and Gentoo compile with no issue using the default makefile.
Reply With Quote
  #4  
Old 08-30-2007, 10:19 PM
Teppen
Banned
 
Join Date: Jan 2002
Posts: 80
Default

FYI, seems to work just fine on debian, fedora7, and suse10.2.
Reply With Quote
  #5  
Old 08-30-2007, 10:31 PM
sfisque
Hill Giant
 
Join Date: Oct 2006
Posts: 248
Default

you're all kidding right?

any references to mysql are supposed to be via the mysql_config executable, that way if someone say (like me) installs mysql in /usr/local/ rather than in /usr, they wont have to worry about hardcoded makefiles failing.

trust me. the modification should be made.

== sfisque
Reply With Quote
  #6  
Old 08-31-2007, 12:26 PM
gernblan
Discordant
 
Join Date: Aug 2006
Posts: 394
Default

You are right, the mod is a much better solution.

Please post this in the code forum so that it (hopefully) gets committed.
__________________
--
Keelyeh
Owner, ServerOp and Developer
Jest 4 Server
Linux (Jest3 runs on Fedora, our Dev servers usually run on Ubuntu and/or Gentoo), OC-12 Connection = Hella Fast
Reply With Quote
  #7  
Old 09-01-2007, 04:29 AM
gernblan
Discordant
 
Join Date: Aug 2006
Posts: 394
Default

...and yeah, while the default makefile will compile on a lot of distros, as far as I can tell, the suggested change makes it bulletproof.
__________________
--
Keelyeh
Owner, ServerOp and Developer
Jest 4 Server
Linux (Jest3 runs on Fedora, our Dev servers usually run on Ubuntu and/or Gentoo), OC-12 Connection = Hella Fast
Reply With Quote
  #8  
Old 09-01-2007, 06:12 PM
cavedude's Avatar
cavedude
The PEQ Dude
 
Join Date: Apr 2003
Location: -
Posts: 1,988
Default

Agreed. I didn't really pay attention to the original post. I apologize, sfisque.

And as long as we are talking makefile changes, -pg should be removed from zone and eqlaunch. It makes a huge difference with server load.

Last edited by cavedude; 09-02-2007 at 02:14 AM..
Reply With Quote
  #9  
Old 09-02-2007, 01:38 AM
John Adams
Demi-God
 
Join Date: Jul 2006
Posts: 1,552
Default

Quote:
Originally Posted by cavedude View Post
And as long as we are talking makefile changes, -pg should be removed from zone and eqlaunch. It makes a huge difference with server load.
While we're pitching changes, since eqexplorer and eqcollector are virtually useless, we could comment them out of the root Makefile so we don't get errors. As is the azone and spell_explorer. Unless that is just a failure on FC4 to compile those (could be, since I think it's the g++ that is erroring for me?)

But yes, I pull -pg out every build. It gets old, but I agree with that suggestion from eq4me almost a year ago.
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 06:29 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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3