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 03-15-2010, 06:45 PM
FatalIll
Fire Beetle
 
Join Date: Feb 2010
Posts: 6
Default Ubuntu 'make' problem

I've been following the "Yet another Linux Installation Guide" for making a server on Ubuntu and thus far its been pretty good, except when I got this:

Code:
make[1]: Entering directory `/home/eqemu/incoming/PEQ/EQEmuServer/world'
gcc -c [This stuff was stretching the page]  ../common/SocketLib/Mime.cpp -o ../common/SocketLib/Mime.o
../common/SocketLib/Mime.cpp: In member function ‘bool Mime::LoadMimeFile(const std::string&)’:
../common/SocketLib/Mime.cpp:40: error: ‘fopen’ was not declared in this scope
../common/SocketLib/Mime.cpp:42: error: ‘fgets’ was not declared in this scope
../common/SocketLib/Mime.cpp:43: error: ‘feof’ was not declared in this scope
../common/SocketLib/Mime.cpp:61: error: ‘fclose’ was not declared in this scope
make[1]: *** [../common/SocketLib/Mime.o] Error 1
make[1]: Leaving directory `/home/eqemu/incoming/PEQ/EQEmuServer/world'
make: *** [all] Error 2
I dont know exactly what package I need for "fopen" etc. I have a bunch of the PHP5 dev's and builds. I have build-essential and everything...?



EDIT: I found that I had to uncomment stdio.h in Mime.cpp for it to work.
Reply With Quote
  #2  
Old 05-06-2010, 07:41 PM
orkim
Sarnak
 
Join Date: Sep 2008
Location: -
Posts: 31
Default

I second this. Is this a Ubuntu only issue? I have to manually uncomment the include line myself when updating SVN.

-ork
Reply With Quote
  #3  
Old 05-07-2010, 01:49 PM
gaeorn
Developer
 
Join Date: Apr 2009
Location: USA
Posts: 478
Default

try this diff
Code:
Index: SocketLib/Mime.cpp
===================================================================
--- SocketLib/Mime.cpp  (revision 1457)
+++ SocketLib/Mime.cpp  (working copy)
@@ -20,7 +20,7 @@
 along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
-//#include <stdio.h>
+#include <stdio.h>
 
 #include "Parse.h"
 #include "Mime.h"
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 07:53 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