Results 1 to 3 of 3

Thread: compiling clanlib error on ubuntu

  1. #1

    Default compiling clanlib error on ubuntu

    Hello, i was just wondering if anyone could help me with this error i am getting. I have figured out most of the issues i have encountered so far, just this one has me stumped.

    make[2]: Entering directory `/home/user/Desktop/ClanLib-0.8.1/Sources/GL'
    depbase=`echo opengl.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
    /bin/bash ../../libtool --tag=CXX --mode=compile g++ -DPACKAGE_NAME=\"ClanLib\" -DPACKAGE_TARNAME=\"clanlib\" -DPACKAGE_VERSION=\"0.8.1\" -DPACKAGE_STRING=\"ClanLib\ 0.8.1\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"clanlib\" -DVERSION=\"0.8.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_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_UNISTD_H=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS_KD_H=1 -DHAVE_SYS_VT_H=1 -DHAVE_FSTAB_H=1 -DHAVE_LIBZ=1 -DHAVE_GLX_GETPROCADDRESSARB=1 -DUSE_GETADDR=1 -I. -g -O2 -I../../Sources -MT opengl.lo -MD -MP -MF $depbase.Tpo -c -o opengl.lo opengl.cpp &&\
    mv -f $depbase.Tpo $depbase.Plo
    libtool: compile: g++ -DPACKAGE_NAME=\"ClanLib\" -DPACKAGE_TARNAME=\"clanlib\" -DPACKAGE_VERSION=\"0.8.1\" "-DPACKAGE_STRING=\"ClanLib 0.8.1\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"clanlib\" -DVERSION=\"0.8.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_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_UNISTD_H=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS_KD_H=1 -DHAVE_SYS_VT_H=1 -DHAVE_FSTAB_H=1 -DHAVE_LIBZ=1 -DHAVE_GLX_GETPROCADDRESSARB=1 -DUSE_GETADDR=1 -I. -g -O2 -I../../Sources -MT opengl.lo -MD -MP -MF .deps/opengl.Tpo -c opengl.cpp -fPIC -DPIC -o .libs/opengl.o
    opengl.cpp: In static member function ‘static bool CL_OpenGL::extension_exists(const char*)’:
    opengl.cpp:386: error: ‘strlen’ was not declared in this scope
    opengl.cpp:391: error: ‘strcspn’ was not declared in this scope
    opengl.cpp:392: error: ‘strncmp’ was not declared in this scope
    make[2]: *** [opengl.lo] Error 1
    make[2]: Leaving directory `/home/user/Desktop/ClanLib-0.8.1/Sources/GL'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/user/Desktop/ClanLib-0.8.1/Sources'
    make: *** [all-recursive] Error 1

  2. #2
    ClanLib Developer
    Join Date
    Sep 2006
    Location
    Bergen, Norway
    Posts
    588

    Default

    There was a major header cleanup in GCC 4.3 so some headers which were
    previously pulled in indirectly are no longer being included.

    This problem has been fixed in 0.8 SVN version - try getting that instead of the "official" 0.8.1 version. That way, you'll also get tons of other fixes

    If you just want it fixed in your copy, try adding #include <cstring> in opengl.cpp.

  3. #3

    Default

    Thanks for the quick reply. I took your advice and got the svn, that compiled with no issues.

    thanks

Similar Threads

  1. Compiling Novashell from SVN checkout Ubuntu 8.10
    By rgrwkmn in forum Novashell Game Creation System
    Replies: 0
    Last Post: 12-21-2008, 08:18 AM
  2. Compile Error In Ubuntu Linux
    By Kurisu in forum Official ClanLib SDK Forums
    Replies: 2
    Last Post: 08-18-2008, 05:38 PM
  3. Compiling error on OS X 10.5
    By dac118 in forum Official ClanLib SDK Forums
    Replies: 0
    Last Post: 03-21-2008, 03:56 PM
  4. Error in compiling Examples
    By Nikitto46 in forum Official ClanLib SDK Forums
    Replies: 5
    Last Post: 10-16-2007, 02:07 PM
  5. error compiling 0.9 svn
    By voudras in forum Official ClanLib SDK Forums
    Replies: 0
    Last Post: 01-11-2007, 06:47 AM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •