[go: up one dir, main page]

Menu

#600 Couple more build issues on FreeBSD

SVN
closed-accepted
Klauss++
None
5
2014-08-21
2011-09-25
Anonymous
No

Noticed a couple more FreeBSD related issues when trying to build.

#1
For FreeBSD, I was unable to configure (cmake) with any references to DL_LIB existing in the CMakeLists.txt file.
After removing these, game builds and runs fine.
NOTE: Also commented out the vegaserver related stuff to get past an error during config but I don't believe
this is FreeBSD specific?

#2
vegastrike/src/cmd/basecomputer.cpp:3119
change:

#if defined (__FREEBSD__) || defined (__APPLE__)
static int nodirs( struct dirent *entry )
#else
static int nodirs( const struct dirent * entry )
#endif

to:

#if defined (__APPLE__)
static int nodirs( struct dirent *entry )
#else
static int nodirs( const struct dirent * entry )
#endif

#3
vegastrike/src/cmd/basecomputer.cpp:3119
change:

#if (defined (_WIN32) && !defined (__CYGWIN__ ) ) || (defined (__GLIBC_MINOR__) && __GLIBC_MINOR__ >= 10) || defined(__HAIKU__)
typedef int (*scancompare)( const struct dirent **v1, const struct dirent **v2 );
#else
typedef int (*scancompare)( const void *v1, const void *v2 );
#endif

to:

#if (defined __FREEBSD__) || (defined (_WIN32) && !defined (__CYGWIN__ ) ) || (defined (__GLIBC_MINOR__) && __GLIBC_MINOR__ >= 10) || defined(__HAIKU__)
typedef int (*scancompare)( const struct dirent **v1, const struct dirent **v2 );
#else
typedef int (*scancompare)( const void *v1, const void *v2 );
#endif

Great game and glad to see this game able to run on FreeBSD, keep up the great work guys!
-segfault-

Discussion

  • Pheonix Rising

    Pheonix Rising - 2011-09-30

    thanks for the bug reports and fixes :) Not sure if klauss has seen this yet or made the changes yet so I will leave this for him while I hunt down more data bugs

     
  • Pheonix Rising

    Pheonix Rising - 2011-09-30
    • milestone: --> SVN
    • assigned_to: nobody --> klaussfreire
     
  • Klauss++

    Klauss++ - 2011-09-30
    • status: open --> closed-accepted
     
  • Klauss++

    Klauss++ - 2011-09-30

    Yep, I did.
    I thought I had closed this one... weird...

     
  • segfault

    segfault - 2011-10-01

    No problem, thanks for the prompt fixes. Will do some more testing intermittently as I have time to do so.

     

Anonymous
Anonymous

Add attachments
Cancel