littleflylongbow / guichan

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

guichan 0.8.2: linkage fails with undefined symbols under Mac OS X 10.5.8 (Intel) #122

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I'm currently in the process of packaging "Unknown Horizons" (former OpenANNO), 
which uses 
the FIFE engine, which again uses guichan. The FIFE developers propose the 
usage of guichan 
0.8.1 or later, but MacPorts (MP) only provides 0.8.0. Since I'm a MP committer 
I thought "hey, 
lets update to 0.8.2" just to find out that this particular MP is not at all 
working. Anyways, I got 
so far that the linkage of libguichan_opengl.la fails with:

/bin/sh ../../libtool --tag=CXX   --mode=link /usr/bin/g++-4.0  -O2 -arch i386 
-Wall -Wno-
unused -DGUICHAN_BUILD -no-undefined -release 0.8.1 -version-info 2:0:1  
-L/opt/local/lib -
framework OpenGL -o libguichan_opengl.la -rpath /opt/local/lib opengl.lo 
openglimage.lo 
openglgraphics.lo  
libtool: link: /usr/bin/g++-4.0 -dynamiclib  -o 
.libs/libguichan_opengl-0.8.1.1.dylib  
.libs/opengl.o .libs/openglimage.o .libs/openglgraphics.o   -L/opt/local/lib 
-framework OpenGL  
-arch i386   -framework OpenGL -install_name  
/opt/local/lib/libguichan_opengl-0.8.1.1.dylib 
-compatibility_version 3 -current_version 3.0 -Wl,-single_module
Undefined symbols:
  "gcn::Graphics::pushClipArea(gcn::Rectangle)", referenced from:
      gcn::OpenGLGraphics::pushClipArea(gcn::Rectangle)     in openglgraphics.o
  "gcn::Graphics::setFont(gcn::Font*)", referenced from:
      vtable for gcn::OpenGLGraphicsin openglgraphics.o
  "typeinfo for gcn::Graphics", referenced from:
      typeinfo for gcn::OpenGLGraphicsin openglgraphics.o
  "gcn::Image::~Image()", referenced from:
      gcn::OpenGLImage::~OpenGLImage()in openglimage.o
      gcn::OpenGLImage::~OpenGLImage()in openglimage.o
      gcn::OpenGLImage::~OpenGLImage()in openglimage.o
      gcn::OpenGLImage::~OpenGLImage()in openglimage.o
      gcn::OpenGLImage::OpenGLImage(unsigned int const*, int, int, bool)in openglimage.o
  "typeinfo for gcn::Image", referenced from:
      typeinfo for gcn::OpenGLImagein openglimage.o
      __ZTIN3gcn5ImageE$non_lazy_ptr in openglgraphics.o
  "gcn::Graphics::popClipArea()", referenced from:
      gcn::OpenGLGraphics::popClipArea()      in openglgraphics.o
  "vtable for gcn::Graphics", referenced from:
      __ZTVN3gcn8GraphicsE$non_lazy_ptr in openglgraphics.o
  "gcn::Rectangle::Rectangle(int, int, int, int)", referenced from:
      gcn::OpenGLGraphics::_beginDraw()      in openglgraphics.o
  "gcn::Color::Color()", referenced from:
      gcn::OpenGLGraphics::OpenGLGraphics()in openglgraphics.o
      gcn::OpenGLGraphics::OpenGLGraphics(int, int)in openglgraphics.o
  "gcn::Graphics::Graphics()", referenced from:
      gcn::OpenGLGraphics::OpenGLGraphics()in openglgraphics.o
      gcn::OpenGLGraphics::OpenGLGraphics(int, int)in openglgraphics.o
  "gcn::Color::Color(int, int, int, int)", referenced from:
      gcn::OpenGLImage::getPixel(int, int)in openglimage.o
  "gcn::Exception::Exception(std::basic_string<char, std::char_traits<char>, std::allocator<char> 
> const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> 
> const&, 
std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, 
unsigned int)", 
referenced from:
      gcn::OpenGLImage::convertToDisplayFormat()      in openglimage.o
      gcn::OpenGLImage::convertToDisplayFormat()      in openglimage.o
      gcn::OpenGLImage::putPixel(int, int, gcn::Color const&)in openglimage.o
      gcn::OpenGLImage::putPixel(int, int, gcn::Color const&)in openglimage.o
      gcn::OpenGLImage::getPixel(int, int)in openglimage.o
      gcn::OpenGLImage::getPixel(int, int)in openglimage.o
      gcn::OpenGLGraphics::fillRectangle(gcn::Rectangle const&)in openglgraphics.o
      gcn::OpenGLGraphics::drawRectangle(gcn::Rectangle const&)in openglgraphics.o
      gcn::OpenGLGraphics::drawLine(int, int, int, int)in openglgraphics.o
      gcn::OpenGLGraphics::drawPoint(int, int)in openglgraphics.o
      gcn::OpenGLGraphics::drawImage(gcn::Image const*, int, int, int, int, int, int)in 
openglgraphics.o
      gcn::OpenGLGraphics::drawImage(gcn::Image const*, int, int, int, int, int, int)in 
openglgraphics.o
  "gcn::Image::Image()", referenced from:
      gcn::OpenGLImage::OpenGLImage(unsigned int, int, int, bool)in openglimage.o
      gcn::OpenGLImage::OpenGLImage(unsigned int const*, int, int, bool)in openglimage.o
  "gcn::Graphics::getCurrentClipArea()", referenced from:
      vtable for gcn::OpenGLGraphicsin openglgraphics.o
  "gcn::Graphics::drawText(std::basic_string<char, std::char_traits<char>, std::allocator<char> > 
const&, int, int, gcn::Graphics::Alignment)", referenced from:
      vtable for gcn::OpenGLGraphicsin openglgraphics.o
  "gcn::Graphics::drawImage(gcn::Image const*, int, int)", referenced from:
      vtable for gcn::OpenGLGraphicsin openglgraphics.o
ld: symbol(s) not found

This was my configure line and environment (most stuff is generic from MP and 
shouldn't be a 
problem):

CFLAGS='-O2 -arch i386' 
CPPFLAGS='-I/opt/local/include' 
CXXFLAGS='-O2 -arch i386' 
MACOSX_DEPLOYMENT_TARGET='10.5' 
CXX='/usr/bin/g++-4.0' 
F90FLAGS='-O2 -m32' 
LDFLAGS='-L/opt/local/lib -framework OpenGL' 
OBJC='/usr/bin/gcc-4.0' 
FCFLAGS='-O2 -m32' 
INSTALL='/usr/bin/install -c' 
OBJCFLAGS='-O2 -arch i386' 
FFLAGS='-O2 -m32' 
CC='/usr/bin/gcc-4.0'

 ./configure --prefix=/opt/local --x-include=/opt/local/include --x-lib=/opt/local/lib'
checking build system type... i386-apple-darwin9.8.0
checking host system type... i386-apple-darwin9.8.0
checking target system type... i386-apple-darwin9.8.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /opt/local/bin/gmkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether /usr/bin/g++-4.0 accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of /usr/bin/g++-4.0... gcc3
checking for gcc... /usr/bin/gcc-4.0
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/gcc-4.0 accepts -g... yes
checking for /usr/bin/gcc-4.0 option to accept ISO C89... none needed
checking dependency style of /usr/bin/gcc-4.0... gcc3
checking for a sed that does not truncate output... /opt/local/bin/gsed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by /usr/bin/gcc-4.0... 
/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld
checking if the linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) is GNU 
ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -p
checking the name lister (/usr/bin/nm -p) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld option to reload 
object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -p output from /usr/bin/gcc-4.0 object... 
ok
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking how to run the C preprocessor... /usr/bin/gcc-4.0 -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 for dlfcn.h... yes
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether /usr/bin/g++-4.0 accepts -g... (cached) yes
checking dependency style of /usr/bin/g++-4.0... (cached) gcc3
checking how to run the C++ preprocessor... /usr/bin/g++-4.0 -E
checking for objdir... .libs
checking if /usr/bin/gcc-4.0 supports -fno-rtti -fno-exceptions... no
checking for /usr/bin/gcc-4.0 option to produce PIC... -fno-common -DPIC
checking if /usr/bin/gcc-4.0 PIC flag -fno-common -DPIC works... yes
checking if /usr/bin/gcc-4.0 static flag -static works... no
checking if /usr/bin/gcc-4.0 supports -c -o file.o... yes
checking if /usr/bin/gcc-4.0 supports -c -o file.o... (cached) yes
checking whether the /usr/bin/gcc-4.0 linker 
(/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) 
supports shared libraries... yes
checking dynamic linker characteristics... darwin9.8.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for ld used by /usr/bin/g++-4.0... 
/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld
checking if the linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) is GNU 
ld... no
checking whether the /usr/bin/g++-4.0 linker 
(/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) 
supports shared libraries... yes
checking for /usr/bin/g++-4.0 option to produce PIC... -fno-common -DPIC
checking if /usr/bin/g++-4.0 PIC flag -fno-common -DPIC works... yes
checking if /usr/bin/g++-4.0 static flag -static works... no
checking if /usr/bin/g++-4.0 supports -c -o file.o... yes
checking if /usr/bin/g++-4.0 supports -c -o file.o... (cached) yes
checking whether the /usr/bin/g++-4.0 linker 
(/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) 
supports shared libraries... yes
checking dynamic linker characteristics... darwin9.8.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether make sets $(MAKE)... (cached) yes
checking for ANSI C header files... (cached) yes
checking GL/gl.h usability... yes
checking GL/gl.h presence... yes
checking for GL/gl.h... yes
checking for glBegin in -lGL... yes
checking SDL/SDL_image.h usability... yes
checking SDL/SDL_image.h presence... yes
checking for SDL/SDL_image.h... yes
checking for IMG_Load in -lSDL_image... yes
checking allegro.h usability... yes
checking allegro.h presence... yes
checking for allegro.h... yes
checking for allegro-config... yes
checking SDL/SDL.h usability... yes
checking SDL/SDL.h presence... yes
checking for SDL/SDL.h... yes
checking for sdl-config... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating guichan-0.8.pc
config.status: creating examples/Makefile
config.status: creating include/Makefile
config.status: creating include/guichan/Makefile
config.status: creating include/guichan/allegro/Makefile
config.status: creating include/guichan/contrib/Makefile
config.status: creating include/guichan/contrib/allegro/Makefile
config.status: creating include/guichan/contrib/opengl/Makefile
config.status: creating include/guichan/contrib/sdl/Makefile
config.status: creating include/guichan/contrib/widgets/Makefile
config.status: creating include/guichan/hge/Makefile
config.status: creating include/guichan/opengl/Makefile
config.status: creating include/guichan/openlayer/Makefile
config.status: creating include/guichan/sdl/Makefile
config.status: creating include/guichan/widgets/Makefile
config.status: creating src/Makefile
config.status: creating src/allegro/Makefile
config.status: creating src/contrib/Makefile
config.status: creating src/contrib/allegro/Makefile
config.status: creating src/contrib/opengl/Makefile
config.status: creating src/contrib/sdl/Makefile
config.status: creating src/contrib/widgets/Makefile
config.status: creating src/hge/Makefile
config.status: creating src/opengl/Makefile
config.status: creating src/opengl/guichan_opengl-0.8.pc
config.status: creating src/openlayer/Makefile
config.status: creating src/sdl/Makefile
config.status: creating src/sdl/guichan_sdl-0.8.pc
config.status: creating src/widgets/Makefile
config.status: creating include/config.hpp
config.status: executing depfiles commands
config.status: executing libtool commands

IMPORTANT! You are about install a BETA version of Guichan
which most likely will lose binary compatibility with the
future stable release. This release should only be used
for testing.

-------------------------------
Guichan ready for compilation!
-------------------------------
* Allegro   = yes
* HGE       = no (Windows specific and cannot be built)
* OpenGL    = yes
* OpenLayer = no (Requires static build and cannot be built)
* SDL       = yes
* SDL Image = yes
--------------------------------

Original issue reported on code.google.com by m...@thomaskeller.biz on 22 Oct 2009 at 11:18

GoogleCodeExporter commented 8 years ago
It would be interesting to know if this is a regression since 0.8.0/1. Could 
you try 
if 0.8.0/1 compiles fine for you?

Original comment by b.lindeijer on 23 Oct 2009 at 8:30

GoogleCodeExporter commented 8 years ago
Judging by the errors it seems that the OpenGL library isn't aware of the 
Guichan
core library at compile time.

Original comment by olof.nae...@gmail.com on 23 Oct 2009 at 9:08

GoogleCodeExporter commented 8 years ago
I just tried out 0.8.1 and things are even worse there. configure doesn't honor 
CXXFLAGS / LDFLAGS for SDL 
detection there (this seemed to have been improved for 0.8.2) and 0.8.1 fails 
when trying to link allegro 
already:

g++ -dynamiclib -single_module  -o .libs/libguichan_allegro-0.8.1.1.0.0.dylib  
.libs/allegro.o 
.libs/allegrofont.o .libs/allegrographics.o .libs/allegroimage.o 
.libs/allegroimageloader.o .libs/allegroinput.o   
-install_name  /opt/local/lib/libguichan_allegro-0.8.1.1.dylib 
-Wl,-compatibility_version -Wl,2 -Wl,-
current_version -Wl,2.0
Undefined symbols:
  "gcn::KeyInput::setNumericPad(bool)", referenced from:
      gcn::AllegroInput::pollKeyInput()      in allegroinput.o
      gcn::AllegroInput::pollKeyInput()      in allegroinput.o
  "typeinfo for gcn::Image", referenced from:
      __ZTIN3gcn5ImageE$non_lazy_ptr in allegrographics.o
      typeinfo for gcn::AllegroImagein allegroimage.o
  "gcn::Key::Key(int)", referenced from:
      gcn::AllegroInput::convertToKey(int, int)in allegroinput.o
      gcn::KeyInput::KeyInput()in allegroinput.o
  "_create_bitmap", referenced from:
      gcn::AllegroImage::convertToDisplayFormat()      in allegroimage.o
  "_geta", referenced from:
      gcn::AllegroImage::getPixel(int, int)in allegroimage.o
  "gcn::Graphics::getCurrentClipArea()", referenced from:
      vtable for gcn::AllegroGraphicsin allegrographics.o
  "gcn::KeyInput::isAltPressed() const", referenced from:
      gcn::AllegroInput::pollKeyInput()      in allegroinput.o
  "_set_color_conversion", referenced from:
      gcn::AllegroImageLoader::load(std::basic_string<char, std::char_traits<char>, std::allocator<char> > 
const&, bool)in allegroimageloader.o
      gcn::AllegroImageLoader::load(std::basic_string<char, std::char_traits<char>, std::allocator<char> > 
const&, bool)in allegroimageloader.o
  "_ureadkey", referenced from:
      gcn::AllegroInput::pollKeyInput()      in allegroinput.o
  "_makeacol_depth", referenced from:
      gcn::AllegroImage::putPixel(int, int, gcn::Color const&)in allegroimage.o
  "_drawing_mode", referenced from:
      gcn::AllegroGraphics::setColor(gcn::Color const&)in allegrographics.o
  "gcn::KeyInput::setControlPressed(bool)", referenced from:
      gcn::AllegroInput::pollKeyInput()      in allegroinput.o
      gcn::AllegroInput::pollKeyInput()      in allegroinput.o
  "_mouse_needs_poll", referenced from:
      gcn::AllegroInput::pollMouseInput()      in allegroinput.o
  "gcn::KeyInput::isShiftPressed() const", referenced from:
      gcn::AllegroInput::pollKeyInput()      in allegroinput.o
  "_text_height", referenced from:
      gcn::AllegroFont::getHeight() constin allegrofont.o
  "_keypressed", referenced from:
      gcn::AllegroInput::pollKeyInput()      in allegroinput.o
  "_destroy_font", referenced from:
      gcn::AllegroFont::~AllegroFont()in allegrofont.o
      gcn::AllegroFont::~AllegroFont()in allegrofont.o
      gcn::AllegroFont::~AllegroFont()in allegrofont.o
  "gcn::KeyInput::setAltPressed(bool)", referenced from:
      gcn::AllegroInput::pollKeyInput()      in allegroinput.o
      gcn::AllegroInput::pollKeyInput()      in allegroinput.o
  "_set_clip_rect", referenced from:
      gcn::AllegroGraphics::popClipArea()      in allegrographics.o
      gcn::AllegroGraphics::pushClipArea(gcn::Rectangle)     in allegrographics.o
  "_set_palette", referenced from:
      gcn::AllegroImageLoader::load(std::basic_string<char, std::char_traits<char>, std::allocator<char> > 
const&, bool)in allegroimageloader.o
  "gcn::Font::getStringIndexAt(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, 
int) const", referenced from:
      vtable for gcn::AllegroFontin allegrofont.o
  "gcn::Color::Color()", referenced from:
      gcn::AllegroGraphics::AllegroGraphics(BITMAP*)in allegrographics.o
      gcn::AllegroGraphics::AllegroGraphics(BITMAP*)in allegrographics.o
      gcn::AllegroGraphics::AllegroGraphics()in allegrographics.o
      gcn::AllegroGraphics::AllegroGraphics()in allegrographics.o
  "gcn::KeyInput::setShiftPressed(bool)", referenced from:
      gcn::AllegroInput::pollKeyInput()      in allegroinput.o
      gcn::AllegroInput::pollKeyInput()      in allegroinput.o
  "_text_length", referenced from:
      gcn::AllegroFont::getWidth(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) 
constin allegrofont.o
  "_key_shifts", referenced from:
      _key_shifts$non_lazy_ptr in allegroinput.o
  "gcn::Color::Color(int, int, int, int)", referenced from:
      gcn::AllegroImage::getPixel(int, int)in allegroimage.o
  "gcn::Graphics::pushClipArea(gcn::Rectangle)", referenced from:
      gcn::AllegroGraphics::pushClipArea(gcn::Rectangle)     in allegrographics.o
  "gcn::Image::Image()", referenced from:
      gcn::AllegroImage::AllegroImage(BITMAP*, bool)in allegroimage.o
      gcn::AllegroImage::AllegroImage(BITMAP*, bool)in allegroimage.o
  "gcn::Graphics::drawText(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, 
int, gcn::Graphics::Alignment)", referenced from:
      vtable for gcn::AllegroGraphicsin allegrographics.o
  "gcn::Graphics::setFont(gcn::Font*)", referenced from:
      vtable for gcn::AllegroGraphicsin allegrographics.o
  "_blit", referenced from:
      gcn::AllegroImage::convertToDisplayFormat()      in allegroimage.o
      gcn::AllegroImageLoader::load(std::basic_string<char, std::char_traits<char>, std::allocator<char> > 
const&, bool)in allegroimageloader.o
  "_destroy_bitmap", referenced from:
      gcn::AllegroImage::free()     in allegroimage.o
      gcn::AllegroImage::convertToDisplayFormat()      in allegroimage.o
      gcn::AllegroImageLoader::load(std::basic_string<char, std::char_traits<char>, std::allocator<char> > 
const&, bool)in allegroimageloader.o
  "_set_trans_blender", referenced from:
      gcn::AllegroGraphics::setColor(gcn::Color const&)in allegrographics.o
  "vtable for gcn::Graphics", referenced from:
      __ZTVN3gcn8GraphicsE$non_lazy_ptr in allegrographics.o
  "gcn::Image::~Image()", referenced from:
      gcn::AllegroImage::~AllegroImage()in allegroimage.o
      gcn::AllegroImage::~AllegroImage()in allegroimage.o
      gcn::AllegroImage::~AllegroImage()in allegroimage.o
      gcn::AllegroImage::~AllegroImage()in allegroimage.o
      gcn::AllegroImage::~AllegroImage()in allegroimage.o
      gcn::AllegroImage::~AllegroImage()in allegroimage.o
  "_create_bitmap_ex", referenced from:
      gcn::AllegroImageLoader::load(std::basic_string<char, std::char_traits<char>, std::allocator<char> > 
const&, bool)in allegroimageloader.o
  "_load_bitmap", referenced from:
      gcn::AllegroImageLoader::loadBitmap(std::basic_string<char, std::char_traits<char>, std::allocator<char> 
> const&, RGB*)in allegroimageloader.o
  "gcn::KeyInput::KeyInput(gcn::Key const&, unsigned int)", referenced from:
      gcn::AllegroInput::pollKeyInput()      in allegroinput.o
      gcn::AllegroInput::pollKeyInput()      in allegroinput.o
      gcn::AllegroInput::pollKeyInput()      in allegroinput.o
      gcn::AllegroInput::pollKeyInput()      in allegroinput.o
      gcn::AllegroInput::pollKeyInput()      in allegroinput.o
      gcn::AllegroInput::pollKeyInput()      in allegroinput.o
      gcn::AllegroInput::pollKeyInput()      in allegroinput.o
      gcn::AllegroInput::pollKeyInput()      in allegroinput.o
  "__rgb_b_shift_32", referenced from:
      __rgb_b_shift_32$non_lazy_ptr in allegroimage.o
  "_makecol", referenced from:
      gcn::AllegroGraphics::setColor(gcn::Color const&)in allegrographics.o
  "_solid_mode", referenced from:
      gcn::AllegroGraphics::setColor(gcn::Color const&)in allegrographics.o
  "_key", referenced from:
      _key$non_lazy_ptr in allegroinput.o
  "_textout_ex", referenced from:
      gcn::AllegroFont::drawString(gcn::Graphics*, std::basic_string<char, std::char_traits<char>, 
std::allocator<char> > const&, int, int)in allegrofont.o
  "gcn::Exception::Exception(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, 
std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, 
std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > const&, unsigned int)", 
referenced from:
      gcn::AllegroFont::AllegroFont(FONT*)in allegrofont.o
      gcn::AllegroFont::AllegroFont(FONT*)in allegrofont.o
      gcn::AllegroFont::AllegroFont(std::basic_string<char, std::char_traits<char>, std::allocator<char> > 
const&)in allegrofont.o
      gcn::AllegroFont::AllegroFont(std::basic_string<char, std::char_traits<char>, std::allocator<char> > 
const&)in allegrofont.o
      gcn::AllegroFont::drawString(gcn::Graphics*, std::basic_string<char, std::char_traits<char>, 
std::allocator<char> > const&, int, int)in allegrofont.o
      gcn::AllegroGraphics::_beginDraw()      in allegrographics.o
      gcn::AllegroGraphics::fillRectangle(gcn::Rectangle const&)in allegrographics.o
      gcn::AllegroGraphics::drawRectangle(gcn::Rectangle const&)in allegrographics.o
      gcn::AllegroGraphics::drawLine(int, int, int, int)in allegrographics.o
      gcn::AllegroGraphics::drawPoint(int, int)in allegrographics.o
      gcn::AllegroGraphics::drawImage(gcn::Image const*, int, int, int, int, int, int)in allegrographics.o
      gcn::AllegroGraphics::drawImage(gcn::Image const*, int, int, int, int, int, int)in allegrographics.o
      gcn::AllegroImage::getWidth() constin allegroimage.o
      gcn::AllegroImage::getHeight() constin allegroimage.o
      gcn::AllegroImage::getPixel(int, int)in allegroimage.o
      gcn::AllegroImage::putPixel(int, int, gcn::Color const&)in allegroimage.o
      gcn::AllegroImage::convertToDisplayFormat()      in allegroimage.o
      gcn::AllegroImageLoader::load(std::basic_string<char, std::char_traits<char>, std::allocator<char> > 
const&, bool)in allegroimageloader.o
      gcn::AllegroImageLoader::load(std::basic_string<char, std::char_traits<char>, std::allocator<char> > 
const&, bool)in allegroimageloader.o
      gcn::AllegroInput::dequeueKeyInput()      in allegroinput.o
      gcn::AllegroInput::dequeueMouseInput()      in allegroinput.o
  "gcn::Graphics::drawImage(gcn::Image const*, int, int)", referenced from:
      vtable for gcn::AllegroGraphicsin allegrographics.o
  "_masked_blit", referenced from:
      gcn::AllegroGraphics::drawBitmap(BITMAP*, int, int)in allegrographics.o
      gcn::AllegroGraphics::drawImage(gcn::Image const*, int, int, int, int, int, int)in allegrographics.o
  "_poll_keyboard", referenced from:
      gcn::AllegroInput::pollKeyInput()      in allegroinput.o
  "gcn::Graphics::popClipArea()", referenced from:
      gcn::AllegroGraphics::popClipArea()      in allegrographics.o
  "gcn::KeyInput::getKey() const", referenced from:
      gcn::AllegroInput::pollKeyInput()      in allegroinput.o
  "__rgb_g_shift_32", referenced from:
      __rgb_g_shift_32$non_lazy_ptr in allegroimage.o
  "vtable for gcn::Font", referenced from:
      __ZTVN3gcn4FontE$non_lazy_ptr in allegrofont.o
  "gcn::KeyInput::isNumericPad() const", referenced from:
      gcn::AllegroInput::pollKeyInput()      in allegroinput.o
  "_get_color_conversion", referenced from:
      gcn::AllegroImageLoader::load(std::basic_string<char, std::char_traits<char>, std::allocator<char> > 
const&, bool)in allegroimageloader.o
  "_keyboard_needs_poll", referenced from:
      gcn::AllegroInput::pollKeyInput()      in allegroinput.o
  "_poll_mouse", referenced from:
      gcn::AllegroInput::pollMouseInput()      in allegroinput.o
  "gcn::Graphics::Graphics()", referenced from:
      gcn::AllegroGraphics::AllegroGraphics(BITMAP*)in allegrographics.o
      gcn::AllegroGraphics::AllegroGraphics(BITMAP*)in allegrographics.o
      gcn::AllegroGraphics::AllegroGraphics()in allegrographics.o
      gcn::AllegroGraphics::AllegroGraphics()in allegrographics.o
  "__rgb_r_shift_32", referenced from:
      __rgb_r_shift_32$non_lazy_ptr in allegroimage.o
  "_load_font", referenced from:
      gcn::AllegroFont::AllegroFont(std::basic_string<char, std::char_traits<char>, std::allocator<char> > 
const&)in allegrofont.o
      gcn::AllegroFont::AllegroFont(std::basic_string<char, std::char_traits<char>, std::allocator<char> > 
const&)in allegrofont.o
  "typeinfo for gcn::Font", referenced from:
      typeinfo for gcn::AllegroFontin allegrofont.o
  "gcn::KeyInput::isControlPressed() const", referenced from:
      gcn::AllegroInput::pollKeyInput()      in allegroinput.o
  "gcn::MouseInput::MouseInput(unsigned int, unsigned int, int, int, int)", referenced from:
      gcn::AllegroInput::pollMouseInput()      in allegroinput.o
      gcn::AllegroInput::pollMouseInput()      in allegroinput.o
      gcn::AllegroInput::pollMouseInput()      in allegroinput.o
      gcn::AllegroInput::pollMouseInput()      in allegroinput.o
      gcn::AllegroInput::pollMouseInput()      in allegroinput.o
      gcn::AllegroInput::pollMouseInput()      in allegroinput.o
      gcn::AllegroInput::pollMouseInput()      in allegroinput.o
      gcn::AllegroInput::pollMouseInput()      in allegroinput.o
      gcn::AllegroInput::pollMouseInput()      in allegroinput.o
  "_mouse_b", referenced from:
      _mouse_b$non_lazy_ptr in allegroinput.o
  "gcn::Rectangle::Rectangle(int, int, int, int)", referenced from:
      gcn::AllegroGraphics::_beginDraw()      in allegrographics.o
  "gcn::KeyInput::setMetaPressed(bool)", referenced from:
      gcn::AllegroInput::pollKeyInput()      in allegroinput.o
  "_mouse_x", referenced from:
      _mouse_x$non_lazy_ptr in allegroinput.o
  "_mouse_y", referenced from:
      _mouse_y$non_lazy_ptr in allegroinput.o
  "_mouse_z", referenced from:
      _mouse_z$non_lazy_ptr in allegroinput.o
  "typeinfo for gcn::Graphics", referenced from:
      __ZTIN3gcn8GraphicsE$non_lazy_ptr in allegrofont.o
      typeinfo for gcn::AllegroGraphicsin allegrographics.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

Original comment by m...@thomaskeller.biz on 23 Oct 2009 at 4:49

GoogleCodeExporter commented 8 years ago
@Olof: Do you have an idea what I could do to make it compile? I can easily add 
local
patches to the current port to make 0.8.2 work somehow in MP.

Original comment by m...@thomaskeller.biz on 26 Oct 2009 at 9:47

GoogleCodeExporter commented 8 years ago
Ping?

Original comment by m...@thomaskeller.biz on 7 Nov 2009 at 10:15

GoogleCodeExporter commented 8 years ago
It seems the Allegro backend doesn't know where to find the Guichan core 
library. 
Generally it's very difficult to help out with build processes on other systems 
as 
there are so many things that can be wrong and so many setups possible.

Original comment by olof.nae...@gmail.com on 8 Nov 2009 at 12:59

GoogleCodeExporter commented 8 years ago
I'm willing to spend some time on this issue with you or someone else in an IRC 
/ chat session. Drop me a note if  
you're up for that.

Original comment by m...@thomaskeller.biz on 9 Nov 2009 at 10:05

GoogleCodeExporter commented 8 years ago
First of all, look at the call to g++, there is no linkage to the libguichan nor
liballegro. Usually this isn't needed with libraries unless one compiles static
libraries as libraries are linked at linktime with executables. You should
investigate why g++ needs to link with libguichan and liballegro at compile 
time on
Mac. I bet if you link with libguichan and liballegro the problems will vanish.

Original comment by olof.nae...@gmail.com on 9 Nov 2009 at 3:06

GoogleCodeExporter commented 8 years ago
I've made the following observations:

* guichan can only be build without extras if I remove "opengl sdl allegro" 
from the SUBDIRS line
* src/opengl, src/sdl and src/allegro can only be built, if -L.. -lguichan is 
added (as you said earlier). 
Additionally, for src/sdl "-lSDL -lSDL_image" is missing from the linker line

So this is pretty much a chicken-egg problem - I cannot build guichan alone 
without any of the SUBDIRS 
dependencies above, and they cannot be linked without an already built 
libguichan.la. My autofoo is not good 
enough, have you an idea how to resolve that issue?

Original comment by m...@thomaskeller.biz on 10 Nov 2009 at 6:42

GoogleCodeExporter commented 8 years ago
Ok, with no further help from your side I'm abandoning my task to update the 
libguichan MacPort.

Original comment by m...@thomaskeller.biz on 19 Nov 2009 at 10:29

GoogleCodeExporter commented 8 years ago
I don't have a Mac so I can't fiddle with autotools on that system, which 
basically
means I cannot help you. Autotools can be a bich sometimes so I do understand 
if you
cannot fix it. Many people believe autotools is cross platform, but it isn't. Of
course, we have CMake projects you can use so there really isn't a need for 
autotools.

Guichan is and always will be a project managed on my spare time, and as the 
years go
by I tend to get more important stuff to take care about than Guichan. If there 
is an
external problem with something like autotools you have to think for yourself, 
use
Google, talk to autotools devs (just like I would do if I was faced with a 
similar
problem). I cannot help out with every single build on every single system. I 
can
merely give pointers at best. In the end it's up to you if you want something 
to work
on an untested system.

Original comment by olof.nae...@gmail.com on 20 Nov 2009 at 2:48

GoogleCodeExporter commented 8 years ago
Problem was solved by removing the "-no-undefined" option from the LDFLAGS line 
in 
src/{sdl,allegro,opengl}/Makefile.am and a reconfiguration.

Original comment by m...@thomaskeller.biz on 28 Dec 2009 at 11:39

GoogleCodeExporter commented 8 years ago

Original comment by olof.nae...@gmail.com on 29 Dec 2009 at 5:26

GoogleCodeExporter commented 8 years ago
I haven't seen a fix in the gitorious repository yet - have you pushed it 
already?

Original comment by m...@thomaskeller.biz on 30 Dec 2009 at 9:12