EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::Linux Servers (https://www.eqemulator.org/forums/forumdisplay.php?f=588)
-   -   Ubuntu 'make' problem (https://www.eqemulator.org/forums/showthread.php?t=30822)

FatalIll 03-15-2010 06:45 PM

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.

orkim 05-06-2010 07:41 PM

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

-ork

gaeorn 05-07-2010 01:49 PM

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"



All times are GMT -4. The time now is 06:10 PM.

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