mettli / guichan

Automatically exported from code.google.com/p/guichan
Other
0 stars 0 forks source link

Guichan does not compile under OpenBSD. #58

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. load the openbsd port i have attached(it should be extract in
/usr/ports/graphics/guichan or /usr/ports/mystuff/guichan.
More information on the openbsd port system in general can be found @
http://www.openbsd.org/ports.html.
2. run sudo make 
3.

What is the expected behavior? What happens instead?
Build choke on button.cpp.

What version of the product are you using? On what operating system? Which
back-end (SDL/Allegro/OpenGL/other)?

I am using guichan version  0.8.1 with all the back-end except OpenGL disabled.

Please provide any additional information below.

The build is choking on:
gmake[2]: Entering directory
`/usr/obj/ports/guichan-0.8.1/guichan-0.8.1/src/wid
gets'
/usr/local/bin/libtool  --tag=CXX   --mode=compile c++ -DHAVE_CONFIG_H -I.
-I../
../include -I../../include  -I/usr/local/include -I/usr/X11R6/include  -O2
-pipe
 -Wall -Wno-unused -DGUICHAN_BUILD -MT button.lo -MD -MP -MF
.deps/button.Tpo -c
 -o button.lo button.cpp
 c++ -DHAVE_CONFIG_H -I. -I../../include -I../../include
-I/usr/local/include -I
/usr/X11R6/include -O2 -pipe -Wall -Wno-unused -DGUICHAN_BUILD -MT
button.lo -MD
 -MP -MF .deps/button.Tpo -c button.cpp  -fPIC -DPIC -o .libs/button.o
In file included from ../../include/guichan/widgets/button.hpp:47,
                 from button.cpp:48:
/usr/include/g++/string:45:28: bits/c++config.h: No such file or directory
In file included from /usr/include/g++/string:46,
                 from ../../include/guichan/widgets/button.hpp:47,
                 from button.cpp:48:
/usr/include/g++/bits/stringfwd.h:44:28: bits/c++config.h: No such file or
direc
tory
In file included from /usr/include/g++/bits/char_traits.h:46,
                 from /usr/include/g++/string:47,
                 from ../../include/guichan/widgets/button.hpp:47,
                 from button.cpp:48:
/usr/include/g++/bits/fpos.h:44:24: bits/c++io.h: No such file or directory
In file included from /usr/include/g++/bits/fpos.h:45,
                 from /usr/include/g++/bits/char_traits.h:46,
                 from /usr/include/g++/string:47,
                 from ../../include/guichan/widgets/button.hpp:47,
                 from button.cpp:48:
/usr/include/g++/cwchar:49:28: bits/c++config.h: No such file or directory
In file included from /usr/include/g++/bits/fpos.h:45,
                 from /usr/include/g++/bits/char_traits.h:46,
                 from                 from button.cpp:48:
/usr/include/g++/cwchar:65: error: conflicting types for `typedef struct 
   mbstate_t mbstate_t'
/usr/include/stddef.h:64: error: previous declaration as `typedef union 
   __mbstate_t mbstate_t'
In file included from /usr/include/g++/bits/char_traits.h:46,
                 from /usr/include/g++/string:47,
                 from ../../include/guichan/widgets/button.hpp:47,
                 from button.cpp:48:
/usr/include/g++/bits/fpos.h:63: error: 'streamoff' is used as a type, but is 
   not defined as a type.
/usr/include/g++/bits/fpos.h:77: error: syntax error before `__off'
/usr/include/g++/bits/fpos.h:78: error: missing ';' before right brace
/usr/include/g++/bits/fpos.h:80: error: semicolon missing after declaration of 
   `std::fpos<_StateT>'
/usr/include/g++/bits/fpos.h: In constructor `std::fpos<_StateT>::fpos()':
/usr/include/g++/bits/fpos.h:75: error: class `std::fpos<_StateT>' does not 
   have any field named `_M_off'
/usr/include/g++/bits/fpos.h: At global scope:
/usr/include/g++/bits/fpos.h:80: error: syntax error before `(' token
/usr/include/g++/bits/fpos.h:80: error: ISO C++ forbids defining types within 
   return type
/usr/include/g++/bits/fpos.h:80: error: non-member function
`std::fpos<_StateT> 
   std::<invalid operator>()' cannot have `const' method qualifier
/usr/include/g++/bits/fpos.h:80: error: semicolon missing after declaration of 
   `class std::fpos<_StateT>'
/usr/include/g++/bits/fpos.h:82: error: syntax error before `&' token
In file included from /usr/include/g++/bits/char_traits.h:46,
                 from /usr/include/g++/string:47,
                 from ../../include/guichan/widgets/button.hpp:47,
                 from button.cpp:48:
/usr/include/g++/bits/fpos.h:39:1: unterminated #ifndef
In file included from /usr/include/g++/string:47,
                 from ../../include/guichan/widgets/button.hpp:47,
                 from button.cpp:48:
/usr/include/g++/bits/char_traits.h:40:1: unterminated #ifndef
In file included from ../../include/guichan/widgets/button.hpp:47,
                 from button.cpp:48:
/usr/include/g++/string:40:1: unterminated #ifndef
In file included from button.cpp:48:
../../include/guichan/widgets/button.hpp:44:1: unterminated #ifndef
gmake[2]: *** [button.lo] Error 1
gmake[2]: Leaving directory
`/usr/obj/ports/guichan-0.8.1/guichan-0.8.1/src/widg
ets'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/obj/ports/guichan-0.8.1/guichan-0.8.1/src'
gmake: *** [all-recursive] Error 1
*** Error code 2

Any help fixing this issue is highly apreciated.
I can be contacted directly at laurent (A) humppa (.) nl

Original issue reported on code.google.com by laurent....@gmail.com on 21 Jul 2008 at 8:47

Attachments:

GoogleCodeExporter commented 9 years ago
The compiler errors are not from Guichan but from your C++ library. What 
compiler are
you using?

Original comment by olof.nae...@gmail.com on 22 Jul 2008 at 8:02

GoogleCodeExporter commented 9 years ago
i am using the default gcc that comes with i386:

$ gcc -v 
Reading specs from /usr/lib/gcc-lib/i386-unknown-openbsd4.4/3.3.5/specs
Configured with: 
Thread model: single
gcc version 3.3.5 (propolice)

I did not find a specific required version. Is there anything specific i should 
be
looking at ?

Kind regards, Laurent

Original comment by laurent....@gmail.com on 23 Jul 2008 at 9:35

GoogleCodeExporter commented 9 years ago
As the errors seem to come from your C++ library, try to compile something else 
that
uses STL and to see if you have a healthy C++ environment. Button is the first 
file
compiled, so if there are errors in your C++ library, then they'll show 
themselves
when compiling button.

Original comment by olof.nae...@gmail.com on 24 Jul 2008 at 2:25

GoogleCodeExporter commented 9 years ago
Hellom

Please ignore this bug as it turned out i badly fsckedup my toolchain.
A new port has been created and is going to be tested soon. So far i can only 
say
that guichan compiles on sparc64 cleanly.

Kind regards, Laurent

Original comment by laurent....@gmail.com on 25 Jul 2008 at 7:10

GoogleCodeExporter commented 9 years ago

Original comment by olof.nae...@gmail.com on 25 Jul 2008 at 8:50