New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compiling on Freebsd 8...9 64bit #72

Closed
cmangos-bot opened this Issue Mar 28, 2013 · 7 comments

Comments

Projects
None yet
3 participants
@cmangos-bot

cmangos-bot commented Mar 28, 2013

Created by @metacreo on 2013-02-16 03:54:21


[ 5%] Building CXX object dep/src/g3dlite/CMakeFiles/g3dlite.dir/Cylinder.cpp.o
[ 5%] Building CXX object dep/src/g3dlite/CMakeFiles/g3dlite.dir/FileSystem.cpp.o
/home/wow/mangos/dep/src/g3dlite/FileSystem.cpp: In member function 'G3D::int64 G3D::FileSystem::_size(const std::string&)':
/home/wow/mangos/dep/src/g3dlite/FileSystem.cpp:525: error: aggregate 'G3D::stat64 st' has incomplete type and cannot be defined
/home/wow/mangos/dep/src/g3dlite/FileSystem.cpp:526: error: invalid use of incomplete type 'struct G3D::stat64'
/home/wow/mangos/dep/src/g3dlite/FileSystem.cpp:525: error: forward declaration of 'struct G3D::stat64'
*** Error code 1

Stop in /usr/home/wow/mangos/build.
*** Error code 1

Stop in /usr/home/wow/mangos/build.
*** Error code 1

Stop in /usr/home/wow/mangos/build.
%ee /home/wow/mangos/dep/src/g3dlite/FileSystem.cpp

so....

@cmangos-bot

This comment has been minimized.

Show comment
Hide comment
@cmangos-bot

cmangos-bot Mar 28, 2013

Comment by @metacreo on 2013-02-16 04:07:37


не забываем про старый добрый `nix

cmangos-bot commented Mar 28, 2013

Comment by @metacreo on 2013-02-16 04:07:37


не забываем про старый добрый `nix

@cmangos-bot

This comment has been minimized.

Show comment
Hide comment
@cmangos-bot

cmangos-bot Mar 28, 2013

Comment by @DasBlub on 2013-03-04 01:34:05


i just noticed this issue here: #123
it seems to be the same. could you try the patch which was posted there?

sorry, i don't have access to a FreeBSD system. i tried to set one up in a VM, but so far i had no time to finish it (also, i seemed to have some problems with the ports, though portsnap worked fine =/)

cmangos-bot commented Mar 28, 2013

Comment by @DasBlub on 2013-03-04 01:34:05


i just noticed this issue here: #123
it seems to be the same. could you try the patch which was posted there?

sorry, i don't have access to a FreeBSD system. i tried to set one up in a VM, but so far i had no time to finish it (also, i seemed to have some problems with the ports, though portsnap worked fine =/)

@cmangos-bot

This comment has been minimized.

Show comment
Hide comment
@cmangos-bot

cmangos-bot Mar 28, 2013

Comment by @Morenn on 2013-03-04 03:56:31


Try this

diff --git a/dep/src/g3dlite/FileSystem.cpp b/dep/src/g3dlite/FileSystem.cpp
index e51098a..cca3744 100644
--- a/dep/src/g3dlite/FileSystem.cpp
+++ b/dep/src/g3dlite/FileSystem.cpp
@@ -27,6 +27,16 @@
 #   include <io.h>

 #define stat64 _stat64
+
+#elif defined(__FreeBSD__)
+#   include <dirent.h>
+#   include <fnmatch.h>
+#   include <unistd.h>
+#   define O_LARGEFILE      0100000
+#   define stat64 stat
+#   define _stat stat
+#   define _getcwd getcwd
+
 #else
 #   include <dirent.h>
 #   include <fnmatch.h>

cmangos-bot commented Mar 28, 2013

Comment by @Morenn on 2013-03-04 03:56:31


Try this

diff --git a/dep/src/g3dlite/FileSystem.cpp b/dep/src/g3dlite/FileSystem.cpp
index e51098a..cca3744 100644
--- a/dep/src/g3dlite/FileSystem.cpp
+++ b/dep/src/g3dlite/FileSystem.cpp
@@ -27,6 +27,16 @@
 #   include <io.h>

 #define stat64 _stat64
+
+#elif defined(__FreeBSD__)
+#   include <dirent.h>
+#   include <fnmatch.h>
+#   include <unistd.h>
+#   define O_LARGEFILE      0100000
+#   define stat64 stat
+#   define _stat stat
+#   define _getcwd getcwd
+
 #else
 #   include <dirent.h>
 #   include <fnmatch.h>
@cmangos-bot

This comment has been minimized.

Show comment
Hide comment
@cmangos-bot

cmangos-bot Mar 28, 2013

Comment by @metacreo on 2013-03-04 09:24:58


yah... this worked... but Im manualy modifed this file

#if defined(__FreeBSD__)
#   include <dirent.h>
#   include <fnmatch.h>
#   include <unistd.h>
#   define O_LARGEFILE      0100000
#   define stat64 stat
#   define _stat stat
#   define _getcwd getcwd
#endif

(edit by schmoo: added code inline)

cmangos-bot commented Mar 28, 2013

Comment by @metacreo on 2013-03-04 09:24:58


yah... this worked... but Im manualy modifed this file

#if defined(__FreeBSD__)
#   include <dirent.h>
#   include <fnmatch.h>
#   include <unistd.h>
#   define O_LARGEFILE      0100000
#   define stat64 stat
#   define _stat stat
#   define _getcwd getcwd
#endif

(edit by schmoo: added code inline)

@cmangos-bot

This comment has been minimized.

Show comment
Hide comment
@cmangos-bot

cmangos-bot Mar 28, 2013

Comment by @metacreo on 2013-03-20 04:31:56


so... its still the same...
add this lines please ...

cmangos-bot commented Mar 28, 2013

Comment by @metacreo on 2013-03-20 04:31:56


so... its still the same...
add this lines please ...

@cmangos-bot

This comment has been minimized.

Show comment
Hide comment
@cmangos-bot

cmangos-bot Mar 28, 2013

Comment by @DasBlub on 2013-03-21 08:50:38


if nobody else w/ commit access will take a look at this i'll do it this weekend.

cmangos-bot commented Mar 28, 2013

Comment by @DasBlub on 2013-03-21 08:50:38


if nobody else w/ commit access will take a look at this i'll do it this weekend.

@cala

This comment has been minimized.

Show comment
Hide comment
@cala

cala Oct 3, 2013

Small bump to @DasBlub (I'm currently reviewing open issues as some are no irrelevant and some can almost be closed) ;)

cala commented Oct 3, 2013

Small bump to @DasBlub (I'm currently reviewing open issues as some are no irrelevant and some can almost be closed) ;)

@cyberium cyberium closed this Apr 1, 2014

cala added a commit to cmangos/mangos-tbc that referenced this issue Jan 11, 2016

Added boost support to cmake
Added experimental support for FreeBSD
Added git 2.x support to genrevision
Made version come from one source, and added it to genrevision output

(FileSystem.cpp change taken from cmangos/issues#72 (comment))

(based on cmangos/mangos-wotlk@4a6a6be)

Signed-off-by: Cala <calaftp@free.fr>

cala added a commit to cmangos/mangos-classic that referenced this issue Jan 23, 2016

Added boost support to cmake
Added experimental support for FreeBSD
Added git 2.x support to genrevision
Made version come from one source, and added it to genrevision output

(FileSystem.cpp change taken from cmangos/issues#72 (comment))

(based on cmangos/mangos-wotlk@4a6a6be)

Signed-off-by: Cala <calaftp@free.fr>

(based on cmangos/mangos-tbc@783ded2)

Signed-off-by: Cala <calaftp@free.fr>

xfurry added a commit to cmangos/mangos-cata that referenced this issue May 21, 2016

Added boost support to cmake Added experimental support for FreeBSD A…
…dded git 2.x support to genrevision Made version come from one source, and added it to genrevision output

(FileSystem.cpp change taken from cmangos/issues#72 (comment))

(based on cmangos/mangos-wotlk@4a6a6be)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment