Your copy of OpenGL is out of date. If using Mesa, make sure

Trying to build your own version of Vega Strike and having problems? Unix users, paste your config.log here (stderr output alone is not helpful).
Post Reply
lee
Confed Special Operative
Confed Special Operative
Posts: 322
Joined: Sat Aug 21, 2004 2:17 pm

Your copy of OpenGL is out of date. If using Mesa, make sure

Post by lee »

./configure fails with the following message:


Your copy of OpenGL is out of date. If using Mesa, make sure you have version >= 3.2.


The section of config.log that appears to be relevant is below. I´m using:



NVIDIA-Linux-x86-1.0-8756-pkg1.run
freeglut3 2.4.0-5

/usr/lib/libglut.so.3
/usr/lib/libglut.so.3.8.0


What can I do?


PS: I also installed freeglut3-dev, but the problem remains.




checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking OS.h usability... no
checking OS.h presence... no
checking for OS.h... no
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking fenv.h usability... yes
checking fenv.h presence... yes
checking for fenv.h... yes
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking for inttypes.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for memory.h... (cached) yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking values.h usability... yes
checking values.h presence... yes
checking for values.h... yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking wctype.h usability... yes
checking wctype.h presence... yes
checking for wctype.h... yes
checking linux/slab.h usability... yes
checking linux/slab.h presence... yes
checking for linux/slab.h... yes
checking linux/malloc.h usability... no
checking linux/malloc.h presence... no
checking for linux/malloc.h... no
checking for vfscanf... yes
checking for lstat... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for off_t... yes
checking for pid_t... yes
checking for C/C++ restrict keyword... __restrict
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for working volatile... yes
checking for ptrdiff_t... yes
checking whether closedir returns void... no
checking for error_at_line... no
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking whether gcc needs -traditional... no
checking whether lstat dereferences a symlink specified with a trailing slash... no
checking whether lstat accepts an empty string... no
checking whether lstat dereferences a symlink specified with a trailing slash... (cached) no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working memcmp... yes
checking for stdlib.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for unistd.h... (cached) yes
checking for alarm... yes
checking for working mktime... no
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking for sys/socket.h... (cached) yes
| #define HAVE_ISNAN 1
| #define HAVE_ZLIB_H 1
| #define HAVE_SDL_JOYSTICKOPEN 1
| #define HAVE_SDL_MIXER 1
| /* end confdefs.h. */
| /* Define glXGetProcAddressARB to an innocuous variant, in case <limits.h> declares glXGetProcAddressARB.
| For example, HP-UX 11i <limits.h> declares gettimeofday. */
| #define glXGetProcAddressARB innocuous_glXGetProcAddressARB
|
| /* System header to define __stub macros and hopefully few prototypes,
| which can conflict with char glXGetProcAddressARB (); below.
| Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
| <limits.h> exists even on freestanding compilers. */
|
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|
| #undef glXGetProcAddressARB
|
| /* Override any GCC internal prototype to avoid an error.
| Use char because int might match the return type of a GCC
| builtin and then its argument prototype would still apply. */
| #ifdef __cplusplus
| extern "C"
| #endif
| char glXGetProcAddressARB ();
| /* The GNU C library defines this for functions which it implements
| to always fail with ENOSYS. Some functions are actually named
| something starting with __ and the normal name is an alias. */
| #if defined __stub_glXGetProcAddressARB || defined __stub___glXGetProcAddressARB
| choke me
| #endif
|
| int
| main ()
| {
| return glXGetProcAddressARB ();
| ;
| return 0;
| }
configure:12640: result: no
configure:12654: error: Your copy of OpenGL is out of date. If using Mesa, make sure you have version >= 3.2.
Debian testing
NVIDIA-Linux-x86-173.08-pkg1.run
ace123
Lead Network Developer
Lead Network Developer
Posts: 2560
Joined: Sun Jan 12, 2003 9:13 am
Location: Palo Alto CA
Contact:

Post by ace123 »

First, you look like you are missing some lines of config.log, right above the source file you pasted:

If there are errors, this is where it will have all the GCC errors.

Try taking the previous 20 or so lines above the source file, (from the "checking for" all the way up to "failed program was:" lines)
That will tell you the GCC command as well as any errors, which will allow us to diagnose the problem better.

If you are not sure, just attach your *entire* config.log to the post.

It is most likely related to headers, but I am not certain.

You may want to try the nvidia-installer with the "--opengl-headers" option, telling it to install headers.

Probably what happened is that OpenGL libraries are up to date, but headers are not always installed.

Also, there are new NVidia drivers out -- 8762, so use that as an excuse for re-installing your NVidia drvers.

Also, if you have upgraded X or MesaGL since you last installed drivers, X may have overwritten the OpenGL libraries, so you will have to rerun the nvidia-installer for those too.
lee
Confed Special Operative
Confed Special Operative
Posts: 322
Joined: Sat Aug 21, 2004 2:17 pm

Post by lee »

Thanks, problem was that the NVIDIA headers had been replaced by standard headers some time after installing the NVIDIA drivers.
Debian testing
NVIDIA-Linux-x86-173.08-pkg1.run
Post Reply