Date: Tue, 11 Nov 2003 11:54:13 -0700 From: Aaron Dalton <acdalton@ucalgary.ca> To: freebsd-ports-bugs@freebsd.org Subject: ClanLib-0.7.5.2 Compilation Problems Message-ID: <200311111144.51216.aaron@finch.st>
next in thread | raw e-mail | index | archive | help
=2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The below error occurs when I attempt to compile the ClanLib example,=20 AdventureScene. I have also posted this error to the ClanLib mailing=20 list, but they're baffled as well. The error indicates there is a=20 problem linking against PThreads, but no such error occurred during the=20 build of ClanLib itself. In fact, no errors whatsoever occurred in the=20 actual building/installing of ClanLib itself, but I can't get anything=20 to actually run. pkg-config does indeed return the correct location of=20 libclanX and the header files. A complete transcript of the build/ install of the port, as well as the subsequent example compilation=20 attempt can be found at http://aaron.finch.st/clan-compile.txt Any=20 direction would be greatly appreciated. I have uninstalled/reinstalled=20 the port a couple of times just to make sure. Cheers! Aaron =2D --BEGIN ERROR-- galan# cd work/ClanLib-0.7.5/Examples/AdventureScene galan# gmake g++ `pkg-config --cflags clanApp-0.7 clanDisplay-0.7 clanCore-0.7=20 clanGL-0.7` -I/usr/X11R6/include -c scene.cpp -o scene.o g++ `pkg-config --cflags clanApp-0.7 clanDisplay-0.7 clanCore-0.7=20 clanGL-0.7` -I/usr/X11R6/include -c app.cpp -o app.o g++ `pkg-config --cflags clanApp-0.7 clanDisplay-0.7 clanCore-0.7=20 clanGL-0.7` -I/usr/X11R6/include -c player.cpp -o player.o g++ `pkg-config --cflags clanApp-0.7 clanDisplay-0.7 clanCore-0.7=20 clanGL-0.7` -I/usr/X11R6/include -c mask_object_extractor.cpp -o=20 mask_object_extractor.o mask_object_extractor.cpp: In method `class CL_Rect=20 MaskObjectExtractor::isolate_mask_object(CL_PixelBuffer &, int)': mask_object_extractor.cpp:59: warning: initialization of negative value=20 `-1' to `unsigned int' mask_object_extractor.cpp:59: warning: initialization of negative value=20 `-1' to `unsigned int' mask_object_extractor.cpp: In method `class Object *=20 MaskObjectExtractor::create_object_from_mask(const CL_Rect &,=20 CL_PixelBuffer &, CL_PixelBuffer &, int)': mask_object_extractor.cpp:117: warning: assignment of negative value=20 `-1' to `unsigned int' g++ `pkg-config --cflags clanApp-0.7 clanDisplay-0.7 clanCore-0.7=20 clanGL-0.7` -I/usr/X11R6/include scene.o app.o player.o=20 mask_object_extractor.o -o adventurescene `pkg-config --libs=20 clanApp-0.7 clanDisplay-0.7 clanCore-0.7 clanGL-0.7` scene.o: In function `Scene::Scene(basic_string<char,=20 string_char_traits<char>, __default_alloc_template<false, 0> > const &,=20 basic_string<char, string_char_traits<char>,=20 __default_alloc_template<false, 0> > const &, basic_string<char,=20 string_char_traits<char>, __default_alloc_template<false, 0> > const=20 &)': scene.o(.text+0xd5): undefined reference to=20 `CL_TargaProvider::CL_TargaProvider(basic_string<char,=20 string_char_traits<char>, __default_alloc_template<false, 0> > const &,=20 CL_InputSourceProvider *, bool, bool, unsigned char, unsigned char,=20 unsigned char)' scene.o(.text+0x11e): undefined reference to=20 `CL_TargaProvider::CL_TargaProvider(basic_string<char,=20 string_char_traits<char>, __default_alloc_template<false, 0> > const &,=20 CL_InputSourceProvider *, bool, bool, unsigned char, unsigned char,=20 unsigned char)' scene.o(.text+0x1b0): undefined reference to=20 `CL_TargaProvider::CL_TargaProvider(basic_string<char,=20 string_char_traits<char>, __default_alloc_template<false, 0> > const &,=20 CL_InputSourceProvider *, bool, bool, unsigned char, unsigned char,=20 unsigned char)' app.o: In function `AdventureSceneApp::main(int, char **)': app.o(.gnu.linkonce.t.main__17AdventureSceneAppiPPc+0x65): undefined=20 reference to `CL_ConsoleWindow::CL_ConsoleWindow(basic_string<char,=20 string_char_traits<char>, __default_alloc_template<false, 0> > const &,=20 int, int)' app.o(.gnu.linkonce.t.main__17AdventureSceneAppiPPc+0x181): undefined=20 reference to `CL_DisplayWindow::CL_DisplayWindow(basic_string<char,=20 string_char_traits<char>, __default_alloc_template<false, 0> > const &,=20 int, int, bool, bool, int)' player.o: In function `Player::Player(Scene *)': player.o(.text+0x12d): undefined reference to=20 `CL_Surface::CL_Surface(basic_string<char, string_char_traits<char>,=20 __default_alloc_template<false, 0> > const &, CL_Surface::Hint)' /usr/local/lib/libclanCore.so: undefined reference to `pthread_create' /usr/local/lib/libclanCore.so: undefined reference to `pthread_cancel' /usr/local/lib/libclanCore.so: undefined reference to=20 `pthread_mutexattr_destroy' /usr/local/lib/libclanCore.so: undefined reference to=20 `pthread_mutexattr_setkind_np' /usr/local/lib/libclanCore.so: undefined reference to=20 `pthread_setcanceltype' /usr/local/lib/libclanCore.so: undefined reference to=20 `pthread_mutexattr_init' /usr/local/lib/libclanCore.so: undefined reference to `pthread_join' gmake: *** [adventurescene] Error 1 galan# =2D --END ERROR-- =2D----BEGIN PGP SIGNATURE----- Version: PGP 6.5.8 iQA/AwUBP7EwVYhLf0QphE19EQJLwwCg1n15vkV/jKmjdpbyP4b5rK81kSgAn1m+ xkmlYBaW1hG/BOBrQTDQ/Qji =3DsQKt =2D----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311111144.51216.aaron>