huikau / logstalgia

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

FTBFS #52

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Failed To Build From Source on Ubuntu 12.04 x64

What steps will reproduce the problem?
1. git clone https://github.com/acaudwell/Logstalgia.git
2. sudo apt-get install libsdl1.2-dev libsdl-image1.2-dev libpcre3-dev 
libfreetype6-dev libglew-dev libglm-dev libboost-dev libpng12-dev
3. ./autogen.sh
4. ./configure && make

What is the expected output? What do you see instead?
matthew@0xB1uE7:~/public_html/Logstalgia$ LC_ALL=C ./configure && LC_ALL=C make
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for X... libraries , headers 
checking for a sed that does not truncate output... /bin/sed
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking how to run the C preprocessor... gcc -E
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/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 whether we are using the Microsoft C compiler... no
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking for GL/gl.h... yes
checking for OpenGL/gl.h... no
checking for OpenGL library... -lGL
checking for GL/glu.h... yes
checking for OpenGL/glu.h... no
checking for OpenGL Utility library... -lGLU
checking for varargs GLU tesselator callback function type... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for FT2... yes
checking for PCRE... yes
checking for GLEW... yes
checking for SDL... yes
checking for PNG... yes
checking for IMG_LoadPNG_RW... yes
checking for IMG_LoadJPG_RW... yes
checking for boostlib >= 1.46... yes
checking glm/glm.hpp usability... yes
checking glm/glm.hpp presence... yes
checking for glm/glm.hpp... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
g++ -DPACKAGE_NAME=\"Logstalgia\" -DPACKAGE_TARNAME=\"logstalgia\" 
-DPACKAGE_VERSION=\"1.0.5\" -DPACKAGE_STRING=\"Logstalgia\ 1.0.5\" 
-DPACKAGE_BUGREPORT=\"acaudwell@gmail.com\" -DPACKAGE_URL=\"\" 
-DPACKAGE=\"logstalgia\" -DVERSION=\"1.0.5\" -DHAVE_PTHREAD=1 -DSTDC_HEADERS=1 
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 
-DHAVE_UNISTD_H=1 -DHAVE_GL_GL_H=1 -DHAVE_GL_GLU_H=1 -DHAVE_IMG_LOADPNG_RW=1 
-DHAVE_IMG_LOADJPG_RW=1 -DHAVE_BOOST=/\*\*/ -I.  
-DSDLAPP_RESOURCE_DIR=\"/usr/local/share/logstalgia\"  -DGLM_SWIZZLE  -pthread 
-pthread -I/usr/include/freetype2     -I/usr/include/GL   -D_GNU_SOURCE=1 
-D_REENTRANT -I/usr/include/SDL   -I/usr/include/libpng12   -I/usr/include 
-std=gnu++0x -Wall -Wno-sign-compare -Wno-reorder -Wno-unused-but-set-variable 
-Wno-unused-variable -g -O2 -pthread -pthread -MT src/logstalgia-ncsa.o -MD -MP 
-MF src/.deps/logstalgia-ncsa.Tpo -c -o src/logstalgia-ncsa.o `test -f 
'src/ncsa.cpp' || echo './'`src/ncsa.cpp
In file included from src/core/shader.hh:29:0,
                 from src/core/shader.h:31,
                 from src/core/display.h:34,
                 from src/core/sdlapp.h:41,
                 from src/logentry.h:27,
                 from src/ncsa.h:21,
                 from src/ncsa.cpp:18:
src/core/resource.h:79:15: error: expected ';' at end of member declaration
src/core/resource.h:79:15: error: expected ')' before ',' token
In file included from src/core/shader.h:31:0,
                 from src/core/display.h:34,
                 from src/core/sdlapp.h:41,
                 from src/logentry.h:27,
                 from src/ncsa.h:21,
                 from src/ncsa.cpp:18:
src/core/shader.hh:79:13: error: expected ';' at end of member declaration
src/core/shader.hh:79:13: error: expected ')' before ',' token
In file included from src/core/display.h:37:0,
                 from src/core/sdlapp.h:41,
                 from src/logentry.h:27,
                 from src/ncsa.h:21,
                 from src/ncsa.cpp:18:
src/core/texture.h:88:26: error: expected ';' at end of member declaration
src/core/texture.h:88:26: error: expected ')' before ',' token
In file included from src/core/display.h:38:0,
                 from src/core/sdlapp.h:41,
                 from src/logentry.h:27,
                 from src/ncsa.h:21,
                 from src/ncsa.cpp:18:
src/core/fxfont.h:252:12: error: 'glm::Y' is not a type
src/core/fxfont.h:252:12: error: 'glm::X' is not a type
src/core/fxfont.h:252:12: error: 'glm::W' is not a type
src/core/fxfont.h:252:12: error: 'glm::Z' is not a type
src/core/fxfont.h:252:58: error: default arguments are only permitted for 
function parameters
src/core/fxfont.h:252:62: error: 'swizzle' declared as function returning a 
function
make: *** [src/logstalgia-ncsa.o] Error 1

What version of the product are you using? On what operating system?
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 12.04.2 LTS
Release:    12.04
Codename:   precise
$ uname -a
Linux 0xB1uE7 3.2.0-47-generic #72-Ubuntu SMP Mon Jun 3 17:53:49 UTC 2013 
x86_64 x86_64 x86_64 GNU/Linux
$ LC_ALL=C gcc --version
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ git log|head
commit 866ec9242ae96579f06fecff80b16f3ed24d83f4
Author: Andrew Caudwell <acaudwell@gmail.com>
Date:   Mon Jun 24 15:57:44 2013 +1200

    Fixed handling of groups to allow more than one group again...

Please provide any additional information below.
If you need any other info, please let me know. :-)

Original issue reported on code.google.com by bluetraveler on 24 Jun 2013 at 11:58

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
It's not clear to me at all why it would fail on those 'grab' method 
declarations. Also, the GLM swizzle errors are a bit unusual, and I don't see 
how they correspond to that line number.

Can you check the sub module is up to date?

Can you check what version of GLM is installed?

What does 'g++ -v' give you?

Original comment by acaudw...@gmail.com on 25 Jun 2013 at 2:11

GoogleCodeExporter commented 9 years ago
Wow such a fast response time! Impressive!

I saw the 'autogen.sh' updated sub modules.

$ ./autogen.sh 
autoreconf ran successfully.
Initializing submodules...
Submodule 'src/core' () registered for path 'src/core'
Updating submodules...
Run './configure && make' to continue.

For other info,
Ok here it goes.

$ dpkg -la|grep glm
ii  libglm-dev                                                       0.9.2.7-1  
                                  C++ library for OpenGL GLSL type-based 
mathematics
$ LC_ALL=C apt-cache policy libglm-dev
libglm-dev:
  Installed: 0.9.2.7-1
  Candidate: 0.9.2.7-1
  Version table:
 *** 0.9.2.7-1 0
        500 http://ftp.ubuntu-tw.org/mirror/ubuntu/ precise/universe amd64 Packages
        500 http://free.nchc.org.tw/ubuntu/ precise/universe amd64 Packages
        100 /var/lib/dpkg/status
$ LC_ALL=C g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 
4.6.3-1ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs 
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr 
--program-suffix=-4.6 --enable-shared --enable-linker-build-id 
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext 
--enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu 
--enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object 
--enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i686 
--with-tune=generic --enable-checking=release --build=x86_64-linux-gnu 
--host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) 

Original comment by bluetraveler on 25 Jun 2013 at 2:13

GoogleCodeExporter commented 9 years ago
It might be that version of GLM. 0.9.3 changed how swizzles were implemented.

If you want you could try installing a libglm-dev from a newer Ubuntu. It's 
only headers so it shouldn't break anything, much.

What happens if you build Gource 0.40? Same issues I imagine?

Original comment by acaudw...@gmail.com on 25 Jun 2013 at 3:46

GoogleCodeExporter commented 9 years ago
I've test Gource both 0.40 and github version, they both get compiled 
successfully.

Original comment by bluetraveler on 25 Jun 2013 at 1:19

Attachments:

GoogleCodeExporter commented 9 years ago
Have been wondering what is special about the method name 'grab' causing 
problems ... just realized 'grab' is a swizzle of 'rgba' :) Looks like its a 
problem with GLM 0.9.2 swizzles.

Gource doesn't enable swizzles currently (-DGLM_SWIZZLE) so that explains why 
that works.

I only found 2 cases of actually using swizzles in the Logstalgia code, so I 
have replaced them, and removed the GLM_SWIZZLE flag. 

Should work now hopefully.

Original comment by acaudw...@gmail.com on 26 Jun 2013 at 1:54

GoogleCodeExporter commented 9 years ago
Cool. It built successfuly and works perfectly now!
Amazing for the quick fix.

Original comment by bluetraveler on 26 Jun 2013 at 4:18

GoogleCodeExporter commented 9 years ago

Original comment by acaudw...@gmail.com on 31 Oct 2014 at 12:27