PDA

View Full Version : Ubuntu 'make' problem


FatalIll
03-15-2010, 06:45 PM
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:

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