Error during compile of Fl_Text_Buffer.cpp

eFLTK
2006-09-28
2013-04-05
  • J.D. Yamokoski

    J.D. Yamokoski - 2006-09-28

    I downloaded the source from CVS, but then ran into the following error during compile:

    Compiling Fl_Text_Buffer.cpp...
    /usr/local/src/efltk/efltk/Fl_Text_Buffer.h:81: error: extra qualification ‘Fl_Text_Buffer::’ on member ‘static_buffer’

    I configed with:

    ./efltk-config.in --prefix=/usr/local --multithread

    And I am using gcc version 4.1.2 on Debian Etch. Any ideas?

     
    • Sanel Zukan

      Sanel Zukan - 2006-09-28

      Hi J.D.,

      Did you got code from cvs or subversion? We moved to subversion before 1.1 is released, so there you can find latest data.

      > ./efltk-config.in --prefix=/usr/local --multithread
      Hm... how did you manage to run this :)? efltk-config.in should generate efltk-config (actually that is job for configure script) and it is used to compile standalone programs.

      Try for this form, after you did svn checkout:
      autoconf
      ./configure --disable-unixODBC --disable-mysql
      make

      PS.
      Few issues (like yours) are fixed and are on svn.

      Works ?

      Cheers,
      Sanel

       
    • Aref

      Aref - 2006-10-04

      Hi,

      I also have same problem but with gcc 4.1.0 on Fedora Core 5. I downloaded the efltk version 2.0 from CVS and trying to build and install it on FC5 upgraded kernel to 2.6.15.6.

      While configuring and building it using following commands:
      ./efltk-config.in --prefix=/usr/local –multithread
      ./emake

      I got a lot of warnings and eventually got the following
      error:
      FL_Text_Buffer.h:81 error: extra qualification 'FL_text_Buffer::' on member 'static_buffer'

      So what is the solution?

      Many thanks in advance.
      A.T

       
    • Sanel Zukan

      Sanel Zukan - 2006-10-08

      Hi Aref,

      Please note as in previous post is stated: running ./efltk-config.in _is_ wrong, and you should not use it. Use instead ./configure --prefix=/use/local && ./emake (or make).

      > FL_Text_Buffer.h:81 error: extra qualification 'FL_text_Buffer::' on member 'static_buffer'

      ;) This is fixed on subversion, not on cvs (where the code is obsolete). You can see that at: http://svn.sourceforge.net/viewvc/ede/trunk/efltk/efltk/Fl_Text_Buffer.h?view=markup

      Hoping now works as expected ?

      Cheers,
      Sanel

       
    • Sitnarf

      Sitnarf - 2007-01-09

      Hi guys,
      I tried it, but these errors is there:

      Makefile:9: warning: overriding commands for target `uninstall'
      ../src/makeinclude_tmpl:233: warning: ignoring old commands for target `uninstall'
      /home/sitnarf/efltk/efltk/Fl_Boxtype.h:30: warning: ‘class Fl_Boxtype_’ has virtual functions but non-virtual destructor
      /home/sitnarf/efltk/efltk/Fl_Boxtype.h:60: warning: ‘class Fl_Frame_Box’ has virtual functions but non-virtual destructor
      /home/sitnarf/efltk/efltk/Fl_Boxtype.h:99: warning: ‘class Fl_Flat_Box’ has virtual functions but non-virtual destructor
      /home/sitnarf/efltk/efltk/Fl_Boxtype.h:108: warning: ‘class Fl_Highlight_Box’ has virtual functions but non-virtual destructor
      /home/sitnarf/efltk/efltk/Fl_Boxtype.h:126: warning: ‘class Fl_Round_Box’ has virtual functions but non-virtual destructor
      /home/sitnarf/efltk/efltk/Fl_Boxtype.h:140: warning: ‘class Fl_Diamond_Box’ has virtual functions but non-virtual destructor
      /home/sitnarf/efltk/efltk/Fl_Boxtype.h:154: warning: ‘class Fl_Plastic_Box’ has virtual functions but non-virtual destructor
      /home/sitnarf/efltk/efltk/Fl_Boxtype.h:168: warning: ‘class Fl_No_Box’ has virtual functions but non-virtual destructor
      /home/sitnarf/efltk/efltk/Fl_Boxtype.h:177: warning: ‘class Fl_Shadow_Box’ has virtual functions but non-virtual destructor
      /home/sitnarf/efltk/efltk/Fl_Boxtype.h:186: warning: ‘class Fl_Rounded_Box’ has virtual functions but non-virtual destructor
      /home/sitnarf/efltk/efltk/Fl_Boxtype.h:195: warning: ‘class Fl_RShadow_Box’ has virtual functions but non-virtual destructor
      /home/sitnarf/efltk/efltk/Fl_Boxtype.h:204: warning: ‘class Fl_RFlat_Box’ has virtual functions but non-virtual destructor
      /home/sitnarf/efltk/efltk/Fl_Boxtype.h:213: warning: ‘class Fl_Oval_Box’ has virtual functions but non-virtual destructor
      /home/sitnarf/efltk/efltk/Fl_Boxtype.h:222: warning: ‘class Fl_Oval_Shadow_Box’ has virtual functions but non-virtual destructor
      /home/sitnarf/efltk/efltk/Fl_Boxtype.h:230: warning: ‘class Fl_Oval_Flat_Box’ has virtual functions but non-virtual destructor
      /home/sitnarf/efltk/efltk/Fl_Boxtype.h:239: warning: ‘class Fl_Border_Frame’ has virtual functions but non-virtual destructor
      /home/sitnarf/efltk/efltk/Fl_Boxtype.h:248: warning: ‘class Fl_Dotted_Frame’ has virtual functions but non-virtual destructor
      /home/sitnarf/efltk/efltk/Fl_Boxtype.h:257: warning: ‘class Fl_Hor_Shade_Box’ has virtual functions but non-virtual destructor
      /home/sitnarf/efltk/efltk/Fl_Boxtype.h:267: warning: ‘class Fl_Vert_Shade_Box’ has virtual functions but non-virtual destructor
      /home/sitnarf/efltk/efltk/Fl_Labeltype.h:29: warning: ‘class Fl_Labeltype_’ has virtual functions but non-virtual destructor
      /home/sitnarf/efltk/efltk/Fl_Labeltype.h:46: warning: ‘class Fl_No_Label’ has virtual functions but non-virtual destructor
      /home/sitnarf/efltk/efltk/Fl_Labeltype.h:54: warning: ‘class Fl_Symbol_Label’ has virtual functions but non-virtual destructor
      /home/sitnarf/efltk/efltk/Fl_Labeltype.h:62: warning: ‘class Fl_Engraved_Label’ has virtual functions but non-virtual destructor
      /home/sitnarf/efltk/efltk/Fl_Combo_Box.h:26: error: extra qualification ‘Fl_Combo_Box::’ on member ‘cb_browse’
      /home/sitnarf/efltk/efltk/Fl_Combo_Box.h:27: error: extra qualification ‘Fl_Combo_Box::’ on member ‘cb_button’
      make[1]: *** [date_time_widgets] Error 1
      make: *** [all] Error 2

      THANKS FOR HELP

       
    • Fatal Man

      Fatal Man - 2007-02-12

      I currently have the old EFLTK/EDE installed and wanted to try out the latest but the compilation of EFLTK 2.0.6 ended up in errors. When running ./configure i got some problems with X, from the line with "checking for X..." and onwards, pretty much "no" as result on all of them; on Google i found this link which i thought could apply for debian aswell regarding required packages/libraries: http://www.freshports.org/x11-toolkits/efltk/ i didnt find gmake but i didnt have libjpeg and libpng (i think it was)
      in aptitude i also found "libglu1-xorg-dev" (or some similar version) (which seems to be for backward compability, i got the idea because of the reply from Sanel Zukan) which made me get further with the compile than u did (Sitnarf, in ur last reply in this thread).

      Now to my question or feedback; my ./configure has the following output, is it as it should be? (im compiling it at the moment but it takes ages on my slow machine..):

      /install/efltk# ./configure --disable-mysql --disable-unixODBC --enable-xft
      checking for gcc... gcc
      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 gcc accepts -g... yes
      checking for gcc option to accept ANSI C... none needed
      checking how to run the C preprocessor... gcc -E
      checking for egrep... 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 for short... yes
      checking size of short... 2
      checking for int... yes
      checking size of int... 4
      checking for long... yes
      checking size of long... 4
      checking for gcc... (cached) gcc
      checking whether we are using the GNU C compiler... (cached) yes
      checking whether gcc accepts -g... (cached) yes
      checking for gcc option to accept ANSI C... (cached) none needed
      checking for g++... g++
      checking whether we are using the GNU C++ compiler... yes
      checking whether g++ accepts -g... yes
      checking whether byte ordering is bigendian... no
      checking for ranlib... ranlib
      checking for dirent.h that defines DIR... yes
      checking for library containing opendir... none required
      checking sys/select.h usability... yes
      checking sys/select.h presence... yes
      checking for sys/select.h... yes
      checking for scandir... yes
      checking for vsnprintf... yes
      checking for snprintf... yes
      checking for strcasecmp... yes
      checking for vsprintf... yes
      checking for strtok_r... yes
      checking for X... libraries , headers
      checking for XOpenDisplay in -lX11... yes
      checking for Xutf8TextPropertyToTextList in -lX11... yes
      checking for XdbeQueryExtension in -lXext... yes
      checking for glXMakeCurrent in -lGL... yes
      checking png.h usability... yes
      checking png.h presence... yes
      checking for png.h... yes
      checking for png_set_sig_bytes in -lpng... yes
      checking jpeglib.h usability... yes
      checking jpeglib.h presence... yes
      checking for jpeglib.h... yes
      checking for jpeg_stdio_src in -ljpeg... yes
      checking X11/extensions/Xdbe.h usability... no
      checking X11/extensions/Xdbe.h presence... yes
      configure: WARNING: X11/extensions/Xdbe.h: present but cannot be compiled
      configure: WARNING: X11/extensions/Xdbe.h:     check for missing prerequisite headers?
      configure: WARNING: X11/extensions/Xdbe.h: see the Autoconf documentation
      configure: WARNING: X11/extensions/Xdbe.h:     section "Present But Cannot Be Compiled"
      configure: WARNING: X11/extensions/Xdbe.h: proceeding with the preprocessor's result
      configure: WARNING: X11/extensions/Xdbe.h: in the future, the compiler will take precedence
      configure: WARNING:     ## ------------------------------------------ ##
      configure: WARNING:     ## Report this to the AC_PACKAGE_NAME lists.  ##
      configure: WARNING:     ## ------------------------------------------ ##
      checking for X11/extensions/Xdbe.h... yes
      checking "for X overlay visuals"... (cached) no
      checking for math emulation... not needed
      checking for dlopen in -lc... yes
      checking whether NLS is requested... yes
      checking for pthread_create in -lc... no
      checking for pthread_create in -lpthread... yes
      checking for strip... /usr/bin/strip
      configure: creating ./config.status
      config.status: creating makeinclude
      config.status: creating efltk-config
      config.status: creating efltk.spec
      config.status: creating config.h

      Build information:
      -------------------------
      Prefix: /usr/local
      Bin directory: /usr/local/bin
      Lib directory: /usr/local/lib
      Include directory: /usr/local/include

      Debug/Optim flags: -Wuninitialized -O2

      Thread libs: -lpthread
      Png   libs:   -lpng -lz
      Jpeg  libs:   -ljpeg
      ODBC  libs:
      MySQL libs:

      -------------------------
      EFLTK is ready for build.
      To start building, type: ./emake

       

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks