Back to the Vavoom Forum Archives


Forum

[Not a bug] Compile problems in Linux

Mon, 28 Jan 2002 09:55:44

James_Paige

I am having trouble compiling vavoom in Linux (Debian potato)<br><br>I am using GNU Make version 3.79.1 and gcc version 2.95.2<br><br>I have followed the instructions in docs/vavoom.txt but I get the following error immediately when I run make<br><br><br><br>[root:/usr/local/src/vavoom]make<br>gcc -c -W -Wall -mpentiumpro -ffast-math -O3 -fomit-frame-pointer -o obj/cd_linux.o source/cd_linux.cpp<br>In file included from /usr/lib/gcc-lib/i386-linux/2.95.2/../../../../include/g++-3/iostream.h:31,<br>                 from source/gamedefs.h:42,<br>                 from source/cd_linux.cpp:37:<br>/usr/lib/gcc-lib/i386-linux/2.95.2/../../../../include/g++-3/streambuf.h: In method `struct streampos streambuf::pubseekoff(long long int, ios::seek_dir, int = 3)':<br>/usr/lib/gcc-lib/i386-linux/2.95.2/../../../../include/g++-3/streambuf.h:362: conversion from `__off64_t' to non-scalar type `streampos' requested<br>/usr/lib/gcc-lib/i386-linux/2.95.2/../../../../include/g++-3/streambuf.h: In method `struct streampos streambuf::pubseekpos(_G_fpos64_t, int = 3)':<br>/usr/lib/gcc-lib/i386-linux/2.95.2/../../../../include/g++-3/streambuf.h:364: `struct streampos' used where a `long long int' was expected<br>/usr/lib/gcc-lib/i386-linux/2.95.2/../../../../include/g++-3/streambuf.h:364: warning: control reaches end of non-void function `streambuf::pubseekpos(_G_fpos64_t, int)'<br>make: *** [obj/cd_linux.o] Error 1<br><br>
Mon, 28 Jan 2002 17:26:19

Janis Legzdinsh

Something is wrong with your C++ distributive. Try to compile another C++ program which uses iostream.
Fri, 01 Feb 2002 15:08:20

James_Paige

Ah, right. Good call. My C++ seems to be hosed. This just happens to be the first C++ program i have tried to install in several weeks.<br><br>I wonder what I have to do to fix this? I have already removed and re-installed my entire gcc, g++, libc-devel and libc++-devel system and it is still doing it.<br><br>Anyway, at least we know it is my problem, not yours.   <!-- s:P --><img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz" /><!-- s:P -->
Fri, 01 Feb 2002 16:43:04

James_Paige

goooovy. I got it working now.<br><br>Incompatability between the header files for g++ 2.95.2 and glibc-2.2<br><br>I found a patch for it at <!-- m --><a class="postlink" href="http://www.gnu.org/software/libc/FAQ.html#s-2.34">http://www.gnu.org/software/libc/FAQ.html#s-2.34</a><!-- m --><br><br>Everybody knows to RTFM, sometmes its just a question of *which* manual!<br><br>niiiiiice program. I always dreamed of playing Hexen with mouse-look

Back to the Vavoom Forum Archives